-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[AAP-37476]: Validate DE Urls #1188
Conversation
8c2e523
to
3320cd0
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
@@ Coverage Diff @@
## main #1188 +/- ##
==========================================
+ Coverage 93.34% 93.35% +0.01%
==========================================
Files 261 261
Lines 14875 14908 +33
==========================================
+ Hits 13885 13918 +33
Misses 990 990
Flags with carried forward coverage won't be shown. Click here to find out more.
|
bed05a8
to
a14c1ed
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at the spec I'm not sure if we should support as well sha512. Anycase LGTM
@Alex-Izquierdo great note! I just pushed a commit to ensure this case is covered as well. Better sooner than later |
Quality Gate passedIssues Measures |
The 'image_url' field is incorrect in the decision_enrivonment tests and it does not correspond to valid OCI image/tag/naming standards. Proper validation of the image_url field was introduced here [1], and the tests of the collection must reflect it. [1] ansible/eda-server#1188
This PR adds validation to DE image URLs.
Upon checking this issue out, we only had validation on registry credentials, and no validation on DE's.
This PR ensures we have the same validation on both registry credential URLs and Decision environments.
This PR also updates the validation to ensure that if a DE URL with digest is specified, that this is a valid specification.