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

Add custom certificate CA support for s3 #4946

Merged
merged 4 commits into from
Dec 18, 2021
Merged

Conversation

clyang82
Copy link
Contributor

@clyang82 clyang82 commented Dec 13, 2021

Signed-off-by: clyang82 chuyang@redhat.com

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Changes

use prometheus common tls_config to connect with s3 object store so that we can pass the certificate in.

part of #4820

Verification

GiedriusS
GiedriusS previously approved these changes Dec 15, 2021
Copy link
Member

@GiedriusS GiedriusS left a comment

Choose a reason for hiding this comment

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

Some suggestions on the test but otherwise LGTM

pkg/objstore/s3/s3_test.go Outdated Show resolved Hide resolved
pkg/objstore/s3/s3_test.go Outdated Show resolved Hide resolved
@clyang82
Copy link
Contributor Author

clyang82 commented Dec 16, 2021

@GiedriusS Thanks for your comments. I found that omitempty is forbidden for config. Do I need to copy github.com/prometheus/common/config.TLSConfig to thanos repo? any suggestions here? Thanks.

Signed-off-by: clyang82 <chuyang@redhat.com>
Signed-off-by: clyang82 <chuyang@redhat.com>
Signed-off-by: clyang82 <chuyang@redhat.com>
Signed-off-by: clyang82 <chuyang@redhat.com>
Copy link
Contributor

@yeya24 yeya24 left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for the contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants