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 SRV record functionality for client side host/port discovery of Vault #3035

Merged

Conversation

nrhall-deshaw
Copy link

This PR is to add SRV functionality to the client API to support port discovery for the HTTP service.

e.g. with a SRV record like:

_http._tcp.vault.mydomain.com. IN SRV 10 1 8200 vaulthost1.primarydc.mydomain.com.

...and the patch, the client can just connect to 'vault.mydomain.com' without needing to specify the port, avoiding the need to hard-code hosts/ports in client-side configs and allowing administrative flexibility with respect to moving services around in a business continuity or less major incident - for example, the record could be changed to:

_http._tcp.vault.mydomain.com. IN SRV 10 1 8200 vaulthost1.secondarydc.mydomain.com.

New clients/requests will now hit the new location for the service.

The patch does not attempt to handle retries, reconnect, etc - although it could be further developed.

@nrhall-deshaw nrhall-deshaw changed the title Add SRV record functionality for client side port discovery of Vault Add SRV record functionality for client side host/port discovery of Vault Jul 19, 2017
@jefferai jefferai added this to the 0.8.0 milestone Aug 2, 2017
@jefferai jefferai merged commit 52a18a1 into hashicorp:master Aug 2, 2017
@jefferai
Copy link
Member

jefferai commented Aug 2, 2017

Thanks!

@nrhall-deshaw nrhall-deshaw deleted the srv-records-client-connections branch August 16, 2017 09:37
@nrhall-deshaw
Copy link
Author

Thanks very much!

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.

3 participants