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

add support for reload over https #504

Merged
merged 5 commits into from
Oct 29, 2019
Merged

Conversation

BCarette
Copy link

@BCarette BCarette commented Oct 9, 2019

Why?

When adding a service, or performing other change which requires consul to reload, consul is reloaded with the command:

consul reload -http-addr=127.0.0.1:8500 (with address and port configurable)

However this assumes that consul allows connections via http, without encryption or identity verification.

For sensitive productions scenarios however, consul should only allow mutual tls connections. In this case the reloading will fail, as it tries to connect over http without valid certificate.

This merge request will allow the reload to happen over TLS, with the correct certificates.

How does it work?

If the http port is disabled (equal to -1) and verify_incoming is set to true in the consul configuration, the reload will now happen automatically over TLS with the correct certificates.

@bastelfreak bastelfreak added the bug Something isn't working label Oct 29, 2019
@bastelfreak
Copy link
Member

Thanks for the PR! I restarted the failed travis jobs.

@bastelfreak bastelfreak merged commit 6ccee3a into voxpupuli:master Oct 29, 2019
@bastelfreak bastelfreak changed the title added support for reload over https add support for reload over https Oct 29, 2019
spuder pushed a commit to spuder/puppet-consul that referenced this pull request Feb 25, 2020
added support for reload over https
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants