Commit 960b4e9
Plan 00054: make GitHub SSH verification + git wrappers port-agnostic for 443
Two more port-22 hardwires that only surfaced at runtime on a port-22-blocked
network (the deploy chicken-and-egg the user hit):
1. 'Verify SSH access' probe targeted only the configured endpoint, so on a
restricted network it tried github.com:22, got 'Connection refused', and the
play died before 443 could help. Now it falls back to ssh.github.com:443
(same host keys/identity) when the primary endpoint does not authenticate —
the same auto-fallback ccy uses. Task timeout 30 -> 45 for the second attempt.
2. Deployed per-account git wrappers (git()/git-<alias>()/clone-<alias>) forced
'ssh -F /dev/null -o HostName=github.com', isolating the key but also
bypassing the ~/.ssh/config 443 override — so wrapper-driven git push stayed
on port 22 even with 443 enabled. New shared _gh443_sshcmd helper builds the
sshCommand from the GITHUB_SSH_443 runtime signal (ssh.github.com:443 when set,
else github.com:22; unset = byte-identical to the old string). Key-isolation
model untouched. Wrapper users need GITHUB_SSH_443 in-shell (automatic with
always-on profile.d, or eval "$(github-ssh-443 env)").
Other play tasks (audit, override apply, key fetch) already use the GitHub HTTPS
API/meta endpoint, so they work on a port-22-blocked network.
Docs + plan notes updated. QA green; --syntax-check clean.
Refs: CLAUDE/Plan/00054-github-ssh-443-host-level
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 3d21355 commit 960b4e9
3 files changed
Lines changed: 69 additions & 8 deletions
File tree
- CLAUDE/Plan/00054-github-ssh-443-host-level
- docs
- playbooks/imports
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
263 | 272 | | |
264 | 273 | | |
265 | 274 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
539 | 539 | | |
540 | 540 | | |
541 | 541 | | |
542 | | - | |
543 | | - | |
544 | | - | |
545 | | - | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
546 | 559 | | |
547 | 560 | | |
548 | | - | |
| 561 | + | |
549 | 562 | | |
550 | 563 | | |
551 | 564 | | |
| |||
656 | 669 | | |
657 | 670 | | |
658 | 671 | | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
659 | 690 | | |
660 | 691 | | |
661 | 692 | | |
| |||
792 | 823 | | |
793 | 824 | | |
794 | 825 | | |
795 | | - | |
| 826 | + | |
796 | 827 | | |
797 | 828 | | |
798 | 829 | | |
| |||
1034 | 1065 | | |
1035 | 1066 | | |
1036 | 1067 | | |
1037 | | - | |
| 1068 | + | |
1038 | 1069 | | |
1039 | 1070 | | |
1040 | 1071 | | |
| |||
1051 | 1082 | | |
1052 | 1083 | | |
1053 | 1084 | | |
1054 | | - | |
| 1085 | + | |
1055 | 1086 | | |
1056 | 1087 | | |
1057 | 1088 | | |
| |||
0 commit comments