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

MySQL secret backend: Ability to list generated credentials #2585

Closed
StyleT opened this issue Apr 11, 2017 · 4 comments
Closed

MySQL secret backend: Ability to list generated credentials #2585

StyleT opened this issue Apr 11, 2017 · 4 comments

Comments

@StyleT
Copy link
Contributor

StyleT commented Apr 11, 2017

Hi!
Looks currently it's impossible to list all active credentials for MySQL secret backend. For example I can't review a list of creds that are currently in use. This feature is extremely useful to revoke all existing credentials for some role.

Please correct me if I missed something.

@StyleT
Copy link
Contributor Author

StyleT commented Apr 11, 2017

After some research I see that looks like the same issue exists for all dynamic backends.

@chrishoffman
Copy link
Contributor

You can use the /sys/revoke-prefix endpoint to revoke all credentials created for a given role or role prefix. Since the CLI is just a wrapper around the API, you can also do the following:

vault revoke -prefix=true mysql/creds/role-name/

See https://www.vaultproject.io/api/system/revoke-prefix.html.

@StyleT
Copy link
Contributor Author

StyleT commented Apr 11, 2017

@chrishoffman yep, it's a good workaround for bulk revocation but this doesn't help me to perform audit of credentials that are currently in use. I'm personally interesting in tokens that were issued a long time ago, have big lease time, etc..

@chrishoffman
Copy link
Contributor

The ability to list and view lease information will be available in 0.7.1 which should be released shortly. See #2650.

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

2 participants