Skip to content

fix(security): Keep host-only SSH keys off GitHub - #6473

Merged
dan-petty merged 4 commits into
mainfrom
fix/6339-ssh-rotate-puts-a-host-only
Nov 19, 2026
Merged

dan-petty merged 4 commits into
mainfrom
fix/6339-ssh-rotate-puts-a-host-only

Conversation

@devops-cli-service

@devops-cli-service devops-cli-service Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

devops ssh rotate gives each rotated key GitHub access and makes it the git signing key. The ansible prefix is only for the nodes: devops infra hands that key to Ansible, and the homelab role puts it on each host. After a rotation the key that every node holds is a GitHub credential with the access of the account, and a commit in a repository with no local signing key is signed with the node key. Each rotation also adds one authentication key and one signing key to the account. #6339 stops that: only the project prefix registers and signs, and every other prefix reaches hosts only.

Closes #6339

Change: openspec/changes/archive/2026-11-19-6339-ssh-rotate-puts-a-host-only/

@devops-cli-service devops-cli-service Bot added scope/security Security linters (trivy, bandit, gitleaks, kubeconform) and Vault type/bug Type bug: the code does not do what it must labels Nov 19, 2026
@devops-cli-service
devops-cli-service Bot force-pushed the fix/6339-ssh-rotate-puts-a-host-only branch from c0084a9 to 3819ebe Compare November 19, 2026 22:43
@devops-cli-service
devops-cli-service Bot force-pushed the fix/6339-ssh-rotate-puts-a-host-only branch from 3819ebe to 2dd32fb Compare November 19, 2026 22:47
@devops-cli-service

Copy link
Copy Markdown
Contributor Author

The steps of the job:

Step Status Attempts Tokens in/out Last failing command
group 1 done 2 1579356/10057 pytest on base: tests/github/test_github_ssh.py
group 2 done 1 5103258/20395 pytest on base: tests/crypto/test_ssh.py
group 3 done 1 688523/4791 -
  • tools: run_command 58, read_file 27, edit_file 20, grep 13, write_file 2, create_directory 1, list_files 1
  • scoped check pre-push: passed, 9 s
  • scoped check static: passed, 29 s
  • scoped check tests: passed, 41 s
  • scoped check strength: passed, 0 s
  • group 3: skipped, group 3: kind other
  • fail-to-pass of group 1: fails on the base commit. Tests that fail on the base commit: tests.github.test_github_ssh::test_only_the_project_prefix_registers_on_github[host-only-prefix], tests.github.test_github_ssh::test_only_the_project_prefix_registers_on_github[hyphen-and-underscore-are-one], tests.github.test_github_ssh::test_only_the_project_prefix_registers_on_github[no-prefix].
  • fail-to-pass of group 2: fails on the base commit. Tests that fail on the base commit: tests.crypto.test_ssh::test_rotate_of_a_host_only_prefix_sends_no_request_and_runs_no_git_command, tests.crypto.test_ssh::test_ssh_rotate_dry_run_of_a_host_only_prefix_lists_no_github_request, tests.crypto.test_ssh::test_ssh_rotate_help_names_the_github_prefix.
  • verify of group 3: uv run devops ci docs exits 0.
\u2139 Quality gate root: /home/devops/.data/agent/worktrees/w-6339
\u2713 All documentation files are up to date.
Bytecode compiled 23345 files in 598ms
Bytecode compiled 23345 files in 613ms

@devops-cli-service
devops-cli-service Bot marked this pull request as ready for review November 19, 2026 23:01
@dan-petty
dan-petty merged commit 65771a4 into main Nov 19, 2026
25 checks passed
@dan-petty
dan-petty deleted the fix/6339-ssh-rotate-puts-a-host-only branch November 19, 2026 23:27
dan-petty-release Bot added a commit that referenced this pull request Nov 19, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.182.0](v0.181.1...v0.182.0)
(2026-11-19)


### Features

* **roadmap:** Post delivery PR evidence before ready
([#6426](#6426))
([a3891c0](a3891c0))


### Bug Fixes

* **ci:** fail-to-pass needs no proof for a deleted gate check
([#6465](#6465))
([52e50f7](52e50f7))
* **deps:** ignore GHSA-qx49-fqc8-xw99 of mcp 1.29.0 until 2026-11-22
([#6482](#6482))
([99434a9](99434a9)),
closes [#6481](#6481)
* **monitoring:** exclude caller labels at the gateway source
([#6459](#6459))
([bc57c1e](bc57c1e))
* **security:** Keep host-only SSH keys off GitHub
([#6473](#6473))
([65771a4](65771a4))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/security Security linters (trivy, bandit, gitleaks, kubeconform) and Vault type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(security): ssh rotate puts a host-only key on GitHub

1 participant