Fix SSH host certificate signing for the sshca role #153

Merged
benvin merged 4 commits from benvin/sshca-sign-path-and-principals into master 2026-09-19 15:48:44 +10:00

4 Commits

Author SHA1 Message Date
unkin-agent 3e8cd32e1f Drop the sshca sign policy moved block
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
2026-09-19 15:44:42 +10:00
unkin-agent 2a3ef51f7d Name the SSH host sign policy after its sshca role
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
The only role on the sshca mount is signhost, so a policy granting the
literal path sshca/sign/host matches no role and every host signing
request is denied after a successful login.

- Rename the policy to sshca/sign/signhost and grant that path
- Move the policy's state to the new name so the rename is tracked
2026-09-19 15:31:13 +10:00
unkin-agent 92149cbebe Restore the SSH host sign policy path
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
2026-09-19 14:58:09 +10:00
unkin-agent 0dd7bc56b8 Point the SSH host sign policy at the role that exists
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
The sshca mount only defines the signhost role, so the policy grant for
sshca/sign/host never matched a real path and every host-key signing
request from the Puppet compilers was denied. The role also excluded
unkin.net, rejecting the git.unkin.net and grafana.unkin.net principals
the manifest sends.

- Grant sshca/sign/signhost instead of sshca/sign/host
- Add unkin.net to the signhost role's allowed_domains
2026-09-19 12:51:47 +10:00