Repository navigation
Add mount point to HashiCorp Vault manager - #82
Merged
Merged
Conversation
Secrets were always read from the KV version 2 secrets engine mounted at 'secret'. Vault and OpenBao installations can mount the engine at other paths, like a dedicated one for GrimoireLab. `HashicorpManager` accepts the parameter `mount_point` to read secrets from the engine mounted at that path. By default, it is 'secret', so the behaviour doesn't change for existing users. The mount point is also included in the error raised when a secret is not found. The README example of `resolve_credentials` is fixed too. It used 'secret/my-service' as the name of the secret, but the name is relative to the mount point, so it should be 'my-service'. Signed-off-by: Santiago Dueñas <sduenas@grimoirelab.org> Assisted-by: Claude:claude-opus-5.5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Secrets were always read from the KV version 2 secrets engine mounted at 'secret'. Vault and OpenBao installations can mount the engine at other paths, like a dedicated one for GrimoireLab.
HashicorpManageraccepts the parametermount_pointto read secrets from the engine mounted at that path. By default, it is 'secret', so the behaviour doesn't change for existing users. The mount point is also included in the error raised when a secret is not found.The README example of
resolve_credentialsis fixed too. It used 'secret/my-service' as the name of the secret, but the name is relative to the mount point, so it should be 'my-service'.