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

Preserve the framework dependencies in the reporting structure #636

Merged
merged 2 commits into from
Jun 29, 2023

Conversation

jaym
Copy link
Contributor

@jaym jaym commented Jun 27, 2023

There are major changes here:

First, compliance frameworks were not connected to the root reporting job. On the backend, we iterate from the root reporting job to figure out all reporting jobs that get saved. Without this, we don't save the compliance frameworks or controls

Second change is the structure of the framework dependencies is preserved in the reporting jobs. For example, asset frameworks point to the space framework which point to the global framework which point to some actual frameworks. This keeps it consistent with the way handle policies.

One issue I ran into was that we have space/asset frameworks and space/asset policies. I chose to not create separate reporting jobs for those because having multiple reporting jobs with the same query is likely to break something. Instead, the policies would just get attached to the existing policy jobs, but the impact is set to unscored

reporting_structure

jaym added 2 commits June 27, 2023 15:09
Compliance frameworks were not connected to the root of the graph. On
the backend, we iterate from the root to figure out all reporting jobs
that get saved. Without this, we don't save the compliance frameworks or
controls

Not done here, but we should also be preserving the framework
dependencies in the graph so that its consistent to how policies work
Create reporting jobs for the chain of frameworks. For example, asset
frameworks point to the space framework which point to the global framework
which point to some actual frameworks.

One issue I ran into was that we have space/asset frameworks and
space/asset policies. I chose to not create separate reporting jobs for
those because having multiple reporting jobs with the same query is
likely to break something. Instead, the policies would just get attached
to the existing policy jobs, but the impact is set to unscored
Copy link
Member

@arlimus arlimus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you for wiring this up @jaym !

@jaym jaym merged commit 96a604f into main Jun 29, 2023
7 checks passed
@jaym jaym deleted the jdm/connect-graph branch June 29, 2023 15:13
@github-actions github-actions bot locked and limited conversation to collaborators Jun 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants