|
|
@ -15,6 +15,7 @@ ${ env('CONSUL_ACLS_LEGACY', false) ? `rpc error making call: rpc: can't find me
|
|
|
|
return `
|
|
|
|
return `
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"AccessorID": "${i === 1 ? '00000000-0000-0000-0000-000000000002' : fake.random.uuid()}",
|
|
|
|
"AccessorID": "${i === 1 ? '00000000-0000-0000-0000-000000000002' : fake.random.uuid()}",
|
|
|
|
|
|
|
|
"SecretID": "${fake.helpers.randomize([fake.random.uuid(), '<hidden>', ''])}",
|
|
|
|
"Name": "token-${i}",
|
|
|
|
"Name": "token-${i}",
|
|
|
|
${typeof location.search.ns !== 'undefined' ? `
|
|
|
|
${typeof location.search.ns !== 'undefined' ? `
|
|
|
|
"Namespace": "${location.search.ns}",
|
|
|
|
"Namespace": "${location.search.ns}",
|
|
|
@ -22,7 +23,7 @@ ${typeof location.search.ns !== 'undefined' ? `
|
|
|
|
"IDPName": "${fake.hacker.noun()}",
|
|
|
|
"IDPName": "${fake.hacker.noun()}",
|
|
|
|
"Policies": [
|
|
|
|
"Policies": [
|
|
|
|
${
|
|
|
|
${
|
|
|
|
range(env('CONSUL_POLICY_COUNT', 10)).map(
|
|
|
|
range(env('CONSUL_POLICY_COUNT', 3)).map(
|
|
|
|
function(item, j) {
|
|
|
|
function(item, j) {
|
|
|
|
if(i == 1 && j == 0) {
|
|
|
|
if(i == 1 && j == 0) {
|
|
|
|
return `
|
|
|
|
return `
|
|
|
@ -44,7 +45,7 @@ ${typeof location.search.ns !== 'undefined' ? `
|
|
|
|
],
|
|
|
|
],
|
|
|
|
"Roles": [
|
|
|
|
"Roles": [
|
|
|
|
${
|
|
|
|
${
|
|
|
|
range(env('CONSUL_ROLE_COUNT', 10)).map(
|
|
|
|
range(env('CONSUL_ROLE_COUNT', 3)).map(
|
|
|
|
function(item, j) {
|
|
|
|
function(item, j) {
|
|
|
|
return `
|
|
|
|
return `
|
|
|
|
{
|
|
|
|
{
|
|
|
|