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 has-inventory-items #899

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

DimitriZhurkin
Copy link

Committer Notes

  1. Add the has-inventory-items constraint, which checks that a FedRAMP SSP contains two or more inventory items.
  2. In the ssp-all-VALID.xml file, add the second <inventory-item> node to make the SSP valid.

All Submissions:

By submitting a pull request, you are agreeing to provide this contribution under the CC0 1.0 Universal public domain dedication.

@DimitriZhurkin DimitriZhurkin requested a review from a team as a code owner November 13, 2024 16:53
@DimitriZhurkin DimitriZhurkin self-assigned this Nov 13, 2024
@DimitriZhurkin
Copy link
Author

Related issue #881.

Copy link

@Gabeblis Gabeblis left a comment

Choose a reason for hiding this comment

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

This is good work, just requires some small tweaks to meet the requirements per issue #881 and fixing the .feature file.

| has-network-architecture |
| has-network-architecture-diagram |
| has-network-architecture-diagram-caption |
| has-network-architecture-diagram-description |
| has-network-architecture-diagram-link |
| has-network-architecture-diagram-link-rel |
| has-network-architecture-diagram-link-rel-allowed-value |
| has-published-date |

Choose a reason for hiding this comment

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

Not sure why these constraints (has-published-date, responsible-party-prepared-by, responsible-party-prepared-by-location-valid, role-defined-prepared-by) were deleted from the feature file. Are you able to run make test and commit the changes to the feature file so that these get added back.

Copy link
Contributor

Choose a reason for hiding this comment

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

I helped him rebase and it seems I did a so-so job.

<context>
<metapath target="/system-security-plan/system-implementation"/>
<constraints>
<expect id="has-inventory-items" target="." test="count(inventory-item) >= 2" level="ERROR">

Choose a reason for hiding this comment

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

Issue #881 proposed that this constraint should check if there is at least 1 inventory item. Is there a reason that we are checking for at least 2?

Copy link
Author

Choose a reason for hiding this comment

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

According to Brian, "FedRAMP requires at least two instances of a system":
#881 (comment)

Choose a reason for hiding this comment

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

That's fair. Ignore my previous comments then. The constraint message will need to be adjusted to align with what the constraint is testing

@aj-stein-gsa aj-stein-gsa linked an issue Nov 15, 2024 that may be closed by this pull request
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Check that SSP has inventory items
4 participants