How secrets work
- You store a secret with a name, a value, and a list of allowed hosts.
- When a run uses the secret, the sandbox gets an environment variable with the secret’s name. Its value is a placeholder, not the real credential.
- When the agent sends a request to an allowed host, Superlog replaces the placeholder with the real value at the network boundary. Requests to other hosts keep the placeholder.
Create a secret
1
Open the secret dialog
Open
/agents/new in Superlog. In the Workspace secrets panel, click Add secret.2
Name it
Under Environment variable, enter the name, for example
METRICS_API_KEY. Names use uppercase letters, digits, and underscores, up to 80 characters. Some names, such as PATH and HOME, are reserved.3
Enter the value
Paste the credential under Secret value. Values can be up to 64 KB. You cannot view the value again after you store it.
4
Set the allowed hosts
Under Allowed hosts, list 1 to 20 hostnames, without a scheme, path, or port. A leading
*. matches subdomains.5
Store it
Click Store and add. The secret is now available to every automation in the workspace and to tag mode.
Use a secret
- Automations: In the automation editor, click Add connector and pick the secret under Workspace secrets. An automation can use up to 20 secrets.
- Tag mode: In Tag mode, click Choose secrets under Workspace secrets.
https://api.example.com/v1/status with the bearer token in $METRICS_API_KEY.”