vouch / vouch-proxy

an SSO and OAuth / OIDC login solution for Nginx using the auth_request module

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Two Instances of Vouch

normelton opened this issue · comments

Running the latest versions of Vouch and nginx (from hub.docker.com), with Azure AD authentication.

Our environment has two Nginx proxies (nginx-00 / nginx-01), each running Vouch (vouch-00 / vouch-01). Traffic is load balanced across both proxies.

When a user's browser bounces between nginx-00 and nginx-01, they have to establish a new session. The Vouch debug shows "signature is invalid". This makes sense since the cookie was created by the a different instance of Vouch.

I found a related issue (#503) where the suggestion was to establish different cookies for each of the Vouch. This would still require establishing two sessions with Azure AD.

Is there any way for one Vouch instance to be able to validate cookies from a second Vouch instance? Some sort of secret configured identically?

Brilliant thanks