ROX-33563: Migrate scanner image to ubi-micro#17430
Conversation
|
Images are ready for the commit at e5ba21f. To use with deploy scripts, first |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #17430 +/- ##
=======================================
Coverage 49.39% 49.39%
=======================================
Files 2745 2745
Lines 207225 207225
=======================================
Hits 102368 102368
- Misses 97265 97266 +1
+ Partials 7592 7591 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
/retest |
The scanner-v4-indexer and scanner-v4-matcher containers were crashing immediately with exit code 1 because the migration to ubi8-micro removed essential shell utilities that the entrypoint scripts depend on. Root cause: - entrypoint.sh uses #!/usr/bin/env bash - ubi8-micro has no utilities pre-installed (unlike ubi8-minimal) - The container fails immediately when trying to execute the bash script This fix applies the same multi-stage build pattern used in: - PR #17406 for the main image - commit cc55af9 for scanner-v4-db Changes: 1. Added dependency_builder stage using ubi8 (full) 2. Install bash, coreutils, findutils, util-linux, ca-certificates to /out/ 3. Copy dependencies from builder to ubi8-micro final stage 4. Removed microdnf/rpm operations from final stage (not available in ubi8-micro) 5. Changed BASE_IMAGE from ubi8-minimal to ubi8-micro This enables the entrypoint scripts to execute successfully while maintaining the minimal footprint of ubi8-micro. Fixes: ROX-30858 Related: #17406, #17430 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
|
/retest |
2 similar comments
|
/retest |
|
/retest |
|
Images are ready for the commit at 39afde2. To use with deploy scripts, first |
The scanner-v4-indexer and scanner-v4-matcher containers were crashing immediately with exit code 1 because the migration to ubi8-micro removed essential shell utilities that the entrypoint scripts depend on. Root cause: - entrypoint.sh uses #!/usr/bin/env bash - ubi8-micro has no utilities pre-installed (unlike ubi8-minimal) - The container fails immediately when trying to execute the bash script This fix applies the same multi-stage build pattern used in: - PR #17406 for the main image - commit cc55af9 for scanner-v4-db Changes: 1. Added dependency_builder stage using ubi8 (full) 2. Install bash, coreutils, findutils, util-linux, ca-certificates to /out/ 3. Copy dependencies from builder to ubi8-micro final stage 4. Removed microdnf/rpm operations from final stage (not available in ubi8-micro) 5. Changed BASE_IMAGE from ubi8-minimal to ubi8-micro This enables the entrypoint scripts to execute successfully while maintaining the minimal footprint of ubi8-micro. Fixes: ROX-30858 Related: #17406, #17430 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
7ec8ef2 to
8761059
Compare
The scanner-v4-indexer and scanner-v4-matcher containers were crashing immediately with exit code 1 because the migration to ubi8-micro removed essential shell utilities that the entrypoint scripts depend on. Root cause: - entrypoint.sh uses #!/usr/bin/env bash - ubi8-micro has no utilities pre-installed (unlike ubi8-minimal) - The container fails immediately when trying to execute the bash script This fix applies the same multi-stage build pattern used in: - PR #17406 for the main image - commit cc55af9 for scanner-v4-db Changes: 1. Added dependency_builder stage using ubi8 (full) 2. Install bash, coreutils, findutils, util-linux, ca-certificates to /out/ 3. Copy dependencies from builder to ubi8-micro final stage 4. Removed microdnf/rpm operations from final stage (not available in ubi8-micro) 5. Changed BASE_IMAGE from ubi8-minimal to ubi8-micro This enables the entrypoint scripts to execute successfully while maintaining the minimal footprint of ubi8-micro. Fixes: ROX-30858 Related: #17406, #17430 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
53adcac to
400c63d
Compare
|
| GitGuardian id | GitGuardian status | Secret | Commit | Filename | |
|---|---|---|---|---|---|
| 28930366 | Triggered | Generic High Entropy Secret | 557483a | sensor/kubernetes/fake/secret.go | View secret |
🛠 Guidelines to remediate hardcoded secrets
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Replace and store your secret safely. Learn here the best practices.
- Revoke and rotate this secret.
- If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.
To avoid such incidents in the future consider
- following these best practices for managing and storing secrets including API keys and other credentials
- install secret detection on pre-commit to catch secret before it leaves your machine and ease remediation.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
Complete scanner UBI 9 upgrade while preserving ubi-micro architecture. Resolved conflicts in scanner Dockerfiles: - Updated all ubi8 references to ubi9 - Updated releasever from 8 to 9 - Preserved package_installer pattern with ubi9/ubi-micro - Updated save-dir-contents path to /etc/pki/ca-trust/source - Kept direct FROM statements (not ARG-based) User request: merge master and resolve conflicts after UBI 9 upgrade. Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
|
Images are ready for the commit at 99d643f. To use with deploy scripts, first |
dcaravel
left a comment
There was a problem hiding this comment.
Few nits for consideration - also believe title of PR should read ubi9-micro (currently says ubi8)
Thanks for taking care of this!
Signed-off-by: Tomasz Janiszewski <[email protected]>
…eed them Signed-off-by: Tomasz Janiszewski <[email protected]>
Signed-off-by: Tomasz Janiszewski <[email protected]>
Signed-off-by: Tomasz Janiszewski <[email protected]>
|
/retest |
Signed-off-by: Tomasz Janiszewski <[email protected]>
|
/retest |
|
@janisz: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
/retest |
The mapping files were copied to /run/mappings/ instead of /out/run/mappings/, causing them to be excluded from the final image since only /out/ is copied in the final stage. This caused scanner-v4-indexer to crash on startup with "no such file or directory". Aligns with the correct path already used in konflux.Dockerfile. Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
These packages may not be needed for scanner operation, reducing image size and attack surface. Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
Cleanup package list to match Dockerfile changes. Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
Signed-off-by: Tomasz Janiszewski <[email protected]>
|
/konflux-retest main-on-push |
1 similar comment
|
/konflux-retest main-on-push |
|
/konflux-retest operator-bundle-on-push |
Migrate scanner images from ubi8-minimal to ubi8-micro following the same best practices used for collector migration.
Tested:
Then check in UI if everything is healthy and followed and check if scanner is working