-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[TT-10522] Update Key API doesn't work as documented #5415
Comments
Hi @jakub-bochenski, |
Yes I did |
Thanks - I'll get one of the team to take a look, to work out why it's not working for you. |
@jakub-bochenski it looks like the payload you're using doesn't contain any access rights, and that's maybe because you want to use this key to access all APIS? If so, for this case More information here: https://tyk.io/docs/tyk-oss-gateway/configuration/#allow_master_keys Let us know if this works for you, |
@lghiur no, I just wanted to change some settings of the key, without changing the access rights Is it possible to do it? Or do I have to specify all values again? Having to specify all values is inconvenient. If you have two people modifying the key concurrently it will result in lost updates (unlike a patch approach) |
@jakub-bochenski at the moment you need to provide all the access rights again, otherwise we assume that you want access to all APIs as mentioned above. What you describe it would work more within a PATCH request indeed, but that's not supported atm. |
OK, thanks for the clarification. You might want to update the example in the API Docs, as I think it's misleading now |
@jakub-bochenski thanks, I will open an internal ticket for improving docs. |
Branch/Environment/Version
Describe the bug
The API example from https://tyk.io/docs/tyk-gateway-api/ doesn't work
Reproduction steps
Add a key then try to update it
Actual behavior
Request fails with
{"status":"error","message":"Failed to create key, ensure security settings are correct."}
Message appears in the log:
level=error msg="Master keys disallowed in configuration, key not added."
Expected behavior
Key is updated
Configuration (tyk config file):
https://github.com/TykTechnologies/tyk-gateway-docker
The text was updated successfully, but these errors were encountered: