Using Kickstart - only the first API Key is created
-
Hello! I'm using a kickstart file to provision my testing environment and it's looking good so far, except for the creation of API keys. Only the first key is being generated, and no subsequent ones. I'm following the format presented here: https://fusionauth.io/docs/v1/tech/installation-guide/kickstart/
The relevant part of the kickstart.json file looks like this:
"apiKeys": [ { "key":"#{masterKey}", "description": "Master Key" }, { "key": "long-string-here", "description": "User Update Key", "permissions": { "endpoints": { "/api/group/member": ["POST", "DELETE"], "/api/user": ["GET", "POST", "PUT", "PATCH"], "/api/user/comment": ["GET", "POST"] } } }, { "key": "long-string-here", "description": "User Import Key", "permissions": { "endpoints": { "/api/user/import": ["GET", "POST", "PUT", "PATCH"], "/api/user/search": ["GET", "POST"] } } } ]
But upon completion of the startup process, only the "Master Key" has been created. Is there a syntax error that I'm not spotting? From the guide, linked above, I thought that this would create the three keys.
-
Anything special appears in the logs on startup?
long-string-here
is a placeholder for the purpose of the forum post, or is it actually the key you're trying to create? If it is the latter, then it will cause conflict - keys values needs to be unique. If themasterKey
variable is also set tolong-string-here
, then you will end up with only one key created and errors in the logs. -
@hd_steve did you get this resolved?