Repository navigation
[NO-JIRA] Restart gclpr-server on home-switch when trusted keys change - #1076
Merged
Merged
Conversation
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
gclpr serveron macOS reads~/.gclpr/trustedonly at startup and rejects unrecognized client keys by closing the connection (*** ERROR: unexpected EOF), so rotating/splitting host keys (PRs Rotate gclpr keypair and clean up plan doc placeholder #1057, [NO-JIRA] Give devbox its own gclpr keypair #1060) left clipboard copy/paste broken afterhome-switchbecause thegclpr-serverlaunchd plist had not changed.users/dev/home.darwin.nix(gclprTrusted) and hashed it intolaunchd.agents.gclpr-server.config.EnvironmentVariables.GCLPR_TRUSTED_SHA256. When~/.gclpr/trustedchanges,linkGenerationupdates the symlink first andsetupLaunchAgentssees the plist diff and runsbootout/bootstrapautomatically; unrelated switches leave the plist unchanged and do not restartgclpr-server..agents/skills/clipboard/SKILL.mdto document the automatic restart onhome-switch, the*** ERROR: unexpected EOFstale-server symptom, andod -An -tx1in place ofxxd(not installed on NixOS hosts).Verification
homeConfigurations."Y0FMQX93RR-2".activationPackageand verified the generatedorg.nix-community.home.gclpr-server.plistdiffers only byGCLPR_TRUSTED_SHA256matchingshasum -a 256 ~/.gclpr/trusted, and.gclpr/trustedcontent is byte-for-byte unchanged.gclpr serverstarts cleanly and loads both trusted keys withGCLPR_TRUSTED_SHA256set.bash users/dev/test-pipefail-inversion.shandbash users/dev/test-frontdoor-opacity.sh: pass.References