Skip to content

Comments

Add TLS support for mt-broker-filter#6940

Merged
knative-prow[bot] merged 7 commits intoknative:mainfrom
creydr:add-tls-support-to-mt-broker-filter
Jun 12, 2023
Merged

Add TLS support for mt-broker-filter#6940
knative-prow[bot] merged 7 commits intoknative:mainfrom
creydr:add-tls-support-to-mt-broker-filter

Conversation

@creydr
Copy link
Member

@creydr creydr commented May 10, 2023

Fixes #6877

Currently includes 98a98cd as a cherry-pick from #6983.

Proposed Changes

  • 🎁 Add TLS support for mt-broker-filter

Pre-review Checklist

  • At least 80% unit test coverage
  • E2E tests for any new behavior
  • Docs PR for any user-facing impact
  • Spec PR for any new API feature
  • Conformance test for any change to the spec

Release Note

Add TLS support for mt-broker-filter

@knative-prow
Copy link

knative-prow bot commented May 10, 2023

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

@knative-prow knative-prow bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 10, 2023
@knative-prow knative-prow bot requested review from matzew and odacremolbap May 10, 2023 09:06
@knative-prow knative-prow bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label May 10, 2023
@creydr creydr force-pushed the add-tls-support-to-mt-broker-filter branch 5 times, most recently from 5881605 to 5e21a99 Compare May 16, 2023 06:52
@codecov
Copy link

codecov bot commented May 16, 2023

Codecov Report

Patch coverage: 73.27% and project coverage change: +0.16 🎉

Comparison is base (65f4b1c) 79.51% compared to head (e757372) 79.67%.

❗ Current head e757372 differs from pull request most recent head e860f9a. Consider uploading reports for the commit e860f9a to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6940      +/-   ##
==========================================
+ Coverage   79.51%   79.67%   +0.16%     
==========================================
  Files         246      247       +1     
  Lines       13070    12973      -97     
==========================================
- Hits        10392    10336      -56     
+ Misses       2159     2126      -33     
+ Partials      519      511       -8     
Impacted Files Coverage Δ
pkg/broker/filter/server_manager.go 0.00% <0.00%> (ø)
pkg/eventingtls/eventingtls.go 21.17% <0.00%> (ø)
pkg/kncloudevents/message_sender.go 91.66% <ø> (ø)
pkg/adapter/v2/main_message.go 50.00% <71.42%> (ø)
...iler/inmemorychannel/dispatcher/inmemorychannel.go 83.46% <72.72%> (+11.75%) ⬆️
pkg/channel/message_dispatcher.go 75.00% <88.23%> (ø)
pkg/broker/filter/filter_handler.go 76.69% <100.00%> (+1.18%) ⬆️
pkg/channel/fanout/fanout_message_handler.go 87.23% <100.00%> (ø)
...nnelfanout/multi_channel_fanout_message_handler.go 84.31% <100.00%> (-2.58%) ⬇️
pkg/kncloudevents/utils.go 70.00% <100.00%> (ø)
... and 1 more

... and 24 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@creydr creydr force-pushed the add-tls-support-to-mt-broker-filter branch from 6c36d11 to 78a7726 Compare May 25, 2023 15:28
@knative-prow knative-prow bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels May 25, 2023
@creydr creydr force-pushed the add-tls-support-to-mt-broker-filter branch from 78a7726 to e757372 Compare May 25, 2023 15:55
@creydr creydr marked this pull request as ready for review May 25, 2023 20:01
@knative-prow-robot knative-prow-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 27, 2023
@knative-prow knative-prow bot requested a review from pierDipi May 28, 2023 13:37
@creydr creydr force-pushed the add-tls-support-to-mt-broker-filter branch from e757372 to 0165e16 Compare May 30, 2023 14:35
@knative-prow-robot knative-prow-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 30, 2023
@knative-prow knative-prow bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels May 30, 2023
@creydr
Copy link
Member Author

creydr commented May 31, 2023

/retest

@creydr creydr force-pushed the add-tls-support-to-mt-broker-filter branch from 0165e16 to 87feb4f Compare May 31, 2023 05:57
@knative-prow knative-prow bot added the area/test-and-release Test infrastructure, tests or release label May 31, 2023
@creydr creydr changed the title [WIP] Add TLS support for mt-broker-filter Add TLS support for mt-broker-filter May 31, 2023
@knative-prow knative-prow bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 31, 2023
@creydr
Copy link
Member Author

creydr commented May 31, 2023

Need changes from #6988
/hold

@knative-prow knative-prow bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 31, 2023
Copy link
Member

@pierDipi pierDipi left a comment

Choose a reason for hiding this comment

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

Looks good overall:

  • a few missing copyright headers on YAMLs
  • q: where do we call "CloseIdleConnections" on various HTTP(S) clients?

@creydr creydr force-pushed the add-tls-support-to-mt-broker-filter branch from 8b526d5 to 14d9802 Compare June 1, 2023 11:23
@creydr
Copy link
Member Author

creydr commented Jun 1, 2023

  • a few missing copyright headers on YAMLs

👍 Added them

  • q: where do we call "CloseIdleConnections" on various HTTP(S) clients?

I didn't change much logic there IIRC. We could (and probably should) add some garbage collection to the kncloudevents library, to remove old clients, and could also include something to close idling connections. But I would see this in a separate PR.

@creydr creydr force-pushed the add-tls-support-to-mt-broker-filter branch from 14d9802 to 7ff797a Compare June 12, 2023 06:51
@creydr creydr force-pushed the add-tls-support-to-mt-broker-filter branch from 7ff797a to eeb120d Compare June 12, 2023 08:54
@creydr
Copy link
Member Author

creydr commented Jun 12, 2023

/unhold
as #6988 merged

@knative-prow knative-prow bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 12, 2023
@creydr creydr requested a review from pierDipi June 12, 2023 10:26
@creydr
Copy link
Member Author

creydr commented Jun 12, 2023

/test upgrade-tests

@pierDipi
Copy link
Member

/approve

@knative-prow
Copy link

knative-prow bot commented Jun 12, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: creydr, pierDipi

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

@knative-prow knative-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 12, 2023
Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
@creydr
Copy link
Member Author

creydr commented Jun 12, 2023

/test upgrade-tests

@creydr
Copy link
Member Author

creydr commented Jun 12, 2023

/test reconciler-tests

@pierDipi
Copy link
Member

/lgtm

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Jun 12, 2023
@pierDipi
Copy link
Member

Thanks @creydr !

@knative-prow knative-prow bot merged commit 631f4ec into knative:main Jun 12, 2023
vishal-chdhry pushed a commit to vishal-chdhry/eventing that referenced this pull request Jul 6, 2023
Fixes knative#6877

Currently includes 98a98cd as a
cherry-pick from knative#6983.

## Proposed Changes

- 🎁 Add TLS support for mt-broker-filter

### Pre-review Checklist

- [ ] **At least 80% unit test coverage**
- [ ] **E2E tests** for any new behavior
- [ ] **Docs PR** for any user-facing impact
- [ ] **Spec PR** for any new API feature
- [ ] **Conformance test** for any change to the spec

**Release Note**
```release-note
Add TLS support for mt-broker-filter
```

---------

Co-authored-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
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/test-and-release Test infrastructure, tests or release lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Eventing TLS: support creating TLS server for mt-broker-filter

4 participants