kosh edit
Replace the value of an existing secret.
Overview
kosh edit replaces the encrypted value of an existing secret. The key name and vault reference remain the same; only the ciphertext is updated.
Usage
kosh edit --key <NAME>
Flags
| Flag | Short | Description |
|---|---|---|
--key <NAME> | -k | Name of the secret to update |
Example
$ kosh edit --key DATABASE_URL
Current value: [hidden]
New value: [hidden]
✓ Updated DATABASE_URL
Notes
- The vault reference (
kosh:ref:v1:...) in your.envfile will be updated to point to the new ciphertext. - Use
kosh rotateif you want a new reference alongside a new value. - Changes are local until you
kosh sync --push.