Repository navigation
Support configurable vault-client binary in vault-k8s - #928
Merged
Conversation
| if a.ImageName == "" { | ||
| return errors.New("no Vault image found") | ||
| } | ||
| if a.binary() != "vault" && a.binary() != "vault-client" { |
Contributor
There was a problem hiding this comment.
Can we have single exported helper for this validation as this is duplicated in command.go as well. It will be easier to maintain.
Siddharth-Kannan
deleted the
VAULT-52160-support-configurable-vault-client-binary-in-vault-helm-and-vault-k-8-s-agent-injector
branch
November 25, 2026 05:44
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.
Summary
Support agent images containing only vault-client by making the injector-generated executable configurable.
The existing Helm injector.extraEnvironmentVars setting can pass the new environment variable to an injector image containing this change.
Vault server commands and user-supplied commands remain unchanged.
Validation
make test.Manual Testing
Used a real enterprise image containing
vault-clientbut novaultexecutable.vault-client token revokeand attempted a request to the expected/v1/auth/token/revoke-selfAPI endpoint.These checks confirm command compatibility with a client-only image.
Kubernetes authentication, secret retrieval, and successful token revocation were not tested.
PCI review checklist
I have documented a clear reason for, and description of, the change I am making.
If applicable, I've documented a plan to revert these changes if they require more than reverting the pull request.
If applicable, I've documented the impact of any changes to security controls.
Examples of changes to security controls include using new access control methods, adding or removing logging pipelines, etc.