Closed janmedrek closed 1 year ago
Apart for the error, the PR images are found under europe-docker.pkg.dev/kyma-project/dev/*
, right?
@janmedrek we use ocm library to validate the component descriptor generated from the security config. Their pattern (defined in the componen descriptot v2 schema) does not allow for tags that don't follow semantic versioning. Therefore, to support "PR-XX" tags, we would have to implement our own logic. which will then require further test cases and maintenance down the line. Is this worth pursuing?
as @LeelaChacha described, since we are using ocm library, and the protecode are configured as external access layer, the image tag must follow the API definition - semantic version, and the validation is not only happened by calling ocm.Validate(descriptor) specifically, it also validate internally in the archive.Update(), which make it's basically impossible to get rid of.
- access:
imageReference: europe-docker.pkg.dev/kyma-project/prod/btp-manager:0.5.0
type: ociRegistry
labels:
- name: scan.security.kyma-project.io/type
value: third-party-image
version: v1
name: btp-manager
relation: external
type: ociImage
version: 0.5.0
@janmedrek , please clarify if this PR image is really needed feature request, otherwise I suggest we close this issue and make sure all image provided in protecode is released version.
We can not afford to introduce another maintenance overhead for the team (maintaining the check and diverging from the OCM library).
I will decrease the priority, move it back to the backlog and we will re-discuss that feature request.
This issue or PR has been automatically marked as stale due to the lack of recent activity. Thank you for your contributions.
This bot triages issues and PRs according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, the issue is closedYou can:
/remove-lifecycle stale
/close
If you think that I work incorrectly, kindly raise an issue with the problem.
/lifecycle stale
Description
When passing PR-XX tag the module cannot be built and a pattern error is returned.
Expected result
Module is built correctly.
Actual result
Steps to reproduce
YAML used:
Changing the
PR-97
tag tov20230807-ca19ea9a
solves the issue.