Skip to content

Security Model

This page states what your team is responsible for when you keep secrets on the platform, and what the platform guarantees in return. The secrets pages link here: component secrets, Forge variables, function and global environment, workflow expressions, Spark environment and API users.

The rule underneath: whoever can change or deploy code can read every secret that code receives. The platform does not try to stop that. It decides who may deploy, and it keeps secret values out of every other path.


What You Are Responsible For

  • Deploy rights. Anyone who can change or deploy code can read every secret that code receives. Owner, Maintainer and deploy rights are therefore secret access: grant them accordingly.
  • OAuth apps. An OAuth app that may deploy code is trusted like a developer. Deployed code receives the project secrets of the user who deploys it.
  • Approving an app. Approving an app trusts its code, including later versions you approve, within the permissions you approved.
  • What your code does with a secret. Run-output scrubbing removes every value a run received, in the encodings it covers (JSON, URL, base64, HTML and the others it handles). It cannot catch code that changes a value on purpose, such as part of it, a hash or the value reversed. Secrets under 8 characters are refused, because shorter values cannot be scrubbed safely.
  • Changing code. To create or change code you must hold everything that code receives: its run identity, and read on its own secrets.

    Code Read you must hold
    A component that declares secrets secrets::read <ref>
    A function whose env has encrypted values secrets::read base_functions
    A Spark whose env has encrypted values spark::secrets::read sandbox

    A workflow has no secrets of its own. Its expression nodes run as the workflow's run identity. Condition and switch nodes run with no identity, but they decide which of that code runs, so changing any of its nodes needs that identity.

    Code with no run identity runs as Maintainer, so only the Owner and Maintainers can change it until one of them gives it a narrower identity. The dashboard names the identity or the missing permission when it refuses.

    Capabilities, per unit. A component function or a workflow expression node may declare the permissions it needs. Such a unit runs with only those its run identity holds, and no role memberships. Platform functions, whole components and workflows, and other nodes declare none.

    • An edit that touches only declared units, where you hold every permission each one declares, needs no hold on the identity. A developer without secrets access can change code that needs none.
    • Anything else needs the hold. That covers adding or removing a unit, edges and graph structure, condition, switch and Kortex nodes, config, schemas and routes, and units that declare nothing.
    • Turning a unit's capabilities on or off needs the hold.
    • Every declared permission must be held by the identity the code runs as. Otherwise the save is refused.

    The dashboard reads access.editable_units in the metadata: the units you may change without the hold. It makes everything else read-only. You may edit a listed unit's code, inputs and permissions, but not clear its capabilities.

    Refusals name the unit and the permission, as unit and capability:

    Error Meaning
    capability_invalid An entry is not a literal permission
    capability_not_held You do not hold a permission the unit declares
    capability_not_held_by_identity The run identity does not hold a declared permission
  • Reusing a secret name. Declaring a component secret's name again reuses its old value when another version of the component still declares the name. Rotate it or set it again.

  • Hygiene. Rotate secrets when someone leaves or a leak is suspected. Protect your accounts, devices and API keys.

What the Platform Guarantees

  • Encrypted at rest. Every stored secret value is encrypted.
  • Write-only. A secret is never shown again after it is saved. No API response, dashboard page, log or audit record returns it. A stored secret reads back as secretref::. The only way to read it is code that receives it.
  • Changing a secret needs an explicit permission. Owner and Maintainers hold all of them; any other role needs them added.

    What you change Permission
    Component secrets secrets::write <ref>
    Function env secrets::write base_functions
    Global env secrets::write global_env, or secrets::write global_env.<group> for a group
    Spark env spark::secrets::write sandbox
    API-user credentials credentials::manage base_users
    Forge variables manage forge, or manage_variables forge for the app's own
  • Running code gets encrypted values only by permission. Encrypted global env values go to a run only when the identity the code runs as holds secrets::read global_env, or secrets::read global_env.<group> for that group's values. This holds wherever code reads $globalEnv: platform functions, component functions, and workflow expression, condition and switch nodes. A workflow dry run and an integration node's expression inputs never get encrypted values. A component's $secrets and a Forge app's own variables go only to that component's or app's code.

  • Audited. Every secret change, and every deploy-time hand-out of decrypted values, is audited by name, never by value. Values delivered to a run are not audited per run.

A refused request names the missing permission and never echoes a value.