superuser does not have super permissions via docker registry
GitLab has "admin" user concept, which allows user to do things without being member of the project.
Seems this does not work with docker registry.
I run cleanup script that deletes docker images via registry v2 api, and the authorization token does not have enough permissions to DELETE.
Adding user to every group is not maintainable, especially user repositories. And it seems that need to add the user to every group as the group inheritance doesn't give access as well.
So far I've just restarted registry with auth disabled. Very dirty workaround
# /var/opt/gitlab/registry/config.yml
...
#auth:
# token:
# realm: https://gitlab.example.net/jwt/auth
# service: container_registry
# issuer: omnibus-gitlab-issuer
# rootcertbundle: /var/opt/gitlab/registry/gitlab-registry.crt