Skip to content

Rotate gclpr keypair and clean up plan doc placeholder - #1057

Merged
johnnymo87 merged 1 commit into
mainfrom
rotate-gclpr-key
Dec 1, 2026
Merged

johnnymo87 merged 1 commit into
mainfrom
rotate-gclpr-key

Conversation

@johnnymo87

Copy link
Copy Markdown
Owner

Summary

  • Rotates the gclpr clipboard bridge keypair (assets/gclpr/key.pub, users/dev/home.darwin.nix, secrets/cloudbox.yaml).
  • Replaces the example key in docs/plans/2026-04-04-gclpr-clipboard-bridge-plan.md with a placeholder and removes .gitleaksignore.

Verification

  • Verified secrets/cloudbox.yaml gclpr_private_key public half matches assets/gclpr/key.pub and users/dev/home.darwin.nix .gclpr/trusted.
  • python3 scripts/check-sops-encrypted.py & bash scripts/test-check-sops-encrypted.sh: pass.
  • gitleaks detect --source . --no-git --redact --no-banner: 0 findings with .gitleaksignore removed.
  • nix eval for darwinConfigurations."Y0FMQX93RR-2".system, nixosConfigurations.cloudbox, homeConfigurations.cloudbox, and nixosConfigurations.devbox: pass.

- Generate a fresh gclpr NaCl keypair and update assets/gclpr/key.pub,
  users/dev/home.darwin.nix (.gclpr/trusted), and secrets/cloudbox.yaml.
- Replace the example key string in docs/plans/2026-04-04-gclpr-clipboard-bridge-plan.md
  with a placeholder and remove .gitleaksignore.
@johnnymo87
johnnymo87 enabled auto-merge (squash) December 1, 2026 18:08
@johnnymo87
johnnymo87 merged commit e55e091 into main Dec 1, 2026
2 checks passed
@johnnymo87
johnnymo87 deleted the rotate-gclpr-key branch December 1, 2026 18:25
johnnymo87 added a commit that referenced this pull request Dec 2, 2026
#1076)

#### Description

- `gclpr server` on macOS reads `~/.gclpr/trusted` only at startup and
rejects unrecognized client keys by closing the connection (`*** ERROR:
unexpected EOF`), so rotating/splitting host keys (PRs #1057, #1060)
left clipboard copy/paste broken after `home-switch` because the
`gclpr-server` launchd plist had not changed.
- Bound the trusted-keys text once in `users/dev/home.darwin.nix`
(`gclprTrusted`) and hashed it into
`launchd.agents.gclpr-server.config.EnvironmentVariables.GCLPR_TRUSTED_SHA256`.
When `~/.gclpr/trusted` changes, `linkGeneration` updates the symlink
first and `setupLaunchAgents` sees the plist diff and runs
`bootout`/`bootstrap` automatically; unrelated switches leave the plist
unchanged and do not restart `gclpr-server`.
- Updated `.agents/skills/clipboard/SKILL.md` to document the automatic
restart on `home-switch`, the `*** ERROR: unexpected EOF` stale-server
symptom, and `od -An -tx1` in place of `xxd` (not installed on NixOS
hosts).

#### Verification

- Built `homeConfigurations."Y0FMQX93RR-2".activationPackage` and
verified the generated `org.nix-community.home.gclpr-server.plist`
differs only by `GCLPR_TRUSTED_SHA256` matching `shasum -a 256
~/.gclpr/trusted`, and `.gclpr/trusted` content is byte-for-byte
unchanged.
- Verified `gclpr server` starts cleanly and loads both trusted keys
with `GCLPR_TRUSTED_SHA256` set.
- `bash users/dev/test-pipefail-inversion.sh` and `bash
users/dev/test-frontdoor-opacity.sh`: pass.

#### References

- Follow-up to #1057 and #1060
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant