Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kickstart Variable Substitution Doesn't Work on API Key #493

Closed
tst-dhudlow opened this issue Feb 26, 2020 · 1 comment
Closed

Kickstart Variable Substitution Doesn't Work on API Key #493

tst-dhudlow opened this issue Feb 26, 2020 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@tst-dhudlow
Copy link

Kickstart Variable Substitution Doesn't Work on API Key

Description

Using the kickstart example from the docs below will create an API key with a value of "#{apiKey}" instead of doing variable substitution.

{
  "variables":{
    "apiKey": "4737ea8520bd454caabb7cb3d36e14bc1832c0d3f70a4189b82598670f11b1bd"
  }
  "apiKeys": [{
    "key": "#{apiKey}"
  }]
}

Steps to reproduce

Steps to reproduce the behavior:

  1. Follow this guide https://fusionauth.io/docs/v1/tech/installation-guide/kickstart to start FusionAuth with a kickstart.json
  2. Use variable substitution in the API key in the kickstart.json as mentioned in the guide at step 2.2 Using Variables
  3. Start FusionAuth and go through setup
  4. Go to Settings -> API Keys in the console

Expected behavior

API Key should be set up using value given by apiKey variable

Actual behavior

API Key value is literally #{apiKey}

Platform

  • Device: GKE (Google Kubernetes Engine)
  • OS: Docker container
  • Firefox
@robotdan robotdan self-assigned this Feb 26, 2020
@robotdan
Copy link
Member

Hi @tst-dhudlow thanks for letting us know! This will be fixed in the upcoming patch release.

As a work around, make the first API key not use a variable.

{
  "variables": {
    "apiKey": "4737ea8520bd454caabb7cb3d36e14bc1832c0d3f70a4189b82598670f11b1bd"
  },
  "apiKeys": [
    {
      "key": "first!"
    },
    {
      "key": "#{apiKey}"
    }
  ]
}

@robotdan robotdan added bug Something isn't working and removed triage labels Feb 26, 2020
@robotdan robotdan added this to Backlog in FusionAuth Issues via automation Feb 26, 2020
@robotdan robotdan added this to the 1.15.3 milestone Feb 26, 2020
@robotdan robotdan moved this from Backlog to Code complete in FusionAuth Issues Feb 26, 2020
FusionAuth Issues automation moved this from Code complete to Done Feb 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
FusionAuth Issues
  
Delivered
Development

No branches or pull requests

2 participants