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

Share state across app instances #48

Open
praseodym opened this issue Feb 21, 2022 · 0 comments
Open

Share state across app instances #48

praseodym opened this issue Feb 21, 2022 · 0 comments

Comments

@praseodym
Copy link
Member

praseodym commented Feb 21, 2022

OIDC login states are stored in a simple map which is not shared across instances and lost after container restarts:

var states = map[string]bool{}

This impedes Kubernetes deployment scaling beyond a single pod (for HA and rolling restarts) and does not behave well in serverless environments such as Google Cloud Run. A solution could be to store state in an encrypted cookie using e.g. gorilla/sessions or gin-contrib/sessions.

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

1 participant