Repository navigation
Rotate gclpr keypair and clean up plan doc placeholder - #1057
Merged
Merged
Conversation
- 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
enabled auto-merge (squash)
December 1, 2026 18:08
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
assets/gclpr/key.pub,users/dev/home.darwin.nix,secrets/cloudbox.yaml).docs/plans/2026-04-04-gclpr-clipboard-bridge-plan.mdwith a placeholder and removes.gitleaksignore.Verification
secrets/cloudbox.yamlgclpr_private_keypublic half matchesassets/gclpr/key.pubandusers/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.gitleaksignoreremoved.nix evalfordarwinConfigurations."Y0FMQX93RR-2".system,nixosConfigurations.cloudbox,homeConfigurations.cloudbox, andnixosConfigurations.devbox: pass.