Updating keys can be done both through the Gateway and the Dashboard, and as such, you'll need parameters settings on two configuration files: `tyk.conf` and `tyk_analytics.conf`.
If you've retrieved your Dashboard configuration file from one of our repo in the past, you'll most likely run into the issue where you can't update keys through the UI. You'll need to add the following the following in your `tyk_analytics.conf`.
"enable_delete_key_by_hash":true,
"enable_update_key_by_hash":true,
"enable_hashed_keys_listing": true,These also come as ENV variables if you're using env variables instead of parameters. More information for those can be found in our Dashboard configuration page.
Additionally, if it's still not updating you'll need to make some configuration changes to your `tyk.conf` file as well:
"hash_keys":true,
"enable_hashed_keys_listing": true,These also come as ENV variables if you're using env variables instead of parameters. More information for this can be found in our Gateway configuration page.
Alternatively, if you're updating/viewing your keys directly through either the Gateway and Dashboard APIs then the above parameters or env variables are needed again. The Gateway API requires the parameters in your `tyk.conf` and the Dashboard API requires the parameters in your `tyk_analytics.conf.
Dashboard UI Keys behavior table in relation to Gateway and Dashboard config.
This will be helpful for debugging the behavior you are seeing especially on Keys Section in Dashboard UI.
| Gateway(tyk.conf) | Dashboard(tyk-analytics.conf) | Dashboard UI Keys behavior |
| enable_hashed_keys_listing": false, | enable_hashed_keys_listing": false, | Search Key bar = visible, Key List = not visible |
| enable_hashed_keys_listing": false, | enable_hashed_keys_listing": true, |
Search Key bar = not visible, Key List = not visible |
| enable_hashed_keys_listing": true, | enable_hashed_keys_listing": true, |
Search Key bar = visible, Key List = visible |
| enable_hashed_keys_listing": true, | enable_hashed_keys_listing": false, |
Search Key bar = visible, Key List = not visible |
Comments
0 comments
Please sign in to leave a comment.