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

added envvar for tls #679

Merged
merged 4 commits into from
Dec 2, 2024
Merged

Conversation

kondotak
Copy link
Contributor

@kondotak kondotak commented Aug 30, 2024

I needed to add a ca-cert that matched a given cert and key. Here is the code i added that provides cli arg and envvar arg... first time using golang, be gentle!

@kondotak kondotak requested a review from a team as a code owner August 30, 2024 22:05
Copy link

hashicorp-cla-app bot commented Aug 30, 2024

CLA assistant check
All committers have signed the CLA.

@tvoran tvoran added this to the 1.6.0 milestone Nov 19, 2024
Copy link
Member

@tvoran tvoran 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 submitting this! I think if we update the unit test I mentioned it should be good to go.

Comment on lines +59 to +60
// TLSCACertFile is the AGENT_INJECT_TLS_CA_CERT_FILE environment variable.
TLSCACertFile string `envconfig:"tls_ca_cert_file"`
Copy link
Member

Choose a reason for hiding this comment

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

We'll probably want to add a test case for AGENT_INJECT_TLS_CA_CERT_FILE in TestCommandEnvs() as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

okay, added test case, easy to add!

subcommand/injector/command.go Outdated Show resolved Hide resolved
Copy link
Member

@tvoran tvoran left a comment

Choose a reason for hiding this comment

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

Thanks! We'll get this into the next release.

@tvoran tvoran merged commit 06c53ba into hashicorp:main Dec 2, 2024
10 checks passed
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