so that in upstream the prefix is registry.gitlab.com/gitlab-org/security-products/analyzers,while in jihu it will be gitlab-jh-public.tencentcloudcr.com/security-products/analyzers.
But here I noticed that for cluster-image-scanning image it's actually uploaded to gitlab.com/security-products so the previous trick doesn't work.
I'm wondering if this is the trend of moving all production artifacts to gitlab.com/security-products? Shall we introduce another prefix in the Ci::TemplateHelper?
Thanks,
Fu
By Fu Zhang on 2021-11-08T00:27:36 (imported from GitLab)
Thanks for raising this issue. It looks like https://gitlab.com/gitlab-org/gitlab/-/issues/338300 did move the image from registry.gitlab.com/gitlab-org/security-products/analyzers/ to registry.gitlab.com/security-products/cluster-image-scanning.
@qianzhangxa@prajnamas - Can you create logic to manage the override for specific templates to gitlab.com/security-products as they are migrated over like Jobs/SAST-IaC.latest.gitlab-ci.yml?
By Kyle Wiebers on 2021-11-08T19:21:01 (imported from GitLab)
@hfyngvason Actually I did try to fix cluster-image-scanning in the 165 MR, but soon I realized it has a brand new address so it's been reverted.
As @kwiebers said, if there will be more movements for security-products, do you think that we should introduce another prefix in Ci::TemplateHelper? At least for now, cluster-image-scanning needs such a prefix.
By Fu Zhang on 2021-11-09T13:14:40 (imported from GitLab)
if there will be more movements for security-products, do you think that we should introduce another prefix in Ci::TemplateHelper? At least for now, cluster-image-scanning needs such a prefix
But I do see that there are a couple of instances of the registry hardcoded in the tests (for other templates), which should probably be extracted into a test helper: