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

Redirect drop https #1120

Closed
ktf opened this issue Feb 23, 2016 · 4 comments
Closed

Redirect drop https #1120

ktf opened this issue Feb 23, 2016 · 4 comments

Comments

@ktf
Copy link

ktf commented Feb 23, 2016

Hi, I have vault set up in HA mode using zookeeper. Whenever I hit a host which does not lead, I get redirected to a http:// url, rather than https:// and the vault client errors out saying redirection would remove security. Any idea of what is going wrong?

@ktf
Copy link
Author

ktf commented Feb 23, 2016

Actual message is:

Error reading secret/foobar: redirect would cause protocol downgrade

@jefferai
Copy link
Member

You probably need to set the advertise_addr parameter on your Vault hosts. On each host this should be the URL that a standby should give to a client when redirecting them to that host. So in a non load-balanced scenario, this will generally be different -- A will set it to the URL for accessing Vault on A, B for accessing Vault on B, and so on. In a load-balanced scenario the address may be the same (the address of the load balancer).

@ktf
Copy link
Author

ktf commented Feb 23, 2016

Thanks, that worked.

Ciao,
Giulio
On 23 Feb 2016, at 14:15, Jeff Mitchell wrote:

You probably need to set the
advertise_addr
parameter on your Vault hosts. On each host this should be the URL
that a standby should give to a client when redirecting them to that
host. So in a non load-balanced scenario, this will generally be
different -- A will set it to the URL for accessing Vault on A, B for
accessing Vault on B, and so on. In a load-balanced scenario the
address may be the same (the address of the load balancer).


Reply to this email directly or view it on GitHub:
#1120 (comment)

@jefferai
Copy link
Member

Great!

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

No branches or pull requests

2 participants