-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
metricbeat/module/redis: Add TLS and username support for Redis module #35240
Conversation
This pull request doesn't have a |
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
Not sure how it added the reviewers automatically as I didn't and I just updated the project. So I've manually removed the assigned reviewers for now. But please free to review the changes as getting more eyeballs for the same is good. |
Ping: @ishleenk17 |
General recommendation: It will be good to have only the enhancement related changes in this PR. |
We can create separate PRs for other cosmetic changes, which is also important. |
Yes, I agree and that's why I left out many such cosmetic changes. The changes that are non-related are mostly raised by golangci-lint ran as part of this repository's CI itself. If I don't fix them, the CI will fail because the action that runs the linter will fail. For example:
But yes, I'll check if there are other changes (not raised by linters) and would raise them as part of another PR. Update: I have only kept fixes as suggested by golangci-lint to the files that are changed as part of the related changes required by the issue for which PR is issued for. I'll fix the code smells for other files of the same module in some other PR. |
@shmsr please add a changelog entry in |
This pull request is now in conflicts. Could you fix it? 🙏
|
This pull request is now in conflicts. Could you fix it? 🙏
|
Changes look good. Has this change been tested with TLS-enabled redis TLS mode? |
Yes. I have even given the steps on how to test this PR locally: #35240 (comment). |
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.
Looks good!
Please resolve conflicts and merge
/test |
What does this PR do?
PR adds support for TLS to Redis module in metricbeat. It also adds supports for accepting username (supported by by Redis 6.0+) from URI's userinfo or query parameter.
It has also has some nitpick changes pointed out by linters, etc.
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Author's Checklist
How to test this PR locally
But how will get the certificate, CA, keys, etc.?
ca.crt
,redis.crt
andredis.key
:Related issues