Repository navigation
[NO-JIRA] Give devbox its own gclpr keypair - #1060
Merged
Merged
Conversation
devbox now has a dedicated gclpr clipboard-bridge keypair instead of sharing one with cloudbox: - assets/gclpr/devbox.pub: devbox's public key, deployed as ~/.gclpr/key.pub on devbox (other NixOS hosts keep key.pub). - secrets/devbox.yaml: gclpr_private_key replaced with the matching private key (base64, same encoding as before). - home.darwin.nix: the Mac's ~/.gclpr/trusted lists both the cloudbox and devbox public keys, one per line with comments. - clipboard skill: documents the per-host keypair layout.
johnnymo87
enabled auto-merge (squash)
December 1, 2026 18:38
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.
Description
assets/gclpr/devbox.pubis deployed as~/.gclpr/key.pubon devbox; other NixOS hosts keepassets/gclpr/key.pub.secrets/devbox.yaml:gclpr_private_keyholds the matching private key (base64, same encoding as before).~/.gclpr/trusted(users/dev/home.darwin.nix) lists both hosts' public keys, one per line with#comments (gclpr reads multiple keys and skips comments).Apply order: on devbox
nixos-rebuild switch(refreshes/run/secrets), then the home-manager switch (copies it into~/.gclpr/key); on the Machome-switch.Verified: the private key in
secrets/devbox.yamlmatchesdevbox.pub, every other devbox secret decrypts unchanged,check-sops-encryptedpasses, gitleaks finds nothing, andnix evalshows the rightkey.pubfor each host and the Mac's trusted text.