Doel
Read a tenant-shared runtime secret by id during Element execution.
Elements runtime reference / Runtime store
getSecretRead a tenant-shared runtime secret by id during Element execution.
getSecret(name, default=None)
Read a tenant-shared runtime secret by id during Element execution.
getsecretUse these fields as the Python call arguments or keyword payload for this helper.
{
"name": "ops_webhook_token",
"default": null
}
| Field | Description |
|---|---|
name | Runtime secret id. |
default | Value returned when the secret is missing. |
<secret value available only during runtime>
def run():
token = getSecret("ops_webhook_token")
if not token:
return {"ok": False, "error": "Missing runtime secret: ops_webhook_token"}
return {"ok": True}