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.
- GitLab.com SaaS