Skip to content
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

Add stigrefs after references from controls #11591

Merged
merged 1 commit into from
Feb 15, 2024

Conversation

jan-cerny
Copy link
Collaborator

@jan-cerny jan-cerny commented Feb 15, 2024

Move the step of adding a stigref to a later stage in the process, specifically from the moment rule.yml files are loaded to the time when references from controls are already added to rules.

Rationale:

This change will allow us in future to use control file as the source of stigids. Up until now we can't do it because adding stigrefs depend on existence of stigid key in references in the rule object. If we want to add stigids from control files we need to add stigrefs after stigids are added, which means after controls are processed instead of during processing the original rule.yml files.

Review Hints:

Build product and check the stigref keys in resolved rules (build/rhel9/rules) and/or in the built data stream.

Move the step of adding a stigref to a later stage in the process,
specifically from the moment rule.yml files are loaded to the time when
references from controls are already added to rules.

This change will allow us in future to use control file as the source of
stigids. Up until now we can't do it because adding stigrefs depend on
existence of stigid key in references in the rule object. If we want to
add stigids from control files we need to add stigrefs after stigids are
added, which means after controls are processed instead of during
original rule.yml files.
@jan-cerny jan-cerny added the Infrastructure Our content build system label Feb 15, 2024
@jan-cerny jan-cerny added this to the 0.1.73 milestone Feb 15, 2024
Copy link

Start a new ephemeral environment with changes proposed in this pull request:

Fedora Environment
Open in Gitpod

Oracle Linux 8 Environment
Open in Gitpod

Copy link

codeclimate bot commented Feb 15, 2024

Code Climate has analyzed commit ce132fb and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 58.3% (0.0% change).

View more on Code Climate.

@jan-cerny
Copy link
Collaborator Author

/packit build

1 similar comment
@Mab879
Copy link
Member

Mab879 commented Feb 15, 2024

/packit build

@Mab879 Mab879 self-assigned this Feb 15, 2024
@Mab879
Copy link
Member

Mab879 commented Feb 15, 2024

/packit retest-failed

@Mab879 Mab879 merged commit 5a900d5 into ComplianceAsCode:master Feb 15, 2024
44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Infrastructure Our content build system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants