Skip to content

Share state across app instances #48

Description

@praseodym

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions