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

Allow for mTLS connections configured from environment #237

Merged
merged 2 commits into from
Jul 22, 2024

Conversation

logand22
Copy link
Contributor

Created an example PR for issue: #236 in which you can configure Client TLS settings through environment variables. Let me know if this is contribution you would be willing to accept or if I should request this feature through other channels.

Additionally, there might be improved UX if the client certs could be linked to a particular profile as well although I didn't explore that in this PR.


// configureTLS configures client TLS from the environment.
func configureTLS(httpClient *http.Client) error {
clientTLS := &tls.Config{}

Check failure

Code scanning / Golang security checks by gosec

TLS MinVersion too low. Error

TLS MinVersion too low.
@peterdeme
Copy link
Collaborator

thanks for the contribution! can you fix the warning please? otherwise lgtm.

@logand22
Copy link
Contributor Author

thanks for the contribution! can you fix the warning please? otherwise lgtm.

Fixed!

@tomasmik tomasmik merged commit 9ca0644 into spacelift-io:main Jul 22, 2024
8 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.

3 participants