Update Secret
A system task that updates the value of any secret, given that the user has permission to update the secret.
Definitions
{
"name": "update_secret_task",
"taskReferenceName": "update_secret_task_ref",
"type": "UPDATE_SECRET",
"inputParameters": {
"_secrets": {
"secretKey" : "my_secret",
"secretValue" : "1234"
}
}
}
Input Parameters
Attribute | Description |
---|---|
secretKey | Name of the secret key. |
secretValue | Value of the secret key. |
optional | If enabled, the task becomes optional, allowing the workflow to continue regardless of the task's outcome (whether it fails or remains incomplete). |
Notes
- The user must have update permission for the specified secretKey; otherwise, the workflow will terminate with a 403 error.
- If the secret does not exist, it will be created with the secretValue provided as the input parameter to the task.
- Only one secret can be updated at a time.
Examples
- UI
- JSON
- Add task type Update Secret.
- Configure the secret key and value.
{
"name": "update_secret_task",
"taskReferenceName": "update_secret_task_ref",
"type": "UPDATE_SECRET",
"inputParameters": {
"_secrets": {
"secretKey" : "my_secret",
"secretValue" : "1234"
}
}
}