-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Inconsistent HTTP API behavior when renewing RabbitMQ leases #2875
Comments
FYII was able to reproduce the same behavior with PostgreSQL dabatabse plugin. Steps to reproduceThis assumes you have the environment running from the message above, so only Postgres-specific commadns are shown.
The last command should produce output similar to this:
This should produce the following output:
Actual results:The response contains an invalid lease_id:
Expected results:The output of the last command should output same result as for the vault cli command. |
Looking at the source code the HTTP API calls should be made against a different endpoint - Is the documentation out of sync with the actual functionality? |
This behavior is occurring for mysql database plugin as well on And it is causing all types of issues because the returned
any business logic relying on the lease renew endpoint returning the same lease id or at lease a lease id that can be renewed again is broken due to this issue. |
@artiommft No, the two locations are supposed to behave identically. This is a bug, but one you can work around right now by using |
Summary
When renewing a RabbitMQ lease the HTTP API responds with an incorrect lease_id.
According to the documentation it should return the lease with original rabbitmq prefix like
rabbitmq/creds/...
, but it returnssys/leases/renew/...
instead.Environment
Vault docker image v0.7.3
RabbitMQ docker image v3.6.10
Host OS: Ubuntu 16.04, Docker 17.05-ce
Steps to reproduce
Note the
lease_id
from the commands above, for examplerabbitmq/creds/readwrite/5a9a77d1-d4be-3854-e532-8dbcf1fc88dd
The output should be like the following:
exit
command and create a curl payload file namedpayload.json
with the following contents:Make sure to adjust the
lease_id
value as in previous commands.\Actual results:
The
curl
command above outputs something like (note thelease_id
prefix):Expected results:
The
lease_id
from the results above should be the same as when renewing it via Vault CLI.Can you please confirm whether this is an issue with Vault or it is something specific to my setup?
Maybe it is already fixed in the latest codebase?
Let me know if you need any more details.
Thank you,
Artiom
The text was updated successfully, but these errors were encountered: