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

Feature request: Enable password to be a callable #2206

Open
rhoban13 opened this issue Dec 14, 2024 · 0 comments
Open

Feature request: Enable password to be a callable #2206

rhoban13 opened this issue Dec 14, 2024 · 0 comments

Comments

@rhoban13
Copy link

What would it take to enable a client to pass a callable instead of a string for the password? Based on my read it looks like this is passed into the Transport, which each implementation uses slightly differently upon establishing a connection. So would each transport need to check if the password is a callable, and then invoke it to get the string?

Use case: Related to celery/celery#9454, I'm looking for a clean way to support frequently rotating passwords without the need to restart workers. Our passwords are somewhat short lived identity tokens. I was able to hack it up by creating a custom Transport, but that doesn't work well with the Inspect API.

It feels like this may be a much cleaner way to support changing passwords, but I'm not certain if I'm overlooking some difficulty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant