Loading
Update gitlab-glaz to 2.1.0
What does this MR do and why?
- Updates the
gitlab-glazgem from 2.0.0 to 2.1.0 inGemfile,Gemfile.lock, andGemfile.next.lock. No other gems change, and the pinned glaz-module revision is unchanged. - Version 2.1.0 adds a
:keyfield to every entry ofGitlab::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::Rolesdrops the hand-maintainedNAMEStable and builds its id lookups fromrole[:key]. It keeps aKEYSallowlist of the four Artifact Registry roles, so platform roles such asorganization_adminstill resolve tonil.uuid_forandname_forkeep their signatures and return values.Authz::Organizations::RolesreplacesORGANIZATION_ADMIN_NAMEwithORGANIZATION_ADMIN_KEY = 'organization_admin'and finds the role by key.organization_admin_uuidis 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
- Upstream release MR: gitlab-org/ruby/gems/gitlab-glaz!67 (merged)
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
- I have evaluated the MR acceptance checklist for this MR.
Edited by Bojan Marjanovic