Sync a Static Secret
Static Secrets can be configured with a sync setting, ensuring that any change to the secret’s value is automatically synced through the relevant Universal Secrets Connector.
Syncing a Static Secret from the CLI
Run the following command to sync a Static secret to an external Secret Management solution using the CLI:
akeyless static-secret-sync \
--name <Static Secret name> \
--usc-name <USC name> \
--remote-secret-name <remote secret name>
Where:
name
: The Static Secret name.usc-name
: The name of the Universal Secret Connector.remote-secret-name
: Remote Secret Name that will be created on the remote endpoint.
You can find the complete list of parameters for this command in the CLI Reference - Static Secrets section.
Syncing a Static Secret from the Console
- Log in to the Akeyless Console, and navigate to the Static Secret item
- Go to the Sync tab on the secret item and click Attach.
- Set the following settings:
-
Universal Secret Connector Name: Choose the target Universal Secret Connector.
-
Remote Secret Name: Enter the name of the secret that will be created or updated on the remote endpoint.
-
Filter secret value (jq): Optional, to filter the value of the rotated secret, to sync only specific fields, or to manipulate the value using a jq expression, e.g.
.password
etc.
Click on Save to synchronize the rotated secret.
In case an automatic sync fails, an event will be triggered. In that case, you will be able to perform a manual sync from this tab.
Updated about 16 hours ago