-
Notifications
You must be signed in to change notification settings - Fork 120
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
E2E tests for broker: TLS key pair rotation #3287
E2E tests for broker: TLS key pair rotation #3287
Conversation
Codecov Report
@@ Coverage Diff @@
## main #3287 +/- ##
============================================
- Coverage 61.54% 61.54% -0.01%
Complexity 761 761
============================================
Files 181 181
Lines 12316 12322 +6
Branches 265 265
============================================
+ Hits 7580 7583 +3
- Misses 4140 4142 +2
- Partials 596 597 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Skipping CI for Draft Pull Request. |
/cc @pierDipi Context
The problemI am trying to make the rekt test for kafka broker to validate the keypair rotation work as expected. What I have doneThe broker is installed here
Get the respnse:
Found out that the broker is still has http address. So I manually enforce the https mode by doing the next step.
get the response
What nextAs Calum suggested,
My next step would be using telepresence to debug, by setting the break point in the reconciler and the prober.go and async_prober.go, and see what happens there. But I haven't successfully used telepresence yet. What help I would like to ask
Thanks for your help! @pierDipi |
@Leo6Leo I think, I'd investigate whether the receiver is creating the https server, do you have the logs of the data plane? in particular, |
@pierDipi But the issue I mentioned above pertain after the previous problem is resolved. Set up the loggers and can see that https server is created successfully. However, the probeError still exist |
/retest-required |
/retest-required |
/cc @Cali0707 |
/retest-required |
1 similar comment
/retest-required |
/test reconciler-tests |
/retest-required |
… the transport-encryption feature flag
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Leo6Leo, pierDipi 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 |
/retest-required |
/cherry-pick release-1.11 |
@Leo6Leo can you take care of backporting to 1.11? |
@pierDipi: #3287 failed to apply on top of branch "release-1.11":
In 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/test-infra repository. |
* progress save * add the new cert rotation test * Update the rekt test * Format the files * workspace save * maven * Clean up * Clean up * Format * Fix the rekt test CA cert issue on Source Co-authored-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Format fix * Re-order the prerequisite * Enable the strict transportation mode in TLS rekt tests * Fix the reviewDog comment * Update test/e2e_new/broker_eventing_tls_test.go Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com> * Fix the format of the shell script * Fix the format of the shell script * Update the Strict feature flag * Add the code to inject the feature flag to the context in the broker controller * Run go import * Fix the controller tests * Set the default value to all other feature flags when we are updating the transport-encryption feature flag --------- Co-authored-by: Pierangelo Di Pilato <pierdipi@redhat.com> Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
* progress save * add the new cert rotation test * Update the rekt test * Format the files * workspace save * maven * Clean up * Clean up * Format * Fix the rekt test CA cert issue on Source Co-authored-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Format fix * Re-order the prerequisite * Enable the strict transportation mode in TLS rekt tests * Fix the reviewDog comment * Update test/e2e_new/broker_eventing_tls_test.go Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com> * Fix the format of the shell script * Fix the format of the shell script * Update the Strict feature flag * Add the code to inject the feature flag to the context in the broker controller * Run go import * Fix the controller tests * Set the default value to all other feature flags when we are updating the transport-encryption feature flag --------- Co-authored-by: Pierangelo Di Pilato <pierdipi@redhat.com> Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
…#3287 (#3387) * E2E tests for broker: TLS key pair rotation (#3287) * progress save * add the new cert rotation test * Update the rekt test * Format the files * workspace save * maven * Clean up * Clean up * Format * Fix the rekt test CA cert issue on Source Co-authored-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Format fix * Re-order the prerequisite * Enable the strict transportation mode in TLS rekt tests * Fix the reviewDog comment * Update test/e2e_new/broker_eventing_tls_test.go Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com> * Fix the format of the shell script * Fix the format of the shell script * Update the Strict feature flag * Add the code to inject the feature flag to the context in the broker controller * Run go import * Fix the controller tests * Set the default value to all other feature flags when we are updating the transport-encryption feature flag --------- Co-authored-by: Pierangelo Di Pilato <pierdipi@redhat.com> Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com> * Run Dependency update * Upgrade Knative eventing to release-1.11 * Upgrade Knative eventing to release-1.11 * Upgrade Knative eventing to release-1.11 * Expose tls port for broker (#3305) * Expose the port for HTTPS broker Co-authored-by: Calum Murray <cmurray@redhat.com> Co-authored-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Change the format Signed-off-by: Leo HC Li <36619969+Leo6Leo@users.noreply.github.com> * Update 500-receiver.yaml Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com> --------- Signed-off-by: Leo HC Li <36619969+Leo6Leo@users.noreply.github.com> Co-authored-by: Calum Murray <cmurray@redhat.com> Co-authored-by: Pierangelo Di Pilato <pierdipi@redhat.com> Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com> * Change the name of the secretVolumePath (#3303) * Workaround for cert-manager update spec issue (#3390) I'm setting the fields to what cert-manager expects so that we don't run into this issue cert-manager/cert-manager#6408 Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Cherry pick b30da88 * Update to the latest knative eventing V1.11.6 * Cherry pick the keypair rotation commit * Cherry pick 1ddc823 * Run update-codegen * Update the receiververticle import * Run update-codegen * Run spotless * Modify the CI test, it seems like prow is using the wrong config to run the tests * Modify the CI test, it seems like prow is using the wrong config to run the tests * Modify the CI test, it seems like prow is using the wrong config to run the tests * Install the knative TLS eventing component * Install the knative TLS eventing component * Update missed dependencies * Update codegen * Revert the dependency version to the latest --------- Signed-off-by: Leo HC Li <36619969+Leo6Leo@users.noreply.github.com> Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> Co-authored-by: Pierangelo Di Pilato <pierdipi@redhat.com> Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com> Co-authored-by: Calum Murray <cmurray@redhat.com>
knative-extensions#3287 (#869) * E2E tests for broker: TLS key pair rotation (knative-extensions#3287) * progress save * add the new cert rotation test * Update the rekt test * Format the files * workspace save * maven * Clean up * Clean up * Format * Fix the rekt test CA cert issue on Source Co-authored-by: Pierangelo Di Pilato <pierdipi@redhat.com> * Format fix * Re-order the prerequisite * Enable the strict transportation mode in TLS rekt tests * Fix the reviewDog comment * Update test/e2e_new/broker_eventing_tls_test.go Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com> * Fix the format of the shell script * Fix the format of the shell script * Update the Strict feature flag * Add the code to inject the feature flag to the context in the broker controller * Run go import * Fix the controller tests * Set the default value to all other feature flags when we are updating the transport-encryption feature flag --------- Co-authored-by: Pierangelo Di Pilato <pierdipi@redhat.com> Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com> * Upgrade eventing reconciler-test to release-1.11 * Cherry-pick the TLS commit * Update eventing dependency --------- Co-authored-by: Pierangelo Di Pilato <pierdipi@redhat.com> Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
Fixes #3373
Fixes #3376
Proposed Changes
The tests will be failing until all the PRs below get merged.
Bug Fix In progress
Backporting
Release Note
Docs