-
Notifications
You must be signed in to change notification settings - Fork 71
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
[REQ] Add Oracle Linux as supported OS #190
Comments
looks like there are
|
Oracle was attempted to be added in PR #207 but the PR had to be closed due to an update error. For some reason, Copa will throw an error similar to the one below despite no fips packages being present in the non-fips version of Oracle.
Note that this error appears to be present on all Oracle 7 and 8 versions. I've been unable to reproduce this bug with any Oracle 9 releases. Reproducing The Bug
Download the Copa codebase from my fork and run
Run the Trivy scan and save output in the release folder. This is just for testing to simplify commands.
Attempt to patch the image with the
If you get an error that says
We should get the error shown at the top of this comment. What makes this bug rather odd is that the package throwing the error is a non-fips package. To verify this we run the following commands.
There is a dependency on The Root Cause & The SolutionThis issue is caused by Oracle shipping up to 3 versions of system packages for different purposes:
But Oracle ships ESLAs and OpenSCAP (OVAL) data for all three flavours. Scanning all available ESLAs will result in false positives if the ELSA is for a different flavor than the one installed. Scans should do a heuristic to determine whether to apply an ELSA to the system, with the following logic:
The above explanation was found in this issue: aquasecurity/trivy#1967 |
Due to the non-standard way that Oracle handles this, I propose the Copa team to take one of three implementations.
I believe options one and two to be the best approaches, but Copa could modify the way packages are patched if the team believes that is the best route to take. Any input on this @ashnamehrotra @sozercan? |
Thank you for investigating this @MiahaCybersec! I agree, I don't think we should hard code this edge case scenario in Copa. Depending on the priority of this issue, it could be worth adding a patch to Trivy upstream, @sozercan may have a better idea. |
@ashnamehrotra will this work with the new update all functionality? is blocker only on the scanner front? |
@sozercan yes that is correct, with update all we wouldn't get this issue. |
What kind of request is this?
New feature
What is your request or suggestion?
Currently, Oracle Linux (https://hub.docker.com/_/oraclelinux) cannot be patched and the following error message is shown:
Please, add support for Oracle Linux.
Note: Oracle Linux 7 uses
yum
, while starting with version 8dnf
is used as package manager.The text was updated successfully, but these errors were encountered: