Elements runtime reference / Runtime store

getSecret

Read a tenant-shared runtime secret by id during Element execution.

Signatuur

getSecret(name, default=None)

Doel

Read a tenant-shared runtime secret by id during Element execution.

Aliases and imports

  • getsecret

Payloadformaat

Use these fields as the Python call arguments or keyword payload for this helper.

{
  "name": "ops_webhook_token",
  "default": null
}
FieldDescription
nameRuntime secret id.
defaultValue returned when the secret is missing.

Return payload

<secret value available only during runtime>

Voorbeeld

def run():
    token = getSecret("ops_webhook_token")
    if not token:
        return {"ok": False, "error": "Missing runtime secret: ops_webhook_token"}
    return {"ok": True}

Scope-notities