[release-4.19] [pkg] Add TOFU host key validation - #4563
Conversation
Implements SSH host key validation using Trust On First Use (TOFU) pinning to Windows nodes. Storage strategy: - Node annotation (preferred): When Node object exists - ConfigMap fallback: By address when Node doesn't exist (BYOH bootstrap) - Automatic migration: ConfigMap → Node annotation with cleanup SSH host key validation tests Test 1 & 2: testSSHHostKeyAnnotations - Verifies ssh-host-key and ssh-host-key-type annotations exist on all nodes - Validates annotation contains valid base64-encoded SSH public key - Re-fetches node to verify key stability (not regenerated on reconcile) Test 3: testSSHHostKeysConfigMapCleanup - Verifies windows-ssh-host-keys ConfigMap has no stale entries - Confirms keys migrate from ConfigMap to Node annotations with cleanup Test 4: testReAddInstance (extended) - Captures host key before BYOH instance removal - Verifies same key persists after re-add (validates TOFU property)
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
Skipping CI for Draft Pull Request. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jrvaldes, wgahnagl The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/lgtm |
|
Scheduling tests matching the |
|
/override ci/prow/vsphere-disconnected-e2e-operator |
|
@mansikulkarni96: Overrode contexts on behalf of mansikulkarni96: ci/prow/vsphere-disconnected-e2e-operator DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/override ci/prow/azure-e2e-upgrade |
|
@mansikulkarni96: Overrode contexts on behalf of mansikulkarni96: ci/prow/azure-e2e-upgrade DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/retest-required |
1 similar comment
|
/retest-required |
|
@wgahnagl: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Implements SSH host key validation using Trust On First Use (TOFU) pinning to Windows nodes.
Storage strategy:
SSH host key validation tests
Test 1 & 2: testSSHHostKeyAnnotations
Test 3: testSSHHostKeysConfigMapCleanup
Test 4: testReAddInstance (extended)
Backport of #4212