-
Notifications
You must be signed in to change notification settings - Fork 109
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
Lint for CABF SMIME 7.1.2.3.h - subjectAlternativeName SHOULD NOT be marked critical unless the subject field is an empty sequence #746
Conversation
…marked critical unless the subject field is an empty sequence.
A few observations: The SMIME BRs are not introducing any requirements above and beyond the requirements prescribed in RFC 5280. Section 4.1.2.6 says:
Given this, I believe this lint should be a RFC lint. Additionally, the status of the lint result returned upon encountering a non-critical SAN with empty subject name sequence should be an error. |
@CBonnell that quoted text is from 4.2.1.6 but I'm guessing this similarly written section in 4.1.2.6 implies the same behavior.
Does |
I believe that I agree with @zakird's interpretation that the branch should simply be removed from this lint altogether. The branch does not address the clause
Indeed, however the issue is irrespective as ZLint does not operate on the concept of "shared" lints between governing documents. That is to say, even if two documents happen to contain the same wording, they still receive their own version of the given lint. While it is indeed moderately redundant, it does drastically reduce the risk of a code change interfering with the interpretation of an unrelated governing document. So we are going to need a lint for this requirement under the CABF SMIME umbrella, irrespective if we happen to have (or need) a doppelganger lint for 5280.
(lint_subject_empty_without_san.go) It at least does something similar, albeit without criticality testing. |
That is an RFC lint at any rate, but I think I agree with you philosophically that if the SMIME BRs outline behavior, it makes sense for the lints designated for those standards to cover the described behavior, even if duplicative. |
Resolves #745. Address
subjectAlternativeName, all: SHALL NOT be marked critical unless subject field is empty (7.1.2.3.h)
from #712.Note that the SHALL NOT from the original tracker is incorrect. The full text of the section is...