-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
security.txt not well-formatted #94
Comments
Is this really a problem? RFC 9116, 2.2 allows both As I see, OpenPGP Message Format (RFC 4880) canonicalizes the signed text documents by converting
This is probably rather a bug in the sectxt that is too strict regarding the ABNF Grammar, which is caused by a mistake in the ABNF Grammar definition. If so, I would like to report errata to the RFC 9116. |
My |
Both https://securitytxt.org/.well-known/security.txt & the file on the repository have Here's some tests to confirm both Original
Convert to
Back to original:
This confirms the error is in the ABNF grammar rather than with the file. |
I was about to report the errata to RFC 9116, but it got more interesting as the ABNF Grammar also states:
The requirement of
Considering that, there is a dilemma:
Please share your ideas on which of these approaches would be better, @eikendev @EdOverflow @nightwatchcyber! |
Even if RFCs 2048 and 5198 are referenced, this RFC can still override them somewhat which is what we tried to do with section 2.2. IMHO the best course of action would be an errata to the ABNF but something similar to this:
|
@yakovsh I like that idea as it would handle the issue keeping the errata report simple. The result would be less strict validation as intended in the section 2.2 that would be more practical, too. Redefining I will probably file the errata report later during the weekend. If confirmed, the report can be used to adjust the validators (like eikendev/sectxt) to comply with the intent of RFC 9116 rather than the strict ABNF grammar. |
This has now been reported as Errata ID 7743.
|
Hi everyone,
When I ran sectxt against securitytxt.org, I noticed that the security.txt file is not validated successfully.
Here you see that the first line ends with
\n
; but RFC 9116 specifies the cleartext header lines to end in\r\n
:My guess is that this happens due to Git, which normalizes newlines. You can ask Git to treat the file as binary using a
.gitattributes
file.Please note: this is also true for other lines of the cleartext message, except for the actual cleartext body.
The text was updated successfully, but these errors were encountered: