GitLab Container Registry HTTP API V1

:hugs: Please help fill in this template with all the details to help others help you more efficiently. Use formatting blocks for code, config, logs and ensure to remove sensitive data.

Problem to solve

Describe your question in as much detail as possible:

I want to use the GitLab Container Registry HTTP API V1
docs/spec/gitlab/api.md Ā· master Ā· GitLab.org / container-registry Ā· GitLab.
Because there is some information like ā€œlast_published_atā€ which isnā€™t on the Container registry API. Weā€™re using the Premium SaaS plan. But I canā€™t seem to authenticate towards the api. The documentation says ā€œclients must obtain a JWT token from the GitLab APIā€. But from what I can read you can only do that in self hosting? Normally when I use the Container registry API I use a PAS. So I try to get a JWT token like this

curl --location ā€˜https://gitlab.com/jwt/auth?service=container_registry&scope=repository%{id}%3Apullā€™ \

ā€“header ā€˜Authorization: Bearer ā€™ \

Which I would then use in

curl --location ā€˜https://registry.gitlab.com/gitlab/v1/repositories/{id}/ā€™ \

ā€“header ā€˜Authorization: Bearer ā€™ \

But I canā€™t get the JWT token to work? Anybody have any experience with this

Versions

Please select whether options apply, and add the version information.