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

Ensure that the auth_login honours the provider's namespace #1830

Merged

Conversation

benashz
Copy link
Contributor

@benashz benashz commented Apr 28, 2023

Previously, when any auth_login was configured with provider.namespace, the login would not be done in the correct namespace. This was a big problem for HCP Vault users, since the default namespace for on an HCP Vault cluster is admin.

In addition, the child token is now created in the same namespace as the parent token.

Closes #602

@benashz
Copy link
Contributor Author

benashz commented Apr 28, 2023

Looking at the test failures now.

@benashz benashz force-pushed the VAULT-15937/ensure-auth-login-honours-the-provider-namespace branch from b827505 to 00313a1 Compare April 30, 2023 20:26
@github-actions github-actions bot added size/M and removed size/S labels Apr 30, 2023
Previously, when any auth_login was configured with provider.namespace,
the login would not be done in the correct namespace. This was a big
problem for HCP Vault users, since the default namespace for on an HCP
Vault cluster is admin.
@benashz benashz force-pushed the VAULT-15937/ensure-auth-login-honours-the-provider-namespace branch from 00313a1 to 33fec86 Compare April 30, 2023 21:14
@github-actions github-actions bot added size/L and removed size/M labels Apr 30, 2023
@github-actions github-actions bot added size/M and removed size/L labels Apr 30, 2023
@benashz benashz requested a review from fairclothjm May 1, 2023 16:23
@benashz benashz added this to the 3.15.1 milestone May 1, 2023
@benashz benashz merged commit 5d5882e into main May 2, 2023
@benashz benashz deleted the VAULT-15937/ensure-auth-login-honours-the-provider-namespace branch May 2, 2023 16:18
benashz added a commit that referenced this pull request May 4, 2023
benashz added a commit that referenced this pull request May 4, 2023
* Revert "Ensure that the auth_login honours the provider's namespace (#1830)"

This reverts commit 5d5882e.

* Update changelog
benashz added a commit that referenced this pull request May 4, 2023
Previously, when any auth_login was configured with provider.namespace,
the login would not be done in the correct namespace. This was a big
problem for HCP Vault users, since the default namespace for on an HCP
Vault cluster is admin.

* Only set the parent client's namespace once.
benashz added a commit that referenced this pull request Jun 5, 2023
…oken's (#1841)

* Ensure that the auth_login honours the provider's namespace (#1830)

Previously, when any auth_login was configured with provider.namespace,
the login would not be done in the correct namespace. This was a big
problem for HCP Vault users, since the default namespace for on an HCP
Vault cluster is admin.

* Only set the parent client's namespace once.

* Add namespace tests for NewProviderMeta()

* Log a warning if the non-root token TTL is below 5m

* Add note about issues with short Token TTLs

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

Successfully merging this pull request may close these issues.

vault provider does not use namespace creating child token
4 participants