feat(relay-control): mount Desktop feed file-signer keys from an existing Secret

Merged
KH
19d ago
+156-9

relay-control 0.5.24 (PR138) can sign the Desktop feed with an Ed25519 key file, but the chart had no way to mount one. This adds desktopFeed.signingKeys:

relay-control:
  desktopFeed:
    signingKeys:
      existingSecret: desktop-feed-keys   # keys: <profile>.pem
      profiles: [example-profile]
  • Mounts the keys read-only at /var/run/desktop-feed/<profile>.pem (mode 0440, fsGroup 1000, which the file signer accepts), and sets SELFHOST_DESKTOP_FEED_SIGNER=file and SELFHOST_DESKTOP_FEED_KEY_FILES.
  • Fails the render if a Secret is set with no profiles, or a profile id is malformed.
  • Storage and the key label stay in extraEnv (S3 today; GCS storage is coming in relay-control).
  • Off by default. relay-control chart 0.4.18, carried by agent-relay 0.7.18 (rebased past #354). New CI values file ci/desktop-feed-values.yaml. The requirements registry and the subdomain golden render pass.

First user: the GCP POC's signed Desktop feed.

🤖 Generated with Claude Code


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.


Summary by cubic

Bumps relay-control to 0.4.18 so the Desktop feed can be signed with Ed25519 keys mounted from an existing Secret, enabling the file signer introduced in relay-control 0.5.24.

  • Adds desktopFeed.signingKeys values: an existingSecret name and a profiles list. Each profile's <profile>.pem key is mounted read-only at /var/run/desktop-feed/<profile>.pem (mode 0440, fsGroup 1000), and the chart sets SELFHOST_DESKTOP_FEED_SIGNER=file plus SELFHOST_DESKTOP_FEED_KEY_FILES.
  • Fails rendering if existingSecret is set with no profiles, or a profile id is malformed. Profile ids must match ^[a-z0-9]{1,32}$.
  • The two feed env vars are rejected in extraEnv only when signingKeys is on, so existing AWS installs keep setting SELFHOST_DESKTOP_FEED_SIGNER=awskms.
  • Off by default; default renders are unchanged. Feed storage and key label are still configured through extraEnv.
  • Registers the new option in self-hosted/requirements.yaml and adds a CI values file with a golden render.