Deployment secret provisioning pipeline

The five ciphertext/plaintext stages a Class B secret (e.g. the Station↔Broker bridge secret) crosses; the host root is an explicit trust boundary.

Deployment secret provisioning pipeline The five ciphertext/plaintext stages a Class B secret (e.g. the Station↔Broker bridge secret) crosses; the host root is an explicit trust boundary. Authority · OAuth Broker (Vercel) config · Architecture component · Value source Authority OAuth Broker (Vercel) config Value source Operator machine · git-crypt unlock · stdin entry · Architecture component · Decrypt point 1 Operator machine git-crypt unlock · stdin entry Decrypt point 1 env repo runtime.env · git-crypt ciphertext at rest · Architecture component · At rest = encrypted env repo runtime.env git-crypt ciphertext at rest At rest = encrypted SSH tunnel · StrictHostKey · never via argv · Architecture component · Encrypted transport SSH tunnel StrictHostKey · never via argv Encrypted transport Host runtime.env · 0600 · atomic mv · project namespace · Trusted host boundary: 0600 blocks non-root and other projects, but not host root · On disk = plaintext Host runtime.env 0600 · atomic mv · project namespace On disk = plaintext compose --env-file · Injects process · not in image/logs · Trusted host boundary: 0600 blocks non-root and other projects, but not host root · Into container compose --env-file Injects process · not in image/logs Into container Station process · Reads environ · HMAC verify · Trusted host boundary: 0600 blocks non-root and other projects, but not host root · Decrypt point 2 Station process Reads environ · HMAC verify Decrypt point 2 Host root / docker socket · Can read plaintext env & container environ · Trusted host boundary: 0600 blocks non-root and other projects, but not host root · Trust boundary (not defended) Host root / docker socket Can read plaintext env & container environ Trust boundary (not defended) same value unlock(local) stdin tunnel read env root can read (residual) Trusted host boundary: 0600 blocks non-root and other projects, but not host root Legend Frontend Backend Database Cloud Security Message bus External