Skip to content

[release-4.16] OCPBUGS-99075: fix(backport): konnectivity agent auth - #9097

Merged
celebdor merged 1 commit into
openshift:release-4.16from
clebs:konnectivity-4.16
Jul 24, 2026
Merged

[release-4.16] OCPBUGS-99075: fix(backport): konnectivity agent auth#9097
celebdor merged 1 commit into
openshift:release-4.16from
clebs:konnectivity-4.16

Conversation

@clebs

@clebs clebs commented Jul 24, 2026

Copy link
Copy Markdown
Member

What this PR does / why we need it:

Backport of #9031 to release-4.16.

Special notes for your reviewer:

Testing Plan:
test-ocpbugs-99014.md

Checklist:

  • Subject and description added to both, commit and PR.
  • Relevant issues have been referenced.
  • This change includes docs.
  • This change includes unit tests.

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Pipeline controller notification
This repo is configured to use the pipeline controller. Second-stage tests will be triggered either automatically or after lgtm label is added, depending on the repository configuration. The pipeline controller will automatically detect which contexts are required and will utilize /test Prow commands to trigger the second stage.

For optional jobs, comment /test ? to see a list of all defined jobs. To trigger manually all jobs from second stage use /pipeline required command.

This repository is configured in: LGTM mode

@openshift-ci openshift-ci Bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 24, 2026
@openshift-ci

openshift-ci Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@coderabbitai

coderabbitai Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: db290652-2fd8-4c4d-9679-1a7fa52d918d

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands.

@openshift-ci openshift-ci Bot added do-not-merge/needs-area area/control-plane-operator Indicates the PR includes changes for the control plane operator - in an OCP release and removed do-not-merge/needs-area labels Jul 24, 2026
@clebs

clebs commented Jul 24, 2026

Copy link
Copy Markdown
Member Author

/jira cherry-pick OCPBUGS-99666

@openshift-ci-robot

Copy link
Copy Markdown

@clebs: Jira Issue OCPBUGS-99666 has been cloned as Jira Issue OCPBUGS-99667. Will retitle bug to link to clone.
/retitle OCPBUGS-99667: fix(backport): konnectivity agent auth to 4.16

Details

In response to this:

/jira cherry-pick OCPBUGS-99666

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci Bot changed the title fix(backport): konnectivity agent auth to 4.16 OCPBUGS-99667: fix(backport): konnectivity agent auth to 4.16 Jul 24, 2026
@openshift-ci-robot openshift-ci-robot added jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Jul 24, 2026
@openshift-ci-robot

Copy link
Copy Markdown

@clebs: This pull request references Jira Issue OCPBUGS-99667, which is invalid:

  • expected dependent Jira Issue OCPBUGS-99666 to be in one of the following states: VERIFIED, RELEASE PENDING, CLOSED (ERRATA), CLOSED (CURRENT RELEASE), CLOSED (DONE), CLOSED (DONE-ERRATA), but it is New instead
  • expected dependent Jira Issue OCPBUGS-99666 to target a version in 4.17.0, 4.17.z, but it targets "4.18.z" instead

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

Details

In response to this:

What this PR does / why we need it:

Backport of #9031 to release-4.16.

Special notes for your reviewer:

Testing Plan:
test-ocpbugs-99014.md

Checklist:

  • Subject and description added to both, commit and PR.
  • Relevant issues have been referenced.
  • This change includes docs.
  • This change includes unit tests.

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 openshift-eng/jira-lifecycle-plugin repository.

@clebs clebs changed the title OCPBUGS-99667: fix(backport): konnectivity agent auth to 4.16 [release-4.16] OCPBUGS-99667: fix(backport): konnectivity agent auth Jul 24, 2026
@clebs
clebs marked this pull request as ready for review July 24, 2026 07:44
@openshift-ci openshift-ci Bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 24, 2026
@openshift-ci
openshift-ci Bot requested review from hasueki and sjenning July 24, 2026 07:46
Backport pull request openshift#9031 from hlipsig/fix-konnectivity-agent-auth

OCPBUGS-99014: Authenticate Konnectivity agents with cluster CA

Signed-off-by: Borja Clemente <bclement@redhat.com>
@clebs
clebs force-pushed the konnectivity-4.16 branch from 19c4610 to a5acb45 Compare July 24, 2026 08:55
@clebs clebs changed the title [release-4.16] OCPBUGS-99667: fix(backport): konnectivity agent auth [release-4.16] OCPBUGS-99075: fix(backport): konnectivity agent auth Jul 24, 2026
@openshift-ci-robot

Copy link
Copy Markdown

@clebs: This pull request references Jira Issue OCPBUGS-99075, which is invalid:

  • expected dependent Jira Issue OCPBUGS-99079 to be in one of the following states: VERIFIED, RELEASE PENDING, CLOSED (ERRATA), CLOSED (CURRENT RELEASE), CLOSED (DONE), CLOSED (DONE-ERRATA), but it is ASSIGNED instead

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

Details

In response to this:

What this PR does / why we need it:

Backport of #9031 to release-4.16.

Special notes for your reviewer:

Testing Plan:
test-ocpbugs-99014.md

Checklist:

  • Subject and description added to both, commit and PR.
  • Relevant issues have been referenced.
  • This change includes docs.
  • This change includes unit tests.

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci-robot openshift-ci-robot added the jira/severity-critical Referenced Jira bug's severity is critical for the branch this PR is targeting. label Jul 24, 2026
@csrwng csrwng added approved Indicates a PR has been approved by an approver from all required OWNERS files. backport-risk-assessed Indicates a PR to a release branch has been evaluated and considered safe to accept. labels Jul 24, 2026
@openshift-ci

openshift-ci Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

Approval requirements bypassed by manually added approval.

This pull-request has been approved by: clebs

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci

openshift-ci Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

@clebs: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-kubevirt-aws-ovn-reduced a5acb45 link true /test e2e-kubevirt-aws-ovn-reduced
ci/prow/e2e-aws a5acb45 link true /test e2e-aws

Full PR test history. Your PR dashboard.

Details

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. I understand the commands that are listed here.

@csrwng

csrwng commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Verification: PASS (release-4.16)

Verified on a live HostedCluster (cewong-guest-416, OCP 4.16.67). All 8 scenarios passed.

Test script: https://gist.github.com/csrwng/94e9e6d68a61f346823c29d61f4bd9d6

=== Setup: locating kube-apiserver pod ===
  Using pod: kube-apiserver-66766d649-xkcww

=== Scenario 1: --cluster-ca-cert flag present in konnectivity-server args ===
  PASS: flag --cluster-ca-cert found in konnectivity-server args

=== Scenario 2: --cluster-ca-cert points to /etc/konnectivity/ca/ca.crt ===
  PASS: CA cert path is /etc/konnectivity/ca/ca.crt

=== Scenario 3: CA file exists in konnectivity-server container ===
  PASS: CA file exists and contains a valid certificate

=== Scenario 4: konnectivity-server container is ready ===
  PASS: konnectivity-server container is ready

=== Scenario 5: konnectivity-agent pods healthy on guest cluster ===
  PASS: all 2/2 konnectivity-agent pods are running and ready

=== Scenario 6: Konnectivity tunnel connectivity ===
  PASS: oc get nodes via guest kubeconfig succeeded (tunnel works)

=== Scenario 7: unauthenticated TLS connection rejected on agent port (8091) ===
  PASS: unauthenticated connection was rejected or failed handshake

=== Scenario 8: fake client certificate rejected on agent port (8091) ===
  PASS: fake certificate was rejected

===========================================
 Results: 8 passed, 0 failed, 0 skipped
===========================================

@csrwng

csrwng commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

/verified by @csrwng

@openshift-ci-robot openshift-ci-robot added the verified Signifies that the PR passed pre-merge verification criteria label Jul 24, 2026
@openshift-ci-robot

Copy link
Copy Markdown

@csrwng: This PR has been marked as verified by @csrwng.

Details

In response to this:

/verified by @csrwng

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 openshift-eng/jira-lifecycle-plugin repository.

@celebdor celebdor added jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. and removed jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Jul 24, 2026
@csrwng

csrwng commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Verification: PASS — test-ocpbugs-99014.sh (release-4.16)

Verified on live HostedCluster cewong-guest-416 (OCP 4.16.67). All 11 checks passed.

Full test log
HCP_NAMESPACE: clusters-cewong-guest-416
KAS_POD:       kube-apiserver-66766d649-xkcww
KAS_POD_IP:    10.139.1.79

============================================================
  Scenario 1: Verify --cluster-ca-cert flag
============================================================
  [PASS] --cluster-ca-cert flag present
  [PASS] --cluster-ca-cert points to /etc/konnectivity/ca/ca.crt

============================================================
  Scenario 2: Verify CA bundle mounted
============================================================
  [PASS] konnectivity-ca volume mount exists
  [PASS] konnectivity-ca-bundle ConfigMap exists
  [PASS] CA cert file is valid PEM

============================================================
  Scenario 3: Konnectivity agents connect (hosted cluster)
============================================================
  [PASS] konnectivity-agent pods running
  [PASS] No TLS errors in agent logs
  [PASS] No cert errors in server logs for legitimate agents

============================================================
  Scenario 4: Node communication through tunnel
============================================================
  [PASS] oc exec through tunnel works

============================================================
  Scenario 5: Reject connections without valid client certs
============================================================
  [PASS] Connection without client cert rejected
  [PASS] Connection with fake cert rejected

============================================================
  Summary
============================================================

  Total: 11  |  Passed: 11  |  Failed: 0  |  Skipped: 0

@celebdor
celebdor merged commit 9f79ec9 into openshift:release-4.16 Jul 24, 2026
12 of 16 checks passed
@openshift-ci-robot

Copy link
Copy Markdown

@clebs: Jira Issue Verification Checks: Jira Issue OCPBUGS-99075
✔️ This pull request was pre-merge verified.
✔️ All associated pull requests have merged.
✔️ All associated, merged pull requests were pre-merge verified.

Jira Issue OCPBUGS-99075 has been moved to the MODIFIED state and will move to the VERIFIED state when the change is available in an accepted nightly payload. 🕓

Details

In response to this:

What this PR does / why we need it:

Backport of #9031 to release-4.16.

Special notes for your reviewer:

Testing Plan:
test-ocpbugs-99014.md

Checklist:

  • Subject and description added to both, commit and PR.
  • Relevant issues have been referenced.
  • This change includes docs.
  • This change includes unit tests.

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 openshift-eng/jira-lifecycle-plugin repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. area/control-plane-operator Indicates the PR includes changes for the control plane operator - in an OCP release backport-risk-assessed Indicates a PR to a release branch has been evaluated and considered safe to accept. jira/severity-critical Referenced Jira bug's severity is critical for the branch this PR is targeting. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. verified Signifies that the PR passed pre-merge verification criteria

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants