-
Notifications
You must be signed in to change notification settings - Fork 1
git: sign commits if ssh verficiations unlock a secret password #79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from 8 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
86523dc
git: sign commits if ssh verficiations unlock a secret password
theorderingmachine a3e0521
build: separate keys from shared defaults
theorderingmachine fa8ef76
ci: use generic github runner account with corrections to bins
theorderingmachine cfa97bf
fix: use gitconfig format for nixos settings
theorderingmachine 92ad336
docs: recall restart the runner
zimeg 5087333
fix: show self as a signed runner of local commits
zimeg c07c320
docs: instruct account swapping
zimeg 15d4c13
chore: alphabetics
theorderingmachine 2b7fed0
chore: alphabetics
theorderingmachine 9ab0466
feat: show signatures on work machine too
zimeg bd789ff
style: organize ssh accounts without obvious default in secrets
theorderingmachine 86e03a2
style: namespace github accounts for keys as well
theorderingmachine 5b44961
style: prefer matching homemanager implementation for allowed signers
theorderingmachine File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,6 +2,7 @@ | |
| { | ||
| imports = [ | ||
| ./programs/gh | ||
| ./programs/ssh | ||
| ./programs/wd | ||
| ]; | ||
| } | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| # gh | ||
|
|
||
| swapping accounts in certain projects takes commands: | ||
|
|
||
| ```sh | ||
| $ git config user.name "@zimeg" | ||
| $ git config user.email "zim@o526.net" | ||
| $ git config user.signingKey "~/.ssh/accounts/zimeg" | ||
| ``` |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # https://github.com/openssh/openssh-portable | ||
| { | ||
| programs.ssh.matchBlocks = { | ||
| theorderingmachine = { | ||
| hostname = "github.com"; | ||
| identitiesOnly = true; | ||
| identityFile = "~/.ssh/accounts/theorderingmachine"; | ||
| }; | ||
| zimeg = { | ||
| hostname = "github.com"; | ||
| identitiesOnly = true; | ||
| identityFile = "~/.ssh/accounts/zimeg"; | ||
| }; | ||
| }; | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,21 +1,24 @@ | ||
| github: | ||
| runners: | ||
| dotfiles: ENC[AES256_GCM,data:DnuiyzT8zyHIkfd0gds1//PSjv1PSOo/9a/JnFqQLW5QrMxEkQfgi37l2doVP84SDBjJF2vcuYNaoB/MCLUbbDrmh4+xIOLgrB5murLRs6n4n3MrLbefh7lIipeu,iv:LU1quTHniQWWSBtrwsY0dZ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CmWd2UN7TvPW2BYpraibm,iv:KTjokJcK0hcLx0yaWswdPioMJc0+bHYbpcuFm6o99D4=,tag:FtDChakJm1ox8sJ3LJC0ww==,type:str] | ||
| private: ENC[AES256_GCM,data:jP37GYLwElPGRzvo5D8UVR1cs8thDGk59trYg+au50lF7pw3Fyag6Zp7YOC05vf+sRoBMzhPJk7ot21SL3iB9/KP7LsoLdV0SehajiIVmEIXCvHMZ2RG6RMF1N0X5ItUNDPMq5q3oIJpKqc8AsYHyTCUvbFIW/MHa3bNM49hy9rMWuogYVw3qdguTG3BKtDlTu0jaPzZ7vNlnVkoi00iyRanlC/H04Qr15Wyu8K/5l/FNgLP5Os5wXLtCIRZCYV3SiuBCn+uzYOpDSWbOt/bnFBbGggaVYBWhJyanEYP7rmtI3xBgTvjdM2ZG/IOP2EeMkEDuWRlJ9OApvngtjeHyHBwhT2JWEw0LWxTo9HYFiPMABVDqe438ysMLN6HB+U55nJ2W7Npro4oFY69BoPw+NebL2d2OoOCmzF27UlJH/Oi3rvYb4WoHjNdCMk1svVAPMzIkgx2l7bbukPUXUyYvp5fP4hdf8cjfcAdlEY+/xvKU23BUlXqymmM+S9orLzSe9fcA02umc/QJiF6fgOT,iv:+lyyTfwd5xfvBmaBYvAHLUNPBUy6poPgWHqFTPxstU8=,tag:mFZhOBZrtsbakWDBKHjdiw==,type:str] | ||
| public: ENC[AES256_GCM,data:n7DxJLpXqvuEJvNbowj/YvmkOeeDHx2LZe+ibg4hfHfCr6Gf/MXm5m3VgEAVQGOUiJm9cteXeP8GiW9vOTo6DpF9luu9lOWMdQoGutJ5PHsL/U3zBTN9FLFope9A,iv:9P9Tn5tSQS/4tC8g4npD2cADW2wt+ftfHVPLtjXq8e8=,tag:l+WOCb/ijffslXtqekBCqQ==,type:str] | ||
| zimeg: | ||
| private: ENC[AES256_GCM,data:3MiyRQMQW6NHnl3BbxcXGGVrhMvkKyZvqB67RZtjmqWH5P/P78h23ok02JEsOKZPZEgsPWhYFfXAFlyAxB2HzjfwQtGQp6l5xSdi9QyCZhxMyWAimE7mu/yRqTTY9hrRndD8a1BfdlT7k7V+OOYMg9cJ68/aU5fIhH4+O0x1SpziLOliaSubXIu/5f/lg33E1mdbrVen/zyhThxKOGTyVHI9ieljp9IQG4oDktf/mzonZtSaBUpxriffm4KZ53P9yOyHvRqjQOhAoMQjUN9Kd0LJdwMTzYbMMukMmqqowAwOih0wAGl5Mql533JIUfc2zcFRf5O4dK9ux/UU02v9gktGD3DN0rkbGp08ZRsgd0QxUe9pguL5VKFbV5SrjOv1ZNgxttf+BvA2aggDiYOfTfkHHfgnDQDvtn2YEhXbrulsY4dvNg/MEplV6gIECItIaCtp+Ns0MJL7znoAZTg0O6HNN0xnH8J473OQGMsMgNFaPvQd5e/LSAwmWioLHWHO7DAQQHTYjXolltrk7Dgj,iv:O9CM2/4JRDEP5rbL90iTb2xUSkJtl1JaBoXJTCPFN08=,tag:r+Wu4nIW5113sShO5ntwfg==,type:str] | ||
| public: ENC[AES256_GCM,data:VgiB5Zw3uUady+V2Qm2UESLJYyIeiDsYdqNLmnKP0NU0CjFsZtR5eO8ps5C3BOXG/5QwDonuFgrTWVTxDZgymAzNySxKrUwCKgN+8s6JHnJzFQjFDKJclYIAAkgS,iv:wGSgGs50ZtByocZPLeL1nPFM83oFE5sD2Ockrr/WVdw=,tag:5i0hpvW0yZkqMtIpTJij+w==,type:str] | ||
| sops: | ||
| age: | ||
| - recipient: age1ym7363kc42kwm3zr5uqnwsvrqjthypj6k4dxs42cckh6cjl90qyskr05tp | ||
| enc: | | ||
| -----BEGIN AGE ENCRYPTED FILE----- | ||
| YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSByUENBOUF2STJHMVpLT2E5 | ||
| V3U0bkRpZ25Ya0lheGwrYmVONmhPdkcvMkJZCnVoSENuOTJzYnNhdVZ4Q0ZOQzAz | ||
| SGdDczVyZW9PTEhodmR5UUZqanAvUDQKLS0tIE1oejVqRGtFSndjeklqQ1JBSTNj | ||
| OEc2RUFIT2hGYVhTSjh4TnB6VTZXZ0EK3vBA/+YIBeFf1ZQ8X8AMS3lcPmqQnnQU | ||
| qy2hAzJwMO7j5uUaPpfsFaAOCyPpviTT4xUNc876ZVxQUgJCgYVB+w== | ||
| YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBzeFM4bUoybnYydVVCM0xN | ||
| YnZTTFN5M0M2SzAvWExaWHVKVUNzVy9qUG00CmtTTVRta09HNUV3bTNrTWVCczlK | ||
| dXpDN1hlaldaaWJsa3ovWkI3TGlkV2cKLS0tIGRxaGpuMmRWR1JiU3htNkVKQ2lQ | ||
| dlRqRHQ5TVBzT2l1SVVWSkRiZytkQm8KDq9QcFcx4CMZACFSW5yP1zAPAamnmK8U | ||
| NcZ5cJbqFIcMWFDfd+nV9aMoa1n1aLAfybZ/WkMKbQCfEzpM231snA== | ||
| -----END AGE ENCRYPTED FILE----- | ||
| lastmodified: "2026-01-09T05:31:31Z" | ||
| mac: ENC[AES256_GCM,data:+ztP5fbVTHMthENjil/u2WWs8yuEEW+6O7a//hOohldmRMdKp/DBQ8WOre/RIUGFK7s3EmZ9BuZj1DlpYyCIbACsibh7jsXTZ4PTIZs05yBqyuyhq4+RgnKgiprVDA5CWpnVELnHdgfCBMWSDcTB/rLWZdlCW0WBY5qtHXA1p8E=,iv:eOJTdNp1mfz40zved/GNItxnU0uWVD330kBK8vrGvzk=,tag:fwJ4mu3nFGT7qBRAPYT1nQ==,type:str] | ||
| lastmodified: "2026-03-29T02:57:50Z" | ||
| mac: ENC[AES256_GCM,data:vh7/Oq4Q547txi/UqQcHsJHoWOmE0VmHlbFppr2uKh53cPIPNhQJBxDYWLpb4dykcTlUT3iQQgw4R4WrriFwv/gNd+hQsAox28G3N9PIkTGlBLeH8tXWdvj+oWgW58BD16TMDwt0RtNRAUMBtHf/ofxwGj7PeYHU0Nc6GrjaPy8=,iv:Gwj2N9ZRpUT9JlBaLZ//7pHaUM3JU/moBVBXuihsXW8=,tag:hQjACt11tKOR+XlPSn/61g==,type:str] | ||
| unencrypted_suffix: _unencrypted | ||
| version: 3.11.0 | ||
| version: 3.12.2 |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| # github runners | ||
|
|
||
| some runs tim requires a restart: | ||
|
|
||
| ```sh | ||
| $ sudo launchctl kickstart -k system/org.nixos.github-runner-dotfiles | ||
| ``` |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,22 +5,23 @@ | |
| dotfiles = { | ||
| enable = true; | ||
| ephemeral = true; | ||
| extraEnvironment = { | ||
| DOTNET_SYSTEM_GLOBALIZATION_INVARIANT = "1"; | ||
| GIT_SSH_COMMAND = "ssh -i /run/secrets/github/theorderingmachine -o StrictHostKeyChecking=accept-new"; | ||
| }; | ||
| extraLabels = [ | ||
| "tim" | ||
| ]; | ||
| extraEnvironment = { | ||
| GIT_SSH_COMMAND = "ssh -i /run/secrets/github/ssh -o StrictHostKeyChecking=accept-new"; | ||
| }; | ||
| extraPackages = [ | ||
| pkgs.openssh # https://github.com/openssh/openssh-portable | ||
| pkgs.fastfetch # https://github.com/fastfetch-cli/fastfetch | ||
| ]; | ||
| group = "dotfiles"; | ||
| group = "_github-runner"; | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👾 note: We revert 4a97d67 to find expected logs- |
||
| name = "tim"; | ||
| replace = true; | ||
| tokenFile = "/run/secrets/github/runners/dotfiles"; | ||
| url = "https://github.com/zimeg/.DOTFILES"; | ||
| user = "dotfiles"; | ||
| user = "_github-runner"; | ||
| }; | ||
| }; | ||
| } | ||
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔭 note: This fixed an odd issue stopping authentication