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

[v1] Add HTTP TLS (issue #393) #406

Open
wants to merge 3 commits into
base: v1
Choose a base branch
from

Conversation

chanyongkit
Copy link

No description provided.

- 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
Copy link
Collaborator

@satk0 satk0 left a 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
Copy link
Collaborator

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
Copy link
Collaborator

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)
Copy link
Collaborator

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

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