Pass environments registry credentials to service

is it possible for service to retrieve registry credentials for environment where the service runs or all environments?
Something similar to loadbalancers ability to access SSL certificates.

My usecase would be for lightweight service that checks if all containers in environment run same image versions, latest tags etc.

Yes, this is possible.

A container can retrieve registry credentials on other containers because it’s exposed on the API. The image name can be found using a curl and an API key.