Skip to main content

Manage Vault Access

Add or Remove access to the vault.
Important Condition: The environment managing access to a vault must be able to access the vault in the first place.

General Usage:

slv vault --vault <PATH_TO_VAULT> access [flags]
slv vault --vault <PATH_TO_VAULT> access [flags] [command]

Flags:

FlagArgumentsRequiredDefaultDescription
--env-selfNoneNANAModify vault access for the environment set to self
--env-k8sNoneNANAModify vault access for the environment in current kubernetes context
--env-pubkeyString(s)FalseNoneModify vault access for the environment with given Public Keys
--env-searchString(s)FalseNoneShare vault with environment based on search string
--quantum-safeNoneNANAUse Quantum Resistant Cryptography (Kyber1024)
--vaultStringTrueNAPath to the SLV Vault file
--helpNoneNANAHelp text for slv vault access

Add Access to a Vault

Usage:

slv vault --vault <PATH_TO_VAULT> access --env-search <SEARCH_STRING> add

Example:

$ slv vault --vault test.slv.yaml access --env-search alice add
Shared vault: test.slv.yaml

Remove Access to a Vault

Usage:

slv vault --vault <PATH_TO_VAULT> access --env-search <SEARCH_STRING> remove

Example:

$ slv vault --vault test.slv.yaml access --env-search bob@example.com remove
Shared vault: test.slv.yaml