-
Notifications
You must be signed in to change notification settings - Fork 23
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
[v1] Add HTTP TLS (issue #393) #406
base: v1
Are you sure you want to change the base?
Conversation
- Add environment variables for SSL configuration - Implement conditional SSL server startup based on configuration
- Added a way to configure cipher suites - Added a way to configure TLS min version
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.
Sorry for such a late review, maybe @kuskoman would have more to say about it 😛
@@ -36,6 +36,13 @@ func main() { | |||
|
|||
port, host := config.Port, config.Host | |||
logstashUrl := config.LogstashUrl | |||
enableSSL := config.EnableSSL == "TRUE" | |||
sslCertDir := config.SSLCertDir |
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.
Shouldn't there be a sslCertFile
instead of Dir
, according to docs :
func ListenAndServeTLS(addr, certFile, keyFile string, handler Handler) error
@@ -36,6 +36,13 @@ func main() { | |||
|
|||
port, host := config.Port, config.Host | |||
logstashUrl := config.LogstashUrl | |||
enableSSL := config.EnableSSL == "TRUE" | |||
sslCertDir := config.SSLCertDir | |||
sslKeyDir := config.SSLKeyDir |
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.
Same as for certDir, shouldn't there be sslKeyFile
provided?
if err := appServer.ListenAndServe(); err != nil { | ||
if enableSSL { | ||
appServer.TLSConfig = tlsConfig | ||
err = appServer.ListenAndServeTLS(sslCertDir, sslKeyDir) |
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.
Would be nice if you could actually test it. See my PR #401
No description provided.