-
Notifications
You must be signed in to change notification settings - Fork 65
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
Integrate oscap-podman check in Preflight to allow certification of images in restricted-network registries #730
Comments
Here is a list of commands to automate - validated it with John F.
|
@tkrishtop this step is problematic. The image can be based on rhel9 and in theory also on rhel7. You will need to always choose a different oval feed otherwise you might get either false positives or false negatives. |
Hi @lslebodn, it's just a proposal for the moment and an invitation to the discussion, it's not a complete design.
We do an automated platform detection in DCI, but I'm curious about how it's done by Pyxis. Do you have a link on how Clair's code is used in the Pyxis backend?
A restricted network here means that you could go outside, call API, and have an access to the external world. Typically, only from one machine - jumpbox, and the cluster and its registry have no direct outside access. So outside -> inside access to the registry is impossible. |
Pyxis doesn't do the platform detection; it's done inside Clair (or perhaps Clair-Wrapper). Clair/Clair-Wrapper is not a part of Pyxis; it sends results to Pyxis. And @lslebodn is absolutely right - the choice of actual OVAL file(s) to pull is not trivial, and it might actually take multiple file pulls and more complex code in OpenSCAP to do the whole thing correctly. This is why it's an investigation. |
Maybe I got it wrong, but it seems like we only have to get a major distribution version, here is how we did it in DCI. I'm quite sure there is a nice way to do it in Go, but if not a simple shell should work here
|
Is your feature request related to a problem? Please describe.
This problem is not related to a Preflight tool. That's a feature request to integrate
oscap-podman
(health check) within Preflight.We have a partner who hosts their images in a private registry within the restricted network. To their clients, they sell images packed in 6GB tarball, they never provide external access to this registry. This partner wants to certify the images. It's impossible by design because of how health-check is implemented in cert UI. It tries to connect to a restricted network from outside and that's for sure impossible.
The workaround that we were told to use is to manually execute
oscap-podman
tool on each container, and send those reports to the certification team.Describe the solution you'd like.
The long-term solution would be to incorporate the functionality of
oscap-podman
into Preflight so that the initial health grading is performed on the partner's system during the cert process.The text was updated successfully, but these errors were encountered: