Update gitlab-glaz to 2.1.0

What does this MR do and why?

  • Updates the gitlab-glaz gem from 2.0.0 to 2.1.0 in Gemfile, Gemfile.lock, and Gemfile.next.lock. No other gems change, and the pinned glaz-module revision is unchanged.
  • Version 2.1.0 adds a :key field to every entry of Gitlab::Glaz.roles. It is the role's stable machine identifier (for example "artifact_admin", "organization_admin"), next to :id, :name, and :permissions. The change is additive only.
  • Switches both Authz role catalogues to resolve roles by that key instead of matching on the display name:
    • Authz::ArtifactRegistry::Roles drops the hand-maintained NAMES table and builds its id lookups from role[:key]. It keeps a KEYS allowlist of the four Artifact Registry roles, so platform roles such as organization_admin still resolve to nil. uuid_for and name_for keep their signatures and return values.
    • Authz::Organizations::Roles replaces ORGANIZATION_ADMIN_NAME with ORGANIZATION_ADMIN_KEY = 'organization_admin' and finds the role by key. organization_admin_uuid is unchanged for callers.
  • Both specs now stub roles with a key, and a new test checks that the Artifact Registry catalogue returns nil for the platform role.
  • No user-facing behavior change. Specs for both catalogues and their callers pass locally.

References

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

🤖 Generated with Claude Code

Edited by Bojan Marjanovic

Merge request reports

Loading
Loading