hashicorp / vault

A tool for secrets management, encryption as a service, and privileged access management
https://www.vaultproject.io/
Other
31.34k stars 4.23k forks source link

Manage access control by tagging of secrets #11316

Open FeKoerner opened 3 years ago

FeKoerner commented 3 years ago

Is your feature request related to a problem? Please describe. In the current state every access change has to be made from an administrator by changing the matching policy.

Describe the solution you'd like The goal is to make this more flexible and to empower the creator of a secret to share it on their own. This would solve the bottleneck of the administration.

I would like to introduce taging at secrets. Here is an example:

CorpFoo concist out of the following teams:

CorpFoo uses a simple vault setup with only one key value store under the path secret. Every team has a folder under this path with secrets.

Development creates a secret with the name newyork. Development knows, that Operations need read access to the secret newyork.

Possible realization:

Describe alternatives you've considered Extending regular expressions of policies

sgmiller commented 3 years ago

Have you considered structuring your secrets path by consumer (eg operations) rather than producer? Giving the development team write but not read to a path that operations has read but not write is a common pattern.

yahesh commented 3 years ago

This would be an awesome feature. Structuring secrets paths by consumer leads to either duplicate data (if each consumer group gets their own path) or to a cluttering of secrets paths (if each combination of consumers get their own path). There currently does not seem to be a simple yet efficient way to do this.