You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Namespace and prefix path support on credentials (#129)
* Namespace and prefix path support on credentials
Add "namespace" and "prefixPath" configuration options to all vault credential types (string/username password/ssh).
Add "namespace" configuration option to vault auth credentials to handle case where auth provider is mounted
in a different namespace (i.e. root) than the credential.
Add missing getters on vault credentials so they are
displayed in the ui forms.
* fix: Remove redundant null check
* chore: refactor auth token namespace management
Introduce new AbstractAuthenticatingVaultTokenCredential. This specialization of the AbstractVaultTokenCredential is specific to vault credential types that retrieve the auth client token by using one of the vault auth login methods.
This new abstraction takes care of two issues from the previous implementation:
1. the auth namespace property only applies to auth methods that use it (i.e. VaultTokenCredential should not inherit that property).
2. the auth namespace can be safely scoped to the auth client and not effect the underlying VaultConfig namespace setting.
* fix: invalid javadoc syntax
* chore: remove unused vault argument
The vault argument for the abstract getToken method is
not necessary, all the implementations use the provided
auth client.
* fix: remove unused imports
0 commit comments