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 option to set TLS options in-memory for API client #7093

Merged
merged 5 commits into from
Jan 28, 2020

Conversation

michelvocks
Copy link
Contributor

This PR adds the option to set in-memory certificates to the API client instead of requiring the certificate to be stored on disk in a file.

This allows us to define API client TLS options per Consul secret backend in Vault.
Related issue hashicorp/vault#4800

Note: My go mod vendor produced a few more deletes than expected. Happy to revoke these if necessary.

@hanshasselberg hanshasselberg self-assigned this Jan 21, 2020
@hanshasselberg
Copy link
Member

Consul has a thing to update the vendor folder: make update-vendor. If you are using this, CI will test your PR.

@hanshasselberg hanshasselberg added the waiting-reply Waiting on response from Original Poster or another individual in the thread label Jan 21, 2020
@stale stale bot removed the waiting-reply Waiting on response from Original Poster or another individual in the thread label Jan 22, 2020
Copy link
Member

@hanshasselberg hanshasselberg left a comment

Choose a reason for hiding this comment

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

Looks great! Could you add tests to make sure it is working as intended?

api/api.go Outdated Show resolved Hide resolved
@hanshasselberg hanshasselberg added the waiting-reply Waiting on response from Original Poster or another individual in the thread label Jan 24, 2020
@michelvocks
Copy link
Contributor Author

@i0rek The failing tests seem to be unrelated to the PR changes. Let me know if you need anything else.

@ghost ghost removed waiting-reply Waiting on response from Original Poster or another individual in the thread labels Jan 28, 2020
Copy link
Member

@hanshasselberg hanshasselberg left a comment

Choose a reason for hiding this comment

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

Looks great, thank you for your help @michelvocks! The test failure is already fixed on master: #7108 I think.

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