Title: PR #453's Open Design sops file: .sops.yaml has no rule for its sandbox recipient — updatekeys silently drops it, and treefmt fails on the file · Issue #456 · developing-today/code · GitHub
Open Graph Title: PR #453's Open Design sops file: .sops.yaml has no rule for its sandbox recipient — updatekeys silently drops it, and treefmt fails on the file · Issue #456 · developing-today/code
X Title: PR #453's Open Design sops file: .sops.yaml has no rule for its sandbox recipient — updatekeys silently drops it, and treefmt fails on the file · Issue #456 · developing-today/code
Description: Finding PR #453 adds secrets/opendesign.sops.yaml (commit 644b54774f9b6df7ce852100191a9a6f5c1cd450) holding the Open Design API key, SOPS-encrypted to two age recipients: age125acas5y8hnwl5uhcp364xm8zlhtwsjqvxxpge8k04dzzr67acrq0ttc34 (la...
Open Graph Description: Finding PR #453 adds secrets/opendesign.sops.yaml (commit 644b54774f9b6df7ce852100191a9a6f5c1cd450) holding the Open Design API key, SOPS-encrypted to two age recipients: age125acas5y8hnwl5uhcp364x...
X Description: Finding PR #453 adds secrets/opendesign.sops.yaml (commit 644b54774f9b6df7ce852100191a9a6f5c1cd450) holding the Open Design API key, SOPS-encrypted to two age recipients: age125acas5y8hnwl5uhcp364x...
Opengraph URL: https://github.com/developing-today/code/issues/456
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PR #453's Open Design sops file: .sops.yaml has no rule for its sandbox recipient — updatekeys silently drops it, and treefmt fails on the file","articleBody":"## Finding\n\nPR #453 adds `secrets/opendesign.sops.yaml` (commit `644b54774f9b6df7ce852100191a9a6f5c1cd450`) holding the Open Design API key, SOPS-encrypted to **two** age recipients:\n\n- `age125acas5y8hnwl5uhcp364xm8zlhtwsjqvxxpge8k04dzzr67acrq0ttc34` (laptop-framework)\n- `age1nw32awc9ans8vv62h3zglz7sul8jt3vewlshz5vmyu9hexuddgys85h43p` (Muse sandbox)\n\nThe sandbox recipient is the point of the file: per the PR body, the key serves the sandbox's OpenCode server (provider `opendesign`). The ciphertext itself is fine — this run verified the PR-head file decrypts with the sandbox age identity. **No plaintext credential is exposed.**\n\nThe problem: the dual-recipient encryption is not encoded anywhere in the repo's SOPS configuration, and the file does not pass the repo's own format check.\n\n### 1. `.sops.yaml` has no rule covering the sandbox recipient — `updatekeys` silently drops it\n\nThe repo-root `.sops.yaml` on current main (and unchanged on PR #453's head) contains exactly one creation rule with **no `path_regex`**, listing only the laptop-framework key:\n\n```yaml\nkeys:\n - &laptop-framework age125acas5y8hnwl5uhcp364xm8zlhtwsjqvxxpge8k04dzzr67acrq0ttc34\ncreation_rules:\n - age: *laptop-framework\n```\n\nEvery pre-existing SOPS file in the repo (`secrets/sops/common/*.yaml`, `secrets/sops/hosts/laptop-framework/secrets.yaml`, …) accordingly has only that one recipient.\n\nVerified empirically this run (sops 3.13.2, scratch copy outside the repo): running `sops updatekeys --yes` on a copy of PR #453's file with the repo's `.sops.yaml` in place rewrites it to **only** the laptop-framework recipient — the sandbox recipient is removed. So the first routine key rotation / `updatekeys` / re-creation performed from the repo config silently revokes the sandbox's access to the very key this PR exists to give it, with no error anywhere; the failure only surfaces later when the sandbox can no longer decrypt.\n\n(For contrast, `dezren39/nix`'s `.sops.yaml` scopes its rule with `path_regex: secrets/.*\\.yaml$` — this repo's config has no path-scoped rule at all. This finding is specific to this repo's config and this file; no equivalent sandbox-recipient file exists in the other three repos.)\n\n### 2. The PR's own treefmt check fails on the new file\n\nPR #453 checks: `Nix flake evaluation` pass, `run` pass, **`treefmt check` fail** — run 39532849517, job 119002576950:\n\n```\nERRO file has changed path=secrets/opendesign.sops.yaml prev_size=1722 … current_size=1640\nError: unexpected changes detected, --fail-on-change is enabled\n```\n\nThe formatter rewrites the sops-generated YAML, so the file as committed cannot land under the repo's normal checks. Any reformat must be followed by re-verifying the file still decrypts and both recipients survive (formatting after encryption, never a decrypt → reformat → re-encrypt round-trip through the current `.sops.yaml`, which would hit problem 1).\n\n## Why it matters\n\nThe file's only consumer is the sandbox OpenCode server. As written, the PR merges a secret whose access grant exists only in the committed ciphertext, not in the configuration that governs every future edit of that file — a silent, self-inflicted revocation waiting on the next routine SOPS maintenance, plus a red format check on the PR itself.\n\n## Acceptance criteria\n\n- [ ] `.sops.yaml` gains a creation rule that covers `secrets/opendesign.sops.yaml` (path-scoped, e.g. `path_regex`) listing **both** recipients above (via `key_groups` or an `age:` list), without changing the rule that governs the existing `secrets/sops/**` files.\n- [ ] Demonstrated: on a copy of the merged file, `sops updatekeys` leaves both recipients in place, and `sops -d` with the sandbox age identity still succeeds.\n- [ ] The committed `secrets/opendesign.sops.yaml` passes `treefmt check` (the PR #453 check is green), with decryption and both recipients re-verified after any formatting.\n- [ ] PR #453 is merged only with the above in place (in the PR or a companion change), so the dual-recipient grant is reproducible from repo config, not just from the original author's command line.\n\nFound by the pr-diff-review job reviewing PR #453 (open, 1 commit, +25/-0, 1 file).\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-21T03:24:45Z","url":"https://github.com/developing-today/code/issues/456"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:24120987-3075-0de9-d840-6f39b172f7e8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E7F4:B0F20:9BA99D:D0922D:6B063CE6 |
| html-safe-nonce | 90bcb0a465ac5df5dc1a6e550eee868e01a0c7b0ce054bf9491d161a4a906185 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFN0Y0OkIwRjIwOjlCQTk5RDpEMDkyMkQ6NkIwNjNDRTYiLCJ2aXNpdG9yX2lkIjoiOTE3MDIwMTkxNTQ4Mzg5NzA2MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 21dcd5aa054f8b4d0c54f3db8486fc57c25d094314e2be1e6da7d4127455bad4 |
| hovercard-subject-tag | issue:5953738884 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/456/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f0491b643e7fcb1babc541c6f78f9d1fb8f70712823ee0f529c499eb20151a01/developing-today/code/issues/456 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f0491b643e7fcb1babc541c6f78f9d1fb8f70712823ee0f529c499eb20151a01/developing-today/code/issues/456 |
| og:image:alt | Finding PR #453 adds secrets/opendesign.sops.yaml (commit 644b54774f9b6df7ce852100191a9a6f5c1cd450) holding the Open Design API key, SOPS-encrypted to two age recipients: age125acas5y8hnwl5uhcp364x... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | dcf72c457c022486d23c3cbb0dd21aba537a87611ca9ddabd1799cf2eaa9b297 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 0f38f5735226749ec5e08a8649dce4cb2613d9ad |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width