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
This commit is contained in:
2026-09-19 15:31:13 +10:00
parent 92149cbebe
commit 2a3ef51f7d
2 changed files with 7 additions and 1 deletions
@@ -338,6 +338,12 @@ moved {
to = module.vault_policy["sshca/sign/host"].vault_policy.this
}
# The SSH host signing policy is named after the sshca role it grants (signhost)
moved {
from = module.vault_policy["sshca/sign/host"].vault_policy.this
to = module.vault_policy["sshca/sign/signhost"].vault_policy.this
}
moved {
from = vault_policy.policies["sys/sys_audit_read"]
to = module.vault_policy["sys/audit/read"].vault_policy.this
@@ -1,7 +1,7 @@
# Allow signing SSH host certificates
---
rules:
- path: "sshca/sign/host"
- path: "sshca/sign/signhost"
capabilities:
- create
- update