-
Notifications
You must be signed in to change notification settings - Fork 69
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
FEATURE: Add support for updatable authentication secrets #233
Comments
Hi @cressie176, I have a question to this feature. I see in documentation updateSecret but I cannot see the methods in the I am using amqplib version 0.10.5 Many thanks for the help! :)
|
Hello @hugowschneider, Re amqplib |
Hello @cressie176 , First thanks for the amazingly fast reply. I just realized now I ended up in the Rascal repo. Sorry about that. I am interested in the amqplib. Sorry for the confusion and I just found the PR (6 days old) DefinitelyTyped/DefinitelyTyped#71226 |
Some authentication protocols expire authentication tokens unless they are refreshed. RabbitMQ supports this via the update-secret operation. amqplib was recently updated to support this, so it would be nice to add something similar to Rascal, along the following lines
behind the scenes the broker would have to find the correct vhost and call
vhost.updateSecret(secret, reason, cb)
. In turn the vhost would have to callconnection.updateSecret(secret, reason, cb)
We need to make the secret semi-permanent, so that if a connection is dropped, Rascal will use the latest secret to reconnect.
Finally we need to consider what to do if the connection had already been dropped. Ideally we would abort (or immediately repeat) any in progress reconnection, using the new token.
Here's how...
The text was updated successfully, but these errors were encountered: