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

Support Certs via Environement Variable #479

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Issacwww
Copy link
Contributor

@Issacwww Issacwww commented Sep 13, 2024

Issue #, if available:

Description of changes:
The approach in #478 may be the best way to proceed. Open another PR to solve the same issue.

Testing:
Build image and pass the correct certs, the original CFN creation issue was resolved.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.


func withCertsEnv() func(*config.LoadOptions) error {
return func(lo *config.LoadOptions) error {
certs := os.Getenv("CERTS_CONTENT")
Copy link
Member

Choose a reason for hiding this comment

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

nit on naming:

Suggested change
certs := os.Getenv("CERTS_CONTENT")
certs := os.Getenv("ADDITIONAL_CA")

}
transport := &http.Transport{
TLSClientConfig: &tls.Config{
RootCAs: pool,
Copy link
Member

Choose a reason for hiding this comment

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

Should we be merging the additional CA's into the default pool instead of the pool only containing the one passed in env?

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