Skip to content

Add TLS support for Memcached client#3585

Merged
joe-elliott merged 5 commits intografana:mainfrom
sonisr:memcached-tls
Apr 19, 2024
Merged

Add TLS support for Memcached client#3585
joe-elliott merged 5 commits intografana:mainfrom
sonisr:memcached-tls

Conversation

@sonisr
Copy link
Copy Markdown
Contributor

@sonisr sonisr commented Apr 17, 2024

What this PR does:

This is just a copy of grafana/loki#12318 (comment) but for Tempo.

  • Adds TLS to the Memcached Client.
  • Expose new configs to configure Memcache TLS.

Which issue(s) this PR fixes:
Fixes #3564

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@sonisr sonisr changed the title Adding TLS support for Memcached Client Add TLS support for Memcached Client Apr 17, 2024
@sonisr sonisr marked this pull request as ready for review April 17, 2024 14:02
@sonisr sonisr marked this pull request as draft April 17, 2024 14:16
@sonisr sonisr marked this pull request as ready for review April 17, 2024 15:00

conn, err := cb.Execute(func() (interface{}, error) {
return net.DialTimeout(network, address, timeout)
return c.DialTimeout(network, address, timeout)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

it seems like this DialTimeout method is available here as c.Client.DialTimeout is there a reason to store it directly on the object?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I imagine you could use c.Client.DialTimeout in lieu of storing it directly on the object.

Personally, not so sure if there's any benefits of using one over the other here.

There doesn't seem to be any adverse effects from storing it directly on the object in Loki. Though, it could possibly differ in Tempo.

Copy link
Copy Markdown
Collaborator

@joe-elliott joe-elliott left a comment

Choose a reason for hiding this comment

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

Thanks for the work! One small question but generally this looks good!

@sonisr sonisr changed the title Add TLS support for Memcached Client Add TLS support for Memcached client Apr 19, 2024
@joe-elliott
Copy link
Copy Markdown
Collaborator

Awesome feature addition! Thank you.

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.

Support encryption in transit on Memcached cache

2 participants