-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
TLS config documentation for HTTPS server #831
Comments
Cool, I can get that added. |
Definitely makes sense to add documentation of the https address to the options docs, but it also feels like we need a "Securing Consul" guide to cover this stuff in more depth. Forcing people to scour the config options feels unreasonable. |
I agree, a security guide would be great! |
Yep, totally agreed. There is too broad a surface to reason about. |
For starters, I made one minor change to the options docs, clarifying that https port must be set. However, I'm having a hard time validating that there's a codepath where If an https port is set but no https address is set, this line https://github.com/hashicorp/consul/blob/master/command/agent/http.go#L47 calls https://github.com/hashicorp/consul/blob/master/command/agent/config.go#L453 with an empty string as the first param. That'll yield a returned addr equivalent to ClientAddr, and that should default to 127.0.0.1. What am I missing? |
@ryanbreen I don't think you are missing anything. If the port is configured, the HTTPS server should start, and the HTTPS address field is just there to allow changing what it binds to. |
Closing, this seems to be done. Thanks @ryanbreen |
From https://groups.google.com/forum/#!topic/consul-tool/JOGcE2o1GK0:
/cc @ryanbreen
The text was updated successfully, but these errors were encountered: