Secrets
Store and manage sensitive values like API keys and credentials at the collection level
Overview
Secrets let you store sensitive values like API keys, credentials, or tokens at the collection level so they can be securely injected into blueprints at runtime.
By managing secrets centrally, you make it easier to reuse blueprints securely while maintaining strict control over who can access sensitive values.

How collection secrets work
Automatic injection: when a blueprint references a secret key that exists in the collection, the value is injected at runtime
Scoped by collection: each collection has its own isolated secret store; secrets never leak across collections
Hidden after save: secret values are encrypted client-side before they leave your browser and cannot be viewed again after creation. To change a secret value in the UI, delete it and create a new one.
Access-controlled: only users with the right permissions can create or delete secrets. Others can reference them but not view their values.
Secret values are encrypted before they leave your browser and are never stored or displayed in plain text. They are only available at runtime within the secure execution context.
How to use secrets in blueprints
Creating a secret
Navigate to the desired collection page
Select Secrets from the left side menu
Click + Add secret
Enter the secret name (key) and value
Click Save
Once saved, the value is encrypted and hidden. You cannot view it again.
Secret names cannot contain hyphens (-) when created through the UI. Use underscores or camelCase instead (e.g., max_password_age).
Referencing secrets in bricks.json
In your blueprint's bricks.json, reference a secret using the Secrets keyword followed by the secret's key.
The max_password_age property pulls its value from the collection's max_password_age secret during runtime. The platform provides the collection's secrets to the runner at deployment time, and the runner resolves each Secrets.<key> reference and securely injects the values into the infrastructure execution.
Referencing secrets in bricks.yaml
In bricks.yaml, use the lowercase secrets keyword:
For the full syntax reference, see Inputs and Outputs.
To delete a secret, click the three-dot menu on the secret row and select Delete.
Managed encryption keys
Bluebricks supports two options for secrets encryption:
Bluebricks Managed Key: encryption key generated and managed by Bluebricks. Contact support to enable this option.
Bring Your Own Key: use your own cloud KMS key for encryption. Supported providers:
AWS KMS:
arn:aws:kms:<region>:<account>:key/<key-id>Azure Key Vault:
https://<vault-name>.vault.azure.net/keys/<key-name>GCP Cloud KMS:
projects/<project>/locations/<location>/keyRings/<ring>/cryptoKeys/<key>
Last updated
Was this helpful?

