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 support for custom CA certs #323

Merged
merged 1 commit into from
May 2, 2024
Merged

Add support for custom CA certs #323

merged 1 commit into from
May 2, 2024

Conversation

kralicky
Copy link
Contributor

@kralicky kralicky commented Apr 30, 2024

This adds a new environment variable 'EXTRA_CA_CERTS' which can contain a comma-separated list of file paths to CA certs. These certs will be used in addition to the system defaults.

@kralicky kralicky requested a review from a team as a code owner April 30, 2024 19:21
@kralicky kralicky requested review from wasaga and removed request for a team April 30, 2024 19:21
@CLAassistant
Copy link

CLAassistant commented Apr 30, 2024

CLA assistant check
All committers have signed the CLA.

@kralicky kralicky changed the title Add support for custom CA certs (#146) Add support for custom CA certs Apr 30, 2024
Copy link
Contributor

@kenjenkins kenjenkins left a comment

Choose a reason for hiding this comment

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

Thanks, looks good to me!

verify.go Outdated
if len(cfg.extraCACerts) > 0 {
pool, err := x509.SystemCertPool()
if err != nil {
panic(err)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we log.Fatal() here, for consistency with the other error handling logic below?

@kralicky kralicky added enhancement New feature or request and removed enhancement New feature or request labels May 1, 2024
This adds a new environment variable 'EXTRA_CA_CERTS' which can contain
a comma-separated list of file paths to CA certs. These certs will be
used in addition to the system defaults.
@kralicky kralicky force-pushed the kralicky/custom-ca-certs branch from f0fc24a to aa4d460 Compare May 1, 2024 19:22
@kralicky kralicky merged commit 07e71f7 into main May 2, 2024
8 checks passed
@kralicky kralicky deleted the kralicky/custom-ca-certs branch May 2, 2024 15:52
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.

3 participants