Velo: Working with the Secrets Manager
Velo's Secrets Manager lets you securely store secrets such as API keys in your site's dashboard. The value of each secret is safely stored and encrypted in the Secrets Manager so that only you can access it. You choose a name for each secret, which is used in your site's code.
To use the Secrets Manager, click and then Start Coding (Wix Studio), or enable Velo Dev Mode for your site (Wix Editor).
Notes
- If you duplicate your site, secrets stored in the Secrets Manager are not transferred to the duplicated site.
- If you transfer your site, only the new site owner will have access to secrets stored in the Secrets Manager.
Access the Secrets Manager
To access the Secrets Manager, do the following:
-
Select Developer Tools from the Code sidebar (Wix studio), or the Velo Sidebar (Wix Editor). Under the Security section, select Secrets Manager. Alternatively, you can select Developer Tools in your site's dashboard. Then select Secrets Manager.
-
Select Secrets Manager.
Manage Your Secrets
You can store, view, edit, and delete secrets in the Secrets Manager.
Add a Secret
-
At the top right of the Secrets Manager, click Add Secret.
-
In the Add Secret panel, fill in the following:
-
Name: Give your secret a meaningful name that's easy to identify. The Secrets Manager can hold up to 64 unique secrets consisting of alphanumeric characters, numbers, and the following special characters: underscore (_), and dash (-). Spaces and other symbols are not supported.
-
Value: Enter the actual value of the secret, such as an API key.
-
Description: Optionally enter a description of your secret.
-
-
Click Add Secret.
The secret is added and stored in the Secrets Manager. The name and description are displayed, and the secret is hidden.
Edit a Secret
Warning: Changing a secret's name or value will break all code that implements the secret.
-
For the secret you want to edit, hover over it and and select Edit.
-
To change the secret's name or description, click the field and edit the text.
-
To change the secret's value:
-
Click Retrieve Value. The value of the secret appears as a series of dots.
-
Optionally click the View icon
to view the value.
-
Click the field and edit the text.
-
-
Click Change Secret.
Delete a Secret
Warning:
- Deleting a secret will break all code that implements the secret.
- You cannot restore a deleted secret.
- For the secret you want to delete, click the Trash Bin
icon.
- Click Delete Secret to confirm.
The secret is removed from the Secrets Manager.
Note: Changes in the Secrets Manager are applied immediately and do not require publishing the site.
What's Next? Using the Secrets API, add the secret to your code and connect with a 3rd-party service.