Skip to content
This repository was archived by the owner on May 27, 2024. It is now read-only.

Timing issue in automatic user creation #21

@mikkolehtisalo

Description

@mikkolehtisalo

Problem description

Automatic user creation may create several users with the same username.

Steps to reproduce the problem

  1. Enable automatic user creation
  2. Issue two valid SSO authentication requests at the same time (down to couple milliseconds probably)
  3. Two users with the same username get created
  4. Authentication fails with Shiro exceptions saying "There was more than one matching user for username XXXXX. This should never happen.";
  5. See two users in user management UI with the same username

Environment

  • Graylog Version: 2.1.x
  • Plugin Version: 1.0.2

I am afraid this issue is very hard to reproduce reliably, because the timing of the couple requests has to be very exact. (Both requests probably must pass the user load test at the realm logic...)

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