feat: add project profiles to run - #319
Draft
noeljackson wants to merge 1 commit into
Draft
Conversation
📝 Contributor License Agreement requiredBefore this PR can merge, every contributor must sign the Infisical CLA. Still needs to sign: Once everyone has signed, the check updates automatically — no need to close and reopen the PR. |
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
Add named project profiles to
agent-vault runso one repository can select among multiple vaults while giving the child process the credential placeholders and public configuration expected by existing tools.agent-vault.jsonformat with versionedaddressandprofilesfieldsagent-vault run --profile <name> -- <command>for host and container isolation{"vault":"..."}bindings working and preserve profile data whenvault initupdates a binding--profile/--vaultexclusivity and deterministic address and environment precedenceThis is client-side only and does not require a server change.
Type of change
Test plan
go test -count=1 ./...)go test -race -count=1 ./cmd ./internal/isolation)golangci-lint run --new-from-rev=upstream/main ./...)make build); binary reports commit571a169AGENT_VAULT_TOKENsupplied; the selected profile provided address, vault, placeholders, CA trust, and proxy configuration to the child--profileplus--vaultfails before network accessSecurity checklist
Profile values are child-only. Generated Agent Vault token, vault, address, proxy, and CA variables always take precedence. The docs explicitly identify project
addresschanges as security-sensitive because the selected broker receives the run token.