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

NETOBSERV-974 Implement SASL for Kafka (producer+consumer) #424

Merged
merged 2 commits into from
May 30, 2023

Conversation

jotak
Copy link
Member

@jotak jotak commented Apr 14, 2023

No description provided.

@codecov
Copy link

codecov bot commented Apr 14, 2023

Codecov Report

Merging #424 (ffd476a) into main (95395fc) will decrease coverage by 0.38%.
The diff coverage is 2.43%.

@@            Coverage Diff             @@
##             main     #424      +/-   ##
==========================================
- Coverage   64.74%   64.36%   -0.38%     
==========================================
  Files          94       96       +2     
  Lines        6651     6690      +39     
==========================================
  Hits         4306     4306              
- Misses       2102     2139      +37     
- Partials      243      245       +2     
Flag Coverage Δ
unittests 64.36% <2.43%> (-0.38%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/api/encode_kafka.go 100.00% <ø> (ø)
pkg/api/enum.go 75.75% <ø> (ø)
pkg/api/sasl.go 0.00% <0.00%> (ø)
pkg/api/tls.go 48.38% <0.00%> (ø)
pkg/pipeline/ingest/ingest_kafka.go 63.29% <0.00%> (-2.09%) ⬇️
pkg/pipeline/utils/sasl.go 0.00% <0.00%> (ø)
pkg/pipeline/encode/encode_kafka.go 61.64% <14.28%> (-5.53%) ⬇️

@jotak jotak added no-qe This PR doesn't necessitate QE approval no-doc This PR doesn't require documentation change on the NetObserv operator labels May 10, 2023
Copy link
Contributor

@OlivierCazade OlivierCazade left a comment

Choose a reason for hiding this comment

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

LGTM, only a minor comment.

"github.com/segmentio/kafka-go/sasl/scram"
)

func SetupSASLMechanism(cfg *api.SASLConfig) (sasl.Mechanism, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

nitpick: Since the function is tied to the kafka-go type sasl.Mechanism may be it should be in the kafka ingest file.

@jotak
Copy link
Member Author

jotak commented May 30, 2023

/approve

@openshift-ci
Copy link

openshift-ci bot commented May 30, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jotak

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-merge-robot openshift-merge-robot merged commit 3c3c1f3 into netobserv:main May 30, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm no-doc This PR doesn't require documentation change on the NetObserv operator no-qe This PR doesn't necessitate QE approval
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants