Persist platform superusers across canonical cloud provision
- Dominant language
- TypeScript
- Stars
- 0
- Forks
- 0
- Avg merge
- 1h 7m
- Merged PRs (30d)
- 969
Description
## Problem
The canonical cloud provision renderer does not project `PLATFORM_SUPERUSER_EMAILS` into `api.env`. A production hotfix can grant platform-superuser access temporarily, but the next canonical provision regenerates `api.env` without it and silently removes the role.
## Expected behavior
- Deployment configuration has one validated, bounded, case-insensitively unique list of platform-superuser emails.
- Canonical provision writes that list to API runtime environment as `PLATFORM_SUPERUSER_EMAILS`.
- Existing deployments that omit the optional list remain valid and fail closed.
- Tests prove projection and duplicate rejection without printing unrelated secrets.
Production incident evidence: CN preflight found the key absent from the canonical configuration source while the current hotfixed `api.env` contained it.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at the canonical cloud provision renderer and the deployment configuration validation path, then trace how api.env is generated. Add coverage for projecting PLATFORM_SUPERUSER_EMAILS, optional omission, bounded case-insensitive duplicate rejection, and secret-safe output; run the relevant provision and configuration tests to confirm the expected environment and validation behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cloud, devops, infrastructure
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100