Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CFE-910: RouteExternalCertificate validation in openshift-kube-apiserver custom resource validator #1904

Merged
merged 2 commits into from Apr 17, 2024

Conversation

swghosh
Copy link
Member

@swghosh swghosh commented Feb 28, 2024

Adds validation gated by RouteExternalCertificate FeatureGate (initially as TechPreview) for custom resource validation in o/kube-apiserver of Route resources.

This is a follow-up over #1852 (which added OpenShift-specific feature gates to kube-apiserver), this intends to add Route validation logic for External Certificates (certificates loaded from secret references instead of entire certificate values being part of route resource).

@openshift-ci-robot openshift-ci-robot added the backports/unvalidated-commits Indicates that not all commits come to merged upstream PRs. label Feb 28, 2024
@openshift-ci-robot
Copy link

@swghosh: the contents of this pull request could not be automatically validated.

The following commits could not be validated and must be approved by a top-level approver:

Comment /validate-backports to re-evaluate validity of the upstream PRs, for example when they are merged upstream.

@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 Feb 28, 2024
Copy link

openshift-ci bot commented Feb 28, 2024

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

@openshift-ci openshift-ci bot added the vendor-update Touching vendor dir or related files label Feb 28, 2024
@openshift-ci-robot
Copy link

@swghosh: the contents of this pull request could not be automatically validated.

The following commits could not be validated and must be approved by a top-level approver:

Comment /validate-backports to re-evaluate validity of the upstream PRs, for example when they are merged upstream.

@openshift-ci-robot
Copy link

@swghosh: the contents of this pull request could not be automatically validated.

The following commits could not be validated and must be approved by a top-level approver:

Comment /validate-backports to re-evaluate validity of the upstream PRs, for example when they are merged upstream.

@swghosh swghosh changed the title WIP: RouteExternalCertificate validation in openshift-kube-apiserver custom resource validator CFE-910: RouteExternalCertificate validation in openshift-kube-apiserver custom resource validator Mar 27, 2024
@openshift-ci-robot
Copy link

openshift-ci-robot commented Mar 27, 2024

@swghosh: This pull request references CFE-910 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.16.0" version, but no target version was set.

In response to this:

Adds validation gated by RouteExternalCertificate FeatureGate (initially as TechPreview) for custom resource validation in o/kube-apiserver of Route resources.

/hold
till openshift/library-go#1625 gets merged

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/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Mar 27, 2024
@openshift-ci-robot
Copy link

openshift-ci-robot commented Mar 27, 2024

@swghosh: This pull request references CFE-910 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.16.0" version, but no target version was set.

In response to this:

Adds validation gated by RouteExternalCertificate FeatureGate (initially as TechPreview) for custom resource validation in o/kube-apiserver of Route resources.

/hold
till openshift/library-go#1625 gets merged

This is a follow-up over #1852 (which added OpenShift-specific feature gates to kube-apiserver), this intends to add Route validation logic for External Certificates (certificates loaded from secret references instead of entire certificate values being part of route resource).

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.

@swghosh
Copy link
Member Author

swghosh commented Mar 27, 2024

/cc @vrutkovs @soltysh
FYI for now :)

@openshift-ci-robot
Copy link

@swghosh: the contents of this pull request could not be automatically validated.

The following commits could not be validated and must be approved by a top-level approver:

Comment /validate-backports to re-evaluate validity of the upstream PRs, for example when they are merged upstream.

@swghosh swghosh marked this pull request as ready for review April 3, 2024 15:42
@openshift-ci-robot
Copy link

openshift-ci-robot commented Apr 3, 2024

@swghosh: This pull request references CFE-910 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.16.0" version, but no target version was set.

In response to this:

Adds validation gated by RouteExternalCertificate FeatureGate (initially as TechPreview) for custom resource validation in o/kube-apiserver of Route resources.

This is a follow-up over #1852 (which added OpenShift-specific feature gates to kube-apiserver), this intends to add Route validation logic for External Certificates (certificates loaded from secret references instead of entire certificate values being part of route resource).

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 removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 3, 2024
@swghosh
Copy link
Member Author

swghosh commented Apr 3, 2024

/cc @vrutkovs
Ti's ready for your review!

@openshift-ci openshift-ci bot requested a review from mfojtik April 3, 2024 15:56
Copy link
Member

@vrutkovs vrutkovs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Apr 3, 2024
@chiragkyal
Copy link
Member

We should get reviews from NE team as well.
/cc @alebedev87 @Miciah
/hold

@openshift-ci openshift-ci bot requested review from alebedev87 and Miciah April 3, 2024 17:26
@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 3, 2024
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 15, 2024
@swghosh
Copy link
Member Author

swghosh commented Apr 15, 2024

/test e2e-aws-ovn-serial
/test e2e-gcp-ovn-upgrade
/test e2e-aws-ovn-fips

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 6b4d6cb and 2 for PR HEAD c0bf247 in total

@soltysh
Copy link
Member

soltysh commented Apr 15, 2024

/hold
the fips failure looks legit

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 15, 2024
@soltysh
Copy link
Member

soltysh commented Apr 15, 2024

I'm landing #1941 which doesn't have fips issues, and this PR will need to be rebased and the last 2 commits should be squashed into one. This should help with fips.

…bjectValidator

Signed-off-by: Swarup Ghosh <swghosh@redhat.com>
…piserver

Signed-off-by: Swarup Ghosh <swghosh@redhat.com>
@openshift-ci-robot openshift-ci-robot added backports/unvalidated-commits Indicates that not all commits come to merged upstream PRs. and removed backports/validated-commits Indicates that all commits come to merged upstream PRs. labels Apr 15, 2024
@openshift-ci-robot
Copy link

@swghosh: the contents of this pull request could not be automatically validated.

The following commits could not be validated and must be approved by a top-level approver:

Comment /validate-backports to re-evaluate validity of the upstream PRs, for example when they are merged upstream.

@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Apr 15, 2024
@openshift-ci-robot
Copy link

@swghosh: the contents of this pull request could not be automatically validated.

The following commits could not be validated and must be approved by a top-level approver:

Comment /validate-backports to re-evaluate validity of the upstream PRs, for example when they are merged upstream.

@openshift-ci-robot
Copy link

@swghosh: the contents of this pull request could not be automatically validated.

The following commits could not be validated and must be approved by a top-level approver:

Comment /validate-backports to re-evaluate validity of the upstream PRs, for example when they are merged upstream.

@swghosh
Copy link
Member Author

swghosh commented Apr 17, 2024

https://prow.ci.openshift.org/view/gs/test-platform-results/pr-logs/pull/openshift_kubernetes/1904/pull-ci-openshift-kubernetes-master-e2e-aws-ovn-fips/1779978059932241920 > https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/gcs/test-platform-results/pr-logs/pull/openshift_kubernetes/1904/pull-ci-openshift-kubernetes-master-e2e-aws-ovn-fips/1779978059932241920/artifacts/e2e-aws-ovn-fips/gather-extra/artifacts/pods/openshift-authentication_oauth-openshift-55ffbc97dc-5vvrp_oauth-openshift.log

Copying system trust bundle
+ FIPS mode is enabled, but the required OpenSSL backend is unavailable

The root cause for those FIPS e2e failures seem to be because oauth-server osinserver command running as pods in the openshift-authentication namespace fails to start the binary. Looks like a problem with loading the requisite FIPS certified OpenSSL lib, probably related: https://access.redhat.com/solutions/7046917.

depends on: openshift/oauth-server#145

@swghosh
Copy link
Member Author

swghosh commented Apr 17, 2024

/test unit

@swghosh
Copy link
Member Author

swghosh commented Apr 17, 2024

/remove-hold
fips test have passed

/retest-required

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 17, 2024
Copy link
Member

@soltysh soltysh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/remove-label backports/unvalidated-commits
/label backports/validated-commits
/lgtm

@openshift-ci openshift-ci bot added backports/validated-commits Indicates that all commits come to merged upstream PRs. and removed backports/unvalidated-commits Indicates that not all commits come to merged upstream PRs. labels Apr 17, 2024
@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Apr 17, 2024
Copy link

openshift-ci bot commented Apr 17, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Miciah, sanchezl, soltysh, swghosh, vrutkovs

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

The pull request process is described here

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-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 0fdcb8e and 2 for PR HEAD 410ba70 in total

Copy link

openshift-ci bot commented Apr 17, 2024

@swghosh: all tests passed!

Full PR test history. Your PR dashboard.

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

@openshift-merge-bot openshift-merge-bot bot merged commit 6506f5b into openshift:master Apr 17, 2024
19 checks passed
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. backports/validated-commits Indicates that all commits come to merged upstream PRs. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. vendor-update Touching vendor dir or related files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants