-
Notifications
You must be signed in to change notification settings - Fork 214
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
Option to skip https certificate verification #920
Conversation
cmd/polaris/audit.go
Outdated
client := &http.Client{Transport: &http.Transport{ | ||
TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, | ||
}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fengshunli this is super dangerous--at most we should make this an option and turn it off by default.
@fengshunli can you fill out the PR template? I'm not sure what you're trying to achieve here. It might be better to provide a CA using these environment variables
|
Because I am a self-signed certificate, I want to skip the certificate verification when uploading the result through --output-url @rbren |
Do I need to add a global -skip-ssl-validation set to false by default to resubmit @rbren |
Yup that's perfect! Thanks |
done @rbren |
Signed-off-by: fengshunli <1171313930@qq.com>
done @rbren |
This PR fixes #
Checklist
Description
What's the goal of this PR?
What changes did you make?
What alternative solution should we consider, if any?