Skip to content

Platform configuration contract

Documentation home

Every customer-supplied platform setting, its syntax, default, and lifecycle class. Deployment parameters are the single source of truth; there is no runtime settings store. Fixed-at-setup settings cannot change on an existing installation — changing them means a new deployment. Updateable settings change by redeploying with new values.

Settings

Setting Parameter Syntax Default Lifecycle
Organisation identifier Organization 2–43 chars: ^[a-z0-9]([a-z0-9-]{0,41}[a-z0-9])$ none (required) Fixed at setup
Domain environments Environments 1–10 entries, comma-delimited without spaces, each ^[a-z0-9][a-z0-9-]{0,31}$, unique dev,staging,prod Fixed at setup
Resource namespace pattern NamespacePattern {org}, {env}, {domain} each required; literal chars lowercase/digit/hyphen only; ≤ 128 chars {org}-{env}-{domain} Fixed at setup
AWS Organization ARN AwsOrganizationArn ^arn:aws[a-z-]*:organizations::\d{12}:organization/o-[a-z0-9]{10,32}$ none (required for RAM sharing) Fixed at setup
Notification sender NotificationSenderEmail Email address; set both or neither with the operator recipient; SES-verified before enabling empty (notifications disabled) Updateable
Platform operator recipient PlatformOperatorEmail Email address; paired with the sender; SES-verified before enabling empty (notifications disabled) Updateable
Access-token validity AccessTokenValidityMinutes Integer 5–1440 60 Updateable
OAuth callback URLs OAuthCallbackUrls Comma-delimited URLs; HTTPS except http://localhost[:port] http://localhost:3000/callback Updateable
OAuth logout URLs OAuthLogoutUrls Comma-delimited URLs; HTTPS except http://localhost[:port] http://localhost:3000/logout Updateable
System-event emission SystemEventEmissionEnabled Boolean false Updateable

Why these bounds

  • Organisation identifier (≤ 43 chars). The identifier prefixes every resource name. The tightest limit is the 64-character IAM role-name maximum for the trust role <org>-konductor-trust-role deployed into each domain account, leaving 43 characters for the identifier.
  • Environment entries. The per-entry rule matches what domain registration enforces at runtime (^[a-z0-9][a-z0-9-]{0,31}$). The entry count is bounded by the API Gateway stages-per-API quota (10 by default; adjustable), because each environment is served as an API stage.
  • Namespace pattern charset. Literal characters are restricted to lowercase, digits, and hyphens so every substituted name stays valid for the strictest services in use (SQS queue names allow only [A-Za-z0-9_-]). Placeholder presence is checked by preflight validation; the template enforces the charset.
  • System-event emission. The rollout gate for system events: deploy with false, stand up the system-events infrastructure, then flip to true. While false, re-pin lifecycles behave exactly as before and write no upgrade snapshots.
  • Fixed versus updateable. The fixed four are baked into resource names, trust-role names in every domain account, RAM share scope, API stage names, and Lambda environment. Changing them on a live installation would rename, replace, or orphan resources, so deployment tooling refuses the change instead. Adding or removing environments on a live platform is a provisioning-shaped migration deferred to a future change.

Stage rendering

The core stack serves one API stage per environment, generated from the environments list at deploy time. make build and make deploy-core run validate-config.py --render-stages. When the authoring environment (the first entry) is not the default dev, the script rewrites the two marked StageName lines in konductor-core-stack.yaml. It always regenerates the marked rendered-stages block, with one additional stage resource per remaining environment. The template is committed with the default list rendered, so default installations see no diff; a custom list leaves a working-tree change to commit alongside the configuration change. validate-config.py --check-stages (run in CI) fails when the committed template drifts from the rendered output. The block renders inline rather than through Fn::Transform/AWS::Include — a Resources-level include failed changeset creation in the full template.