-
Notifications
You must be signed in to change notification settings - Fork 102
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 Validation Component
Constraints
#1158
base: develop
Are you sure you want to change the base?
Conversation
0d89a8e
to
95003ff
Compare
95003ff
to
c64a545
Compare
|
And where did this bit come from, @wandmagic? |
I just wrote it, it would be a fix if component uuid links are indeed supposed to be prefixed with a hash since i believe the upstream constraint is broken |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am sorry it took a while for me to figure this one and not update sooner in the day, @Gabeblis. Apologies. So I reviewed the information at hand, our out-of-band example SSP in Google Drive we are using to coordinate the work, and the upstream NIST documentation.
For now, and I can adjust the AC in the issue, for now we should adjust rel[@link="proof-of-compliance"]
to align with upstream documentation and use rel[@link="validation-details"]
, like so. This approach can work around a conflicting upstream constraint, while also more closely aligning by name with other associated props.
<component uuid="11111111-0000-4000-a000-000000000001" type="hardware">
<title>Product Name</title>
<description>
<p>Describe the product's function.</p>
</description>
<link rel="validation" href="#22222222-0000-4000-a000-000000000002" />
<status state="operational" />
</component>
<component uuid="22222222-0000-4000-a000-000000000002" type="validation">
<title>Validation Name</title>
<description>
<p>Describe the validation.</p>
</description>
<prop name="validation-type" value="fips-140-2" />
<prop name="validation-reference" value="xxxx" />
<link rel="validation-details" href="https://csrc.nist.gov/projects/cryptographic-module-validation-program/certificate/xxxx" />
<status state="operational" />
</component>
Whether or not the original link[@rel]
is more appropriately named, I will file an upstream issue and stick with that for now, let's move forward with this approach.
yes this is better than conforming to the broken upstream constraint |
19a7514
to
85b37fe
Compare
I implemented your suggested approach, and the |
One of the things I noticed from our use of GHA daily over the last few years is problem with egress traffic (from GHA to the outside hosts, that means in github.com even but also nist.gov and anywhere outside the network of the GHA runner) has occassional drops or blocking. Sometimes, that could be the cause of filtering on the GHA side. Other times, especially with csrc.nist.gov and other DOC hosts, I know they have a centralized hosting system that has network problems or maintenance windows (we used to check links upstream in OSCAL on a schedule; you'd be surprised that link failures en masse happened with that every few days). Let's re-run the test and see what happens. |
@Gabeblis rebase and we can merge this PR in, thank you, and nice work as always. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs a rebase, but aside from that, this is good to go.
85b37fe
to
4ca3185
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!
Committer Notes
Purpose
The purpose of this PR is to add the
Validation Component
constraints from issue #1156.Changes
Added 4 constraints:
component-has-proof-of-compliance-link
component-has-valid-proof-of-compliance-link
component-has-validation-reference
validation-reference-has-correct-format
All Submissions:
By submitting a pull request, you are agreeing to provide this contribution under the CC0 1.0 Universal public domain dedication.