Share the OCI auth challenge parser
What does this MR do and why?
Moves the Www-Authenticate Bearer challenge parser and token scope builder out of VirtualRegistries::Container::Upstream into Gitlab::Oci::AuthChallenge, under ee/lib. The parser specs move with it, and the methods carry YARD tags.
The OCI registry client later in this series needs the same parser. Moving it first keeps the later MRs free of virtual registry edits.
Safe alone: it is a move with no behavior change.
This touches the virtual registries container upstream model, so it needs a review from that team.
Part 1 of 7. Next: feature/pmdb-oci-2-settings.
Related to #642401
How to set up and validate locally
bundle exec rspec ee/spec/lib/gitlab/oci/auth_challenge_spec.rb ee/spec/models/virtual_registries/container/upstream_spec.rbMR acceptance checklist
- The specs that cover this slice pass at
2ff77d0b83: 521 examples in 11 spec files, 0 failures. - RuboCop reports no offenses on the changed files.
An AI coding assistant wrote this change. The assistant also ran RuboCop on the changed files and the specs above on a self-managed GitLab development instance on a test VM.