Tokens¶
Tokens are named text values that can be referenced from environment variables and other generated configuration.
A token can either:
- have a fixed plain value
- use a regular expression to generate a random secret value when the app instance or app service is created or updated
In an app, token values are composed and overridden across several levels. Later levels override earlier ones:
- service-defined tokens
- stack-service tokens
- stack-wide tokens
- app-instance tokens
- app-service tokens
This page is the public reference for built-in runtime tokens resolved in app-service context.
Some internal or infrastructure-only secret-bearing tokens are intentionally omitted from this public list.
Where tokens are supported¶
Tokens are commonly supported in:
- environment variable values defined by services, stacks, apps, links, imports, and workloads
- Helm values such as
helm.values[].valueand other service manifest fields that feed values into a Helm chart - config contents when
configs[].processTokens: trueis enabled - action arguments, database actions, backup actions, and similar generated runtime configuration
app¶
app.id: application ID, not app-instance IDapp.name: application machine nameapp.title: application title
instance¶
instance.id: app instance IDinstance.name: app-instance machine nameinstance.namespace: Kubernetes namespace for the app instanceinstance.title: app-instance title
kubernetes¶
kubernetes.id: Kubernetes cluster IDkubernetes.externalID: cluster external IDkubernetes.name: cluster machine namekubernetes.fullName: cluster full name
Infrastructure-oriented FRPC tokens are also supported under kubernetes.frpc.*, but the secret-bearing/internal
subset is intentionally not documented here.
env¶
env.id: environment IDenv.name: environment machine nameenv.title: environment titleenv.type: environment type
org¶
org.id: organization ID
service¶
service.id: app-service IDservice.name: app-service machine nameservice.title: app-service titleservice.host: app-service hostnameservice.fqdnPrefix: generated host prefix used for domainsservice.primaryURL: primary URL for the service, including scheme when a primary domain existsservice.primaryHost: primary domain name for the serviceservice.mainPort.number: port number of the primary port on the primary endpointservice.mainPort.protocol: protocol of the primary port on the primary endpointservice.replicas: app-service replica countservice.secrets.env: generated Kubernetes Secret name used for secret environment variables
Legacy service.helm.release is still supported for backward compatibility.
helm¶
helm.release: resolved Helm release name for the current app service
Use this token when a chart exposes labels, selectors, or values keyed by the Helm release name.
stack¶
stack.id: stack IDstack.name: stack machine namestack.title: stack titlestack.version: stack versionstack.rev.id: stack revision IDstack.rev.number: stack revision number
database¶
Available when the current app-service context exposes a database.
database.host: database hostname. This is private when accessed through an app service with a private database user, otherwise publicdatabase.port: database connection port. This is private when available, otherwise publicdatabase.driver: database driver, based on the database kinddatabase.root.name: database superuser usernamedatabase.root.password: database superuser passworddatabase.user.name: database username for the current app-service contextdatabase.user.password: database user password for the current app-service contextdatabase.db.name: database name for the current app-service contextdatabase.db.charset: database charset for the current app-service contextdatabase.db.collation: database collation for the current app-service context
links¶
Accessed as links.[name].[token].
links.[name].host: linked app-service hostnamelinks.[name].port: primary port of the linked app service's primary endpointlinks.[name].service.*: service token from the linked app service. Seeservicelinks.[name].instance.*: app-instance token from the linked app service. Seeinstancelinks.[name].env.[env-var-name]: environment-variable value from the linked app servicelinks.[name].tokens.[token-name]: token value from the linked app servicelinks.[name].database.*: database token from the linked app service. Seedatabase
configs¶
Accessed as configs.[name].[token].
configs.[name].configMap: generated Kubernetes ConfigMap name for the named config
volumes¶
Accessed as volumes.[name].[token].
volumes.[name].size: effective volume size in GBvolumes.[name].claim: generated PVC name for the named volume
integrations¶
Accessed as integrations.[name].[token].
integrations.[name].key: integration key or secret valueintegrations.[name].variables.[variable-name]: exported integration variable by name