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`.
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.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
What changes
revoke-ci-key-*now checks that the CI key is inauthorized_keysbefore 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 (
02is manual dispatch), and theignoreChangestransform ignores changes tocreate. Localpulumi preview: 37 unchanged. The stricter script applies to fresh installs, or to a node re-run with--target-replace.