Skip to content

Share state across app instances #48

@praseodym

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.

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