-
Notifications
You must be signed in to change notification settings - Fork 541
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
ImageName should throw exception when digest length is too small #2557
ImageName should throw exception when digest length is too small #2557
Conversation
Eclipse JKube CI ReportStarted new GH workflow run for #2557 (2024-01-24T05:15:01Z) ⚙️ JKube E2E Tests (7635757079)
|
|
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #2557 +/- ##
=============================================
+ Coverage 59.36% 69.82% +10.46%
- Complexity 4586 4901 +315
=============================================
Files 500 474 -26
Lines 21211 19173 -2038
Branches 2830 2480 -350
=============================================
+ Hits 12591 13387 +796
+ Misses 7370 4570 -2800
+ Partials 1250 1216 -34 ☔ View full report in Codecov by Sentry. |
Hii @rohanKanojia when i am updating the digest regex with mentioned in the issue [A-Za-z][A-Za-z0-9](?:[-_+.][A-Za-z][A-Za-z0-9])*[:][[:xdigit:]]{32,} some tests in ImageNameFullNameParseTest is failing but when i updated digest regex with "^(?:sha256:)?[a-fA-F0-9]{64}$" all test cases passed in ImageNameFullNameParseTest....can you please review it? |
This issue aimed to align our regex to match what's in docker source. We need to investigate why those tests have started failing. Are those tests having valid SHA 256 digests in expectations? Or the digest regex that I mentioned in the issue is not the correct one? |
Hi @rohanKanojia i have updated the digest's regex to match with whats in docker distribution .....but some test cases are failing...this invalid digest repo@sha256:ffffffffffffffffffffffffffffffffff which you mentioned in the issue was passing previously is failing now and some more test cases are failing for example... 19@sha256:b7d8650e04b282b9d7b94daedf38321512f9910bce896cd40ffa15b1b92bab17' is invalid:
'127.0.0.1:5000/hello-world@sha256:b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9' is invalid:
if the digest's regex is correct than i think these failing test cases do not have valid SHA 256 digests |
@Devashishbasu : Do the tests pass if you replace existing digests with some valid doest? |
fixes #2543