# Automatic Configurations

Secrets are encrypted variables created for protecting your confidential data. After finishing the settings of your secret, you can use it with the format `{{ secret. keyname }}` in workflows. The value of secrets will not be displayed explicitly in YAML files or any code so that your data security will be guaranteed when using automatic workflows in Action.

### Access your secrets <a href="#accessing-your-secrets" id="accessing-your-secrets"></a>

* Entering the Dataset Overview page, click **Actions** to the Action Details page, and then click **Configure** to create or manage your secret.

![](https://2993186011-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MGbJTODB-ncDvFhokcx%2Fuploads%2F924dtEoH1NJY5ykpwmlK%2F1.10.1.png?alt=media\&token=022bc457-ede5-4b3f-b5f2-2b75084af2a4)

* You can also click **Settings** on the Datasets Overview page, then click **Action Configuration** to manage your secrets.

![](https://2993186011-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MGbJTODB-ncDvFhokcx%2Fuploads%2FPlgYwNXCmKGquTYMULL8%2F1.10.2.png?alt=media\&token=d7d7b3a1-6019-431a-82c1-c606565f75e2)

### Create Your Secrets

* Click **Create Secret**
* Type a name and enter the value for your secret in the input boxes.

![](https://2993186011-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MGbJTODB-ncDvFhokcx%2Fuploads%2FtoPvlFLHw7coSx1pemPc%2F1.10.3.png?alt=media\&token=023e63f0-5cbc-4198-9b5a-77203bed763a)

* Then click **Create** to finish the setting.

![](https://2993186011-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MGbJTODB-ncDvFhokcx%2Fuploads%2FaX9yVnPz1kyJqcczFOSq%2F1.10.4.png?alt=media\&token=66ef00ff-47dc-4d5e-9657-ef2642b563a3)

### Name Your Secrets <a href="#naming-your-secrets" id="naming-your-secrets"></a>

* Secret names can only contain alphanumeric characters (\[a-z], \[A-Z], \[0-9]) or underscores (\_). Spaces and other special characters are not allowed.
* Secret names must not start with a number.
* Secret names are case-sensitive.
* Secret names must be unique at the level they are created at. (For example, a secret created for a dataset must have a unique name in this dataset.)
* Secret names can contain a maximum of 40 characters and a minimum 2 characters.
* No limits for the value of a secret.

### Permissions

* Only administrators of a dataset can create, delete, and update secrets for that dataset.
* Members of a dataset can only copy secrets used in that dataset.
* The value of a secret is only displayed during the creation step, after that all users cannot see the explicit value.

### Manage Secrets

* All the secrets will be displayed in the secret management list, including their names, updating time and all the history operations. You can update or delete secrets in this list.

![](https://2993186011-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MGbJTODB-ncDvFhokcx%2Fuploads%2F6329je8uXsZtyRx9DWvE%2F1.11.1.png?alt=media\&token=31739ca8-f0c8-4b03-bc89-b3323c7c6b90)

### Update Secrets

* Select the secret that should be updated from the secret management list, and then click **Update** in the operation bar. Enter a new secret value in the pop-up window. Click **Update** to complete the procedure. The updated secret value will be automatically referenced when you use it the next time.

![](https://2993186011-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MGbJTODB-ncDvFhokcx%2Fuploads%2FcT5DFttmolsxkkDaQYoD%2F1.11.2.png?alt=media\&token=2b319ecc-eb43-444a-8e72-aff81ebb412e)

### Delete Secrets

* Select the secret that you want to delete from the secret management list and click **Delete** in the operation bar.&#x20;
* Click **Delete** again in the pop-up window to confirm your operation.

![](https://2993186011-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MGbJTODB-ncDvFhokcx%2Fuploads%2FrWlnnQ6voAEgh8agEcdU%2F1.11.3.png?alt=media\&token=28bd9e5c-e8aa-42fd-8daa-ab15d120e713)

{% hint style="info" %}
Deleting a secret may cause workflows using the secret to not work properly, so please be cautious.&#x20;
{% endhint %}

### Use Secrets

* To use a secret, you need to go to the secret management list to copy its name.

![](https://2993186011-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MGbJTODB-ncDvFhokcx%2Fuploads%2FRLc59P1k6ftEEbe2oKJd%2F1.11.4.png?alt=media\&token=8e0c6e94-47da-4a11-a772-b2c47c67d85a)

* Once the name is copied, you can use it with the format`{{ secret. keyname }}` in the YAML file of a selected workflow.

![](https://2993186011-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MGbJTODB-ncDvFhokcx%2Fuploads%2FIYohAGikC9lFxmdzBC7Q%2F765e0c5999f40e770cf8184271c15a3.jpg?alt=media\&token=0998cd82-f4ac-47a1-a3c6-09c4c5a0bf9e)

&#x20;
