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

deployment: support load balancing #854

Open
mdonadoni opened this issue Dec 2, 2024 · 0 comments
Open

deployment: support load balancing #854

mdonadoni opened this issue Dec 2, 2024 · 0 comments

Comments

@mdonadoni
Copy link
Member

Reported as an issue when using MetalLB

Authentication fails when serving REANA behind a load balancer, in particular due to the fact that session identifiers are not stable.

See the following code that generates the session identifiers (source):

def _create_identifier():
    h = sha512()
    h.update(f"{request.remote_addr}|{request.user_agent.string}".encode())
    return h.hexdigest()

request.remote_addr changes based on which load balancer/server serves the request. It might even just be caused by a misconfiguration of ProxyFix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant