Command 'juju update-secret-backend'

The information in this doc is based on Juju version 3.5.3, and may not accurately reflect other versions of Juju.

See also: add-secret-backend, secret-backends, remove-secret-backend, show-secret-backend


Update an existing secret backend on the controller.


juju update-secret-backend [options] <backend-name>


Flag Default Usage
--c, --controller Controller to operate in
--config path to yaml-formatted configuration file
--force false force update even if the backend is unreachable
--reset Reset the provided comma delimited config keys


juju update-secret-backend myvault --config /path/to/cfg.yaml
juju update-secret-backend myvault name=myvault2
juju update-secret-backend myvault token-rotate=10m --config /path/to/cfg.yaml
juju update-secret-backend myvault endpoint= token=s.1wshwhw
juju update-secret-backend myvault token-rotate=0
juju update-secret-backend myvault --reset namespace,ca-cert


Updates a new secret backend for storing secret content.

You must specify a name for the backend to update, followed by any necessary backend specific config values. Config may be specified as key values ot read from a file. Any key values override file content if both are specified.

Config attributes may be reset back to the default value using --reset.

To rotate the backend access credential/token (if specified), use the “token-rotate” config and supply a duration. To reset any existing token rotation period, supply a value of 0.

Last updated 12 days ago. Help improve this document in the forum.