Env var `CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX` is filled even if Dependency Proxy is unavailable
Problem
Within GitLab CI/CD pipelines, even when the Dependency Proxy is unavailable, e.g. within Projects in a personal Namespace, the env var CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX
is generated to a seemingly sensible value.
GitLab CI/CD pipelines that use this env var for image fetching subsequently fail unpredictably.
See https://github.com/containers/podman/issues/20343 for a case.
Solution directions
- Provide env vars to check which GitLab features are effectively available (enabled by the user and available).
- Unset or set to an empty value env vars that are relevant only for disabled features.
Edited by Sander Maijers