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

fix: set up tls for redis when it's enabled #1284

Merged
merged 7 commits into from
Aug 19, 2024
Merged

Conversation

VinozzZ
Copy link
Contributor

@VinozzZ VinozzZ commented Aug 16, 2024

Which problem is this PR solving?

Currently, we are not setting the tls config for go-redis even through we do have UseTLS configuration option.

Short description of the changes

  • config tls with go-redis when it's enabled

@VinozzZ VinozzZ requested a review from a team as a code owner August 16, 2024 15:13
pubsub/pubsub_goredis.go Outdated Show resolved Hide resolved
<!--
Thank you for contributing to the project! 💜
Please make sure to:
- Chat with us first if this is a big change
  - Open a new issue (or comment on an existing one)
- We want to make sure you don't spend time implementing something we
might have to say No to
- Add unit tests
- Mention any relevant issues in the PR description (e.g. "Fixes #123")

Please see our [OSS process
document](https://github.com/honeycombio/home/blob/main/honeycomb-oss-lifecycle-and-practices.md#)
to get an idea of how we operate.
-->

Currently, we are not setting the tls config for go-redis even through
we do have `UseTLS` configuration option.

- log the pubsub publish error
- configure redis client tls
log error when pubsub fail to publish peer information
<!--
Thank you for contributing to the project! 💜
Please make sure to:
- Chat with us first if this is a big change
  - Open a new issue (or comment on an existing one)
- We want to make sure you don't spend time implementing something we
might have to say No to
- Add unit tests
- Mention any relevant issues in the PR description (e.g. "Fixes #123")

Please see our [OSS process
document](https://github.com/honeycombio/home/blob/main/honeycomb-oss-lifecycle-and-practices.md#)
to get an idea of how we operate.
-->

Currently, we are not setting the tls config for go-redis even through
we do have `UseTLS` configuration option.

- log the pubsub publish error
- configure redis client tls
@VinozzZ VinozzZ requested a review from robbkidd August 19, 2024 18:38
@VinozzZ
Copy link
Contributor Author

VinozzZ commented Aug 19, 2024

We should not squash merge this PR since we need the fix commit from 2.7.2-dev.1

Copy link
Member

@robbkidd robbkidd left a comment

Choose a reason for hiding this comment

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

👍🏻

I mixed this branch with the "run refinery locally with a TLS'd redis" branch. The refinery in there (based on main) went from being unhappy to being happy.

Yes.

@VinozzZ VinozzZ merged commit d4e7bbf into main Aug 19, 2024
5 checks passed
@VinozzZ VinozzZ deleted the yingrong.setup_tls branch August 19, 2024 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants