Enhancement: Fail CI key removal when the key is not found #96

Merged
claude-bot Bot merged 1 commits from enhancement/stricter-ci-key-check into main 2026-12-06 02:54:05 +01:00

What changes

revoke-ci-key-* now checks that the CI key is in authorized_keys before removing it. If it is missing or in a different form, the step fails.

Why

The final check only verified that the key was absent afterwards. That also passes when the key was never matched, for example a hand-added key with a comment, so the step could report success without removing anything.

Expected effect on deploy

None on the live cluster. Merging does not deploy (02 is manual dispatch), and the ignoreChanges transform ignores changes to create. Local pulumi preview: 37 unchanged. The stricter script applies to fresh installs, or to a node re-run with --target-replace.

## What changes `revoke-ci-key-*` now checks that the CI key is in `authorized_keys` before removing it. If it is missing or in a different form, the step fails. ## Why The final check only verified that the key was absent afterwards. That also passes when the key was never matched, for example a hand-added key with a comment, so the step could report success without removing anything. ## Expected effect on deploy None on the live cluster. Merging does not deploy (`02` is manual dispatch), and the `ignoreChanges` transform ignores changes to `create`. Local `pulumi preview`: 37 unchanged. The stricter script applies to fresh installs, or to a node re-run with `--target-replace`.
claude-bot Bot added 1 commit 2026-12-06 02:52:18 +01:00
enhancement(k8s-bootstrap): fail CI key removal when the key is not found
Deploy k8s Bootstrap / Bootstrap k3s Cluster (pull_request) Skipped
Deploy k8s Bootstrap / Pulumi Preview (pull_request) Successful in 33s
Secret Scan / Betterleaks (pull_request) Successful in 5s
3b37e3451b
The final check only verified that the key was absent afterwards, which
also passes when the key was never matched, e.g. a hand-added key with a
comment. Requiring the key beforehand makes that case fail visibly.
claude-bot Bot merged commit 9023308da7 into main 2026-12-06 02:54:05 +01:00
Sign in to join this conversation.