8000 Create mixed cluster tests with state-transfter for OIDC flows · Issue #40960 · keycloak/keycloak · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Create mixed cluster tests with state-transfter for OIDC flows #40960
Open
@ryanemerson

Description

@ryanemerson

Description

We should add tests that replicate the state-transfer which will occur when a Keycloak cluster is upgraded via a rolling update from one version to another. The workflow of the test should be as follows:

  1. Create a Keycloak cluster of 2 nodes [a,b] using v1 image
  2. Create realms, users etc
  3. Shutdown b and replace with v2 image resulting in mixed version cluster [a,b']
  4. Shutdown a and replace with v2 image resulting in v2 cluster [a',b']

At stages 3 & 4, we should ensure that the OIDC flow works as expected when interactions are initiated at each of the cluster nodes.

Discussion

No response

Motivation

The existing clustered OIDC test, ClusteredOAuthClientTest, ensures that OIDC flows work as expected once a cluster has already been formed. However, this does not take into account that state-transfer compatibility may break between two Keycloak nodes if the Infinispan patch version changes, which could result in data-loss.

Details

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0