Skip to content

Start working on draft version 03. - #81

Merged
EdOverflow merged 64 commits into
masterfrom
securitytxt-03
Jan 15, 2018
Merged

EdOverflow merged 64 commits into
masterfrom
securitytxt-03

Conversation

@EdOverflow

Copy link
Copy Markdown
Member

austinheap and others added 30 commits October 10, 2017 17:49
updated issues shield/link
Conversion to markdown and adding IETF drafting tools
Removing non-markdown draft version
Adding IANA registration for .well-known and removing date
Adding IANA registry for extensibility to address issue #34
@EdOverflow EdOverflow added this to the securitytxt-03 milestone Jan 3, 2018
@EdOverflow
EdOverflow changed the base branch from master to draft January 3, 2018 20:59

@austinheap austinheap left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@EdOverflow ABNF's should be <pre>'d I believe if you wanted to get that into this draft

Comment thread draft-foudil-securitytxt.md Outdated
As stated in {{encryption}} and {{signature}}, both encryption keys
and external signature files SHOULD be loaded over HTTPS.

Web services MUST reserve the security.txt namespace to ensure no third-party can create a page with the "security.txt" name.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we explain what this means? "Web services" has multiple meanings. Are we talking about a multi user host like Wordpress.com or Blogger?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@nightwatchcyber, is there an RFC that we could reference here in order to define https://en.wikipedia.org/wiki/Web_service?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we first figure out what we mean by "web service"? In my mind I was thinking of a domain name or IP addresses providing connections via HTTP protocol on port 80, but not necessarily machine to machine only. What is your thought?

Comment thread draft-foudil-securitytxt.md Outdated
While URIs already include the ability to have both email address and phone
numbers via "mailto" and "tel" prefixes, allowing this information to be listed
without a prefix is intended for ease of use and readability.
The value MUST follow the general syntax described in {{!RFC3986}}. This means that "mailto" and "tel" URI schemes are required.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I wonder if the wording should be "This means that "mailto" and "tel" URI schemes MUST be used when specifying email addresses and telephone numbers"

## Web-based services

Web-based services SHOULD place the security.txt file under the /.well-known/ path; e.g. https://example.com/.well-known/security.txt.
Web-based services SHOULD place the security.txt file under the /.well-known/ path; e.g. https://example.com/.well-known/security.txt. A security.txt file located under the top-level path SHOULD either redirect to the security.txt file under the /.well-known/ path or be used as a fall back.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we want to explain what "fall back" means? Same for line 69 above.

Perhaps "A security.txt file located under the top-level path SHOULD redirect to the security.txt file under the /.well-known/. If it is not possible to place the security.txt file in the /.well-known/ path or setup a redirect, web-based services MAY place the file in the top-level path as a fall back option*"

Comment thread draft-foudil-securitytxt.md Outdated

The expected file format of the security.txt file is plain text as defined
in section 4.1.3 of {{!RFC2046}} and encoded in UTF-8.
in section 4.1.3 of {{!RFC2046}} and follow {{!RFC5198}}.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I would recommend to follow the convention of RFC 7252:
https://tools.ietf.org/html/rfc7252#section-3.2

and would suggest the following wording: "and is encoded using UTF-8 [RFC3629] in Net-Unicode form [RFC5198]"

Comment thread draft-foudil-securitytxt.md Outdated
@@ -257,11 +260,12 @@ implementors MUST ignore any fields they do not explicitly support.
# File Format Description

The expected file format of the security.txt file is plain text as defined

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Wondering also if we want to change "plain text" to read "plain text (MIME type "text/plain")"

Comment thread draft-foudil-securitytxt.md Outdated

A security.txt file only applies to the domain, subdomain, IPv4 or IPv6 address
it is located in.
A security.txt file only applies to the domain in the URI used to retrieve it, not to any of its subdomains or parent domains.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What about IP addresses? Only for that IP and not anything in the same subnet, above or below? Or is that self evident?

What about file systems?

Comment thread draft-foudil-securitytxt.md Outdated
/.well-known/ path ("/.well-known/security.txt") {{!RFC5785}} for web
properties. For file systems and version control repositories a .security.txt
file should be placed in the root directory. This text file contains 4 directives
properties. A security.txt file located under the website's top-level directory can either redirect to the security.txt file located under the /.well-known/ path or be used as a fall back. For web-based services, the instructions must be accessible via the Hypertext Transfer Protocol {{!RFC1945}} as a resource of Internet Media Type "text/plain;charset=utf8" {{!RFC1590}}. For file systems and version control repositories a .security.txt file SHOULD be placed in the root directory. This text file contains 4 directives

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We may want a new line before "This text file contains..."

Also "contains 4 directives" isn't really true anymore, maybe reword this as "contains multiple directives"?

properties. For file systems and version control repositories a .security.txt
file should be placed in the root directory. This text file contains 4 directives
properties. A security.txt file located under the website's top-level directory can either redirect to the security.txt file located under the /.well-known/ path or be used as a fall back. For web-based services, the instructions must be accessible via the Hypertext Transfer Protocol {{!RFC1945}} as a resource of Internet Media Type "text/plain;charset=utf8" {{!RFC1590}}. For file systems and version control repositories a .security.txt file SHOULD be placed in the root directory. This text file contains 4 directives
with different values. The "directive" is the first part of a field all the way up

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we want to reference how headers are parsed in other protocols?

Comment thread draft-foudil-securitytxt.md Outdated

A security.txt file only applies to the domain, subdomain, IPv4 or IPv6 address
it is located in.
A security.txt file only applies to the domain in the URI used to retrieve it, not to any of its subdomains or parent domains.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I also wonder if "only applies" may need to read strong as "MUST only apply"?

Comment thread draft-foudil-securitytxt.md Outdated
/.well-known/ path ("/.well-known/security.txt") {{!RFC5785}} for web
properties. For file systems and version control repositories a .security.txt
file should be placed in the root directory. This text file contains 4 directives
properties. A security.txt file located under the website's top-level directory can either redirect to the security.txt file located under the /.well-known/ path or be used as a fall back. For web-based services, the instructions must be accessible via the Hypertext Transfer Protocol {{!RFC1945}} as a resource of Internet Media Type "text/plain;charset=utf8" {{!RFC1590}}. For file systems and version control repositories a .security.txt file SHOULD be placed in the root directory. This text file contains 4 directives

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The reference to RFC1590 should probably be changed to point to section 4.1.3 of RFC2046 as per the rest of the draft, or maybe the media type registration.

For the charset, we may want to say something like "should be served with the default charset parameter set to "utf-8"

@EdOverflow

Copy link
Copy Markdown
Member Author

@austinheap, the ABNF grammar is already <pre>'d.

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.

7 participants