Skip to content

Commit

Permalink
Merge branch 'editor-revision-2024-10-30' into remediation-categories
Browse files Browse the repository at this point in the history
  • Loading branch information
tschmidtb51 authored Oct 25, 2024
2 parents 8f3f521 + 6dcd73f commit cc8ba4f
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 78 deletions.
10 changes: 6 additions & 4 deletions csaf_2.1/prose/edit/src/distributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ Redirects SHOULD NOT be used. If they are inevitable only HTTP Header redirects

> Reasoning: Clients should not parse the payload for navigation and some, as e.g. `curl`, do not follow any other kind of redirects.
If any redirects are used, there SHOULD not be more than 5 and MUST NOT be more than 10 consecutive redirects.

### Requirement 7: provider-metadata.json

The party MUST provide a valid `provider-metadata.json` according to the schema
Expand Down Expand Up @@ -128,8 +130,8 @@ In the security.txt there MUST be at least one field `CSAF` which points to the
If this field indicates a web URI, then it MUST begin with "https://" (as per section 2.7.2 of [cite](#RFC7230)).
See [cite](#SECURITY-TXT) for more details.

> The security.txt was published as [cite](#RFC9116) in April 2022. At the time of this writing,
> the `CSAF` field is in the process of being officially added.
> The security.txt was published as [cite](#RFC9116) in April 2022.
> The `CSAF` field was officially added through the IANA registry.
*Examples 1:*

Expand All @@ -148,7 +150,7 @@ If one of the URLs fulfills requirement 9, this MUST be used as the first CSAF e
### Requirement 9: Well-known URL for provider-metadata.json

The URL path `/.well-known/csaf/provider-metadata.json` under the main domain of the issuing authority serves directly
the `provider-metadata.json` according to requirement 7.
the `provider-metadata.json` according to requirement 7. That implies that redirects SHALL NOT be used.
The use of the scheme "HTTPS" is required. See [cite](#RFC8615) for more details.

*Example 1:*
Expand All @@ -160,7 +162,7 @@ The use of the scheme "HTTPS" is required. See [cite](#RFC8615) for more details
### Requirement 10: DNS path

The DNS record `csaf.data.security.domain.tld` SHALL resolve as a web server which serves directly
the `provider-metadata.json` according to requirement 7.
the `provider-metadata.json` according to requirement 7. That implies that redirects SHALL NOT be used.
The use of the scheme "HTTPS" is required.

### Requirement 11: One folder per year
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,29 +51,28 @@ and `x_generic_uris`, one is mandatory.
"cpe": {
// ...
},
"hashes": [
"hashes": {
// ...
],
"model_numbers": [
},
"model_numbers": {
// ...
],
},
"purl": {
// ...
},
"sbom_urls": [
"sbom_urls": {
// ...
],
"serial_numbers": [
},
"serial_numbers": {
// ...
],
"skus": [
},
"skus": {
// ...
],
"x_generic_uris": [
},
"x_generic_uris": {
// ...
]
}
}
}
```

##### Full Product Name Type - Product Identification Helper - CPE
Expand Down
23 changes: 3 additions & 20 deletions csaf_2.1/prose/edit/src/tests-02-optional.md
Original file line number Diff line number Diff line change
Expand Up @@ -322,27 +322,10 @@ The relevant paths for this test are:

> The hash algorithm `sha1` is used in one item of hashes without being accompanied by a second hash algorithm.
### Missing TLP label (deprecated){#missing-tlp-label}
### Missing TLP label (obsolete){#missing-tlp-label}

It MUST be tested that `/document/distribution/tlp/label` is present and valid.

> TLP labels support the machine-readability and automated distribution.
The relevant path for this test is:

```
/document/distribution/tlp/label
```

*Example 1 (which fails the test):*

```
"distribution": {
"text": "Distribute freely."
}
```

> The CSAF document has no TLP label.
> The TLP label is now required by the schema. Therefore, the optional test is obsolete.
> This section is kept to document that change and keep the numbering of the remaining sections stable.
### Missing Canonical URL

Expand Down

This file was deleted.

10 changes: 0 additions & 10 deletions csaf_2.1/test/validator/data/testcases.json
Original file line number Diff line number Diff line change
Expand Up @@ -1228,16 +1228,6 @@
}
]
},
{
"id": "6.2.10",
"group": "optional",
"failures": [
{
"name": "optional/oasis_csaf_tc-csaf_2_1-2024-6-2-10-01.json",
"valid": true
}
]
},
{
"id": "6.2.11",
"group": "optional",
Expand Down
2 changes: 1 addition & 1 deletion csaf_2.1/test/validator/testcases_json_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"title": "Number of the test",
"description": "Contains the section number of the test in the specification.",
"type": "string",
"pattern": "^6\\.(([1-3]\\.[1-9])|([12]\\.1[0-9])|(3\\.1[0-2])|([12]\\.2[0-6])|(2\\.27)|(1\\.2[8-9])|(1\\.27\\.([1-9]|10|11))|(1\\.3[0-6]))$"
"pattern": "^6\\.(([1-3]\\.[1-9])|(1\\.10)|([12]\\.1[1-9])|(3\\.1[0-2])|([12]\\.2[0-6])|(2\\.27)|(1\\.2[8-9])|(1\\.27\\.([1-9]|10|11))|(1\\.3[0-6]))$"
},
"valid": {
"title": "List of valid examples",
Expand Down

0 comments on commit cc8ba4f

Please sign in to comment.