Manage configuration and reveal secrets
Platform configuration is a store of named values that an application keeps on the platform: settings it reads at start-up, per-client options, and secrets such as an API key or an SFTP password. Operators manage them in the console; applications read them with the SDKs. This guide covers the operator side. The model (sections, properties, global and per-client values, how secrets are protected) is in Configuration and secrets; reading them from code is in Platform configuration from code.
Before you start
Section titled “Before you start”- The platform key. Secrets are encrypted with
FLOWCATALYST_APP_KEY. Without it a secret cannot be written or revealed: the platform refuses rather than store or return plaintext. It still starts, and logs how many secrets it cannot read. After rotating the key, keep the old one inFLOWCATALYST_APP_KEY_PREVIOUS(a comma-separated list) so existing secrets stay readable, then runfc-server reencryptto move every stored secret to the new key. See the key rotation runbook. - The application must exist. Configuration can only be set, and access granted, for an application
that exists (
404 Application_NOT_FOUNDotherwise). Register it first; see Onboard a client and entitle applications. - Permissions. Viewing and editing are separate from revealing.
| Action | Platform administrator | An application’s service account |
|---|---|---|
| List and read | platform:admin:config:view |
platform:application-service:config:view |
| Set and delete | platform:admin:config:update |
platform:application-service:config:update |
| Reveal a secret | platform:admin:config:reveal |
platform:application-service:config:reveal |
The built-in platform:admin role holds view and update. platform:config-secrets-admin holds all three
and is the deliberate grant for the few people who may reveal secrets. Super-admin has everything.
platform:admin can edit configuration but cannot reveal a secret.
Find the page
Section titled “Find the page”Open Platform → Settings → Configuration (/ui/platform/config; shown with
platform:admin:config:view). Choose the application at the top (platform is the platform’s own
configuration, and application-scoped accounts are not offered it). The table lists section, property,
scope, type, value, description and last update, with search, sort and 25-row pages. A client-scoped
value shows the client’s identifier.
The list shows only the values you reach. Edit and Delete appear only for values you may write; Reveal only where you hold a reveal permission that reaches the application and that row’s client.
Add or change a value
Section titled “Add or change a value”- Choose Add (or the pencil on a row). The same dialog does both: saving is an upsert.
- Enter the Section and Property, which together name the value (
orders/sftp/password). - Optionally enter a Client by its identifier or id. Leave it empty for the global value. A client’s value and the global value are separate rows: asking for a client’s value never falls back to the global one. An unknown client gives “No client with this identifier.”
- Choose the type, Plain or Secret, and enter the value and a description.
- Save.
Plain values are stored and shown as text. A secret is write-only in the form: it is never filled in when
you edit, and saving requires entering a new value. Saving a secret as *** (the mask) or empty is
refused (SECRET_VALUE_MASKED, SECRET_VALUE_REQUIRED) so a value read back and written again can never
replace the secret with its mask. To leave a secret unchanged, do not save it.
The section ingest is reserved for ingestions’ per-environment settings. You cannot set or delete
properties in it here (400 CONFIG_SECTION_RESERVED); they change through the ingestion that names them.
See Accept data over HTTP.
Point a secret at AWS
Section titled “Point a secret at AWS”Instead of storing a secret on the platform, the value can be a reference that the platform resolves at read time, so you set and rotate the secret once, in AWS:
| Reference | Points at |
|---|---|
aws-sm://<name-or-arn> or aws-sm://<name-or-arn>#<key> |
AWS Secrets Manager; #key picks a field of a JSON secret |
aws-ps://<parameter> |
Parameter Store; a path parameter is aws-ps:///path/to/param |
A reference is stored like any secret value, but it is not itself secret: the list shows it
(aws-sm://…) where a real secret shows ***. Reveal and the ingestion runtime read the secret it points
at from AWS, cached by the platform for FC_SECRET_REFERENCE_TTL (5 minutes, so a rotation reaches readers
within that time; the last value is served for up to FC_SECRET_REFERENCE_MAX_STALE, 1 hour, while AWS is
unreachable).
Set it up once per platform:
- Set
FC_SECRET_REFERENCE_ALLOWto the prefixes you accept. Unset means none, and a reference outside the list is refused at write (400 SECRET_REFERENCE_NOT_ALLOWED). - Give the platform’s AWS role
secretsmanager:GetSecretValueandssm:GetParameteron the allowed names, pluskms:Decryptfor a customer-managed key.
gcp-sm://, vault:// and env:// are refused (400 SECRET_REFERENCE_UNSUPPORTED). A reference that does
not resolve is 409 with SECRET_REFERENCE_NOT_FOUND, _DENIED, _KEY_MISSING or _NOT_ALLOWED; if AWS
cannot be reached it is 503 SECRET_REFERENCE_UNAVAILABLE, so try again.
Reveal a secret
Section titled “Reveal a secret”Normal reads show *** for every secret, for every caller. The only way to read a value is Reveal.
- Choose Reveal on the row. A confirmation says the reveal is recorded in the audit log under your name.
- Confirm. The value appears in a dialog with Copy and Close, in that response only. It is not in a URL, the table, or any later page, and the response is not cacheable. Closing the dialog removes it from the page.
Every reveal is audited (who, which property, when, and on whose behalf if an application said so; never the
value), and a reveal that cannot be recorded is refused. Reveal on a plain property answers
400 NOT_A_SECRET; read it with the table. For a reference, the console’s reveal shows the reference and the
API reveal returns the secret it points to.
Do not paste a revealed secret into chat, tickets or logs. If you only need to give it to an application, have the application read it by the reveal API instead; see Platform configuration from code.
Delete a value
Section titled “Delete a value”Delete on a row asks first. Deleting a property that is not there is not an error. Setting and deleting
are both recorded in the audit log (never a secret’s value) and emit
platform:admin:platform-config:property-set and …:property-deleted. Deleting an application deletes its
values, secrets included, and its access grants in the same step.
Acting for a person
Section titled “Acting for a person”An application that changes or reveals its configuration on behalf of one of its own signed-in users can
send X-On-Behalf-Of: <who> (up to 256 printable characters) on set, delete and reveal. The audit row then
names the service account and the person. The platform honours it only from a service account.
Via the API
Section titled “Via the API”The endpoints are under /api/config/{app}/{section}/{property}, with …/secret for reveal (optionally
?clientId=). See the platform configuration API. Every SDK has a
reveal call beside its other configuration calls.