Skip to content

Add OpenSCAP compliance card to host details - #615

Open
sbernhard wants to merge 1 commit into
theforeman:masterfrom
ATIX-AG:add_card
Open

sbernhard wants to merge 1 commit into
theforeman:masterfrom
ATIX-AG:add_card

Conversation

@sbernhard

@sbernhard sbernhard commented Jul 7, 2026 •

Copy link
Copy Markdown
Contributor

The compliance card has

  • Show last state
  • Show Rule result of last report
  • Show date of last report and link to last report
  • Show how many policies. If you click on the Policy count you see all used policies and the source (host, hostgroup). Additionally, its possible to set / unset directly to host.

Card:
image

Modal view to assign / unassign policies. It shows host and host group assignments and allows to assign / unassign direct host assignments:
image

@sbernhard

sbernhard commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor Author

Needs to be rebased after #617 was merged

@sbernhard

Copy link
Copy Markdown
Contributor Author

@Lukshio / @MariaAga do you have some thoughts about this?

@MariaAga

Copy link
Copy Markdown
Member

@sbernhard Hi! we will look and review it, in these 2 weeks we dont have capacity because of other commitments, but we will probably have time after

@sbernhard

sbernhard commented Jul 30, 2026 •

Copy link
Copy Markdown
Contributor Author

@sbernhard Hi! we will look and review it, in these 2 weeks we dont have capacity because of other commitments, but we will probably have time after

Thanks @MariaAga. I think this can also improve #616, too :)

@sbernhard

Copy link
Copy Markdown
Contributor Author

Rebased and tests are green again @MariaAga
Same as for the performance improvement in #614 (it has 2 commits, therefore the pipeline is red)

@michalgritzbach

Copy link
Copy Markdown

Hi @sbernhard @MariaAga, any update on this?

@MariaAga

MariaAga commented Sep 1, 2026

Copy link
Copy Markdown
Member

Hi, we are looking into reviewing this between our internal teams. I dont know when it will happen

@sbernhard
sbernhard force-pushed the add_card branch 3 times, most recently from 75aac0f to 4d0388a Compare September 7, 2026 16:46
@sbernhard

Copy link
Copy Markdown
Contributor Author

Improved modal view so that it displays:

  • no policy available -> if there is no polixy at all available
  • All policies assigned -> if no policy can be selected because all are already used
  • otherwise: Select Policy

@sbernhard
sbernhard marked this pull request as ready for review September 7, 2026 16:56
@Lukshio

Lukshio commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

@sbernhard I didn't check it to the detail, but is this something similar? #623

@sbernhard

sbernhard commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor Author

@sbernhard I didn't check it to the detail, but is this something similar? #623

The PR #623 is completely different.

This PR changes

  • each host, in host details gets a openscap compliance card which shows some openscap details like the compliance state, when was the last last report received etc.
  • adds a small form to add / remove policies to this individual host at the host details page.

I have just rebased. You should give it a try using the generated RPM :-)

Add a compliance card to the new host details overview using the existing
OpenSCAP APIs. The card shows the compliance status, latest rule result
counts, latest ARF report link, and assigned policy count.

Add a policy management modal that lists resolved policies with their source,
allows unsetting direct host policy assignments, and allows assigning an
available policy directly to the host. Keep hostgroup and inherited policies
read-only because the existing API only supports direct host assignment from
this context.

Co-authored-by: OpenAI Codex <codex@openai.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants