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

Customize the automatic creation of entities based on auth backend tune #23602

Closed
abexamir opened this issue Oct 11, 2023 · 4 comments
Closed

Comments

@abexamir
Copy link

One problem I encounter while using Vault is that when I configure an external authentication method such as OIDC or Kubernetes, every individual user who is authorized to use that authentication backend (such as users from my organization's OIDC provider or all service accounts in my Kubernetes cluster) is automatically granted access to Vault and an entity (along with an alias) is generated for them.

I would like to personally maintain a list of entities and their aliases through either an IaC or UI. When a user attempts to authenticate, Vault will first check the entity aliases for the user. If a corresponding alias and entity exist, the user will be authenticated and assigned a token, otherwise, the login gets rejected.

I can implement the required scenario and submit a pull request. The solution involves adding an option to each authentication backend tune to determine the dynamic creation of entities. However, I need to ensure that this behavior aligns with Vault's overall policies and is acceptable.

@fairclothjm
Copy link
Contributor

@abexamir Hello! This should already be possible today with bound_claims and bound_service_account_names for OIDC Auth and Kubernetes Auth respectively.

Please let us know if these do not work for your use case. Thanks!

@abexamir
Copy link
Author

Thank you for your response, @fairclothjm. However, the solution you provided does not fully meet my needs. It requires manual appending of entities to a long list of bound_claims or bound_service_account_names every time I add a new entity to my Vault, which is not very tidy. Ideally, I would like claims or service accounts to authenticate only if an entity and alias have already been created for them, as requested in issue #14989.

@fairclothjm
Copy link
Contributor

@abexamir Thanks for the clarification! I will discuss with my team if this is something we want to support.

In the meantime, are you okay with closing this issue in favor of #14989?

@abexamir
Copy link
Author

abexamir commented Oct 18, 2023

Certainly. Could you please provide an update on #14989? It would be helpful for everyone to stay informed. Thank you.

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

No branches or pull requests

4 participants