-
Notifications
You must be signed in to change notification settings - Fork 11
Authentication of a CID #141
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
Comments
Note that the language says that "dereferencing the canonical URL" has to result in a document with the canonical URL in there. This was done to ensure that a redirect is possible, and a re-attempt (as you mention) can be performed. However, once that re-attempt is made for what is believed to be the canonical URL, that final check MUST succeed. That is, the second you stop getting redirect hints through whatever protocol you're using (like 301 redirects), and once you believe you're at the final document, you need to ensure you're dealing w/ a canonical URL.
We considered that, but felt like the spec is too new to do that sort of hard enforcement and that we wanted to depend on implementer experience over the next couple of years before we lock it down. There might be legitimate reasons to not throw an error (like you know the document is out of date, but you've deemed that to be ok for some reason). All this said, I don't think we'd change the normative text at this point for the reason above. Can you suggest some text that might address your concern? |
Thank you for clarification. I think the bit about redirects is important to get right and additional text would help implementers understand this requirement:
However, I still don't understand what "the identifier" refers to at the end of the sentence:
Perhaps it was meant to be "and the document SHOULD be treated as invalid", or "and the base identifier SHOULD be treated as invalid"?
ActivityPub protocol is very similar in this regard. AP documents have an
My experience with ActivityPub tells me that such legitimate reasons don't exist, but if they do exist, they should probably be listed. |
Since this is a security validation process, the current "MUST" is appropriate. I'm OK adding additional text describing conditions when the MUST might not be satisfied, but I'm not OK for the document to be considered valid when it is not. |
The issue was discussed in a meeting on 2025-01-22
View the transcript2.2. Authentication of a CID (issue cid#141)See github issue cid#141. Ivan Herman: the next is on CID. Manu Sporny: this issue is related to fediverse and ActivityPub use. Michael Jones: this is a security validation feature, so those should be MUSTs. Dave Longley: I think that MUST...UNLESS... construct is what is in there now, actually...just with different words. Michael Jones: that sounds like it's already addressed then. Manu Sporny: I agree, this is already addressed. Ivan Herman: is it a major amount of work? Manu Sporny: it's about a paragraph. Ivan Herman: well in that case!! Manu Sporny: I'll raise that PR. Ivan Herman: and everyone will be absolutely happy. |
The issue was discussed in a meeting on 2025-02-06
View the transcript4.2. Authentication of a CID (issue cid#141)See github issue cid#141. Brent Zundel: might just be a small editorial change. Manu Sporny: you're just waiting on me to raise a PR. Brent Zundel: that's it. the rest are tracking issues. |
I think the problem is that the identifier SHOULD be treated as invalid. Yet the document is NOT a valid controlled identifier document. There's a point that the identifier might in fact, be valid, but not currently resolvable. |
I agree with @jandrieu and the fix should just be to remove the rest of the sentence, so this:
Becomes this:
|
The issue was discussed in a meeting on 2025-02-19
View the transcript1.4. Controlled Identifiers.Ivan Herman: implementation report is incomplete. See github pull request cid#149. Manu Sporny: nobody likes the wording of this PR yet. Stronger MUST statements are requested, but it is already a MUST, just needs language tweaks. I will take another stab at this when I have time. Brent Zundel: if this PR is not resolved during the next week then the issue 141 will be marked for future resolution. Michael Jones: why not simply change SHOULD of existing text to MUST without any rewording. Manu Sporny: we will also need tests for this.
Manu Sporny: we could instead simply delete the statement because currently it is not being tested.
Brent Zundel: any opposition of marking this for future now?
See github issue cid#141. Manu Sporny: can we close some issues prior to the review i.e. 22, 23, 25.
|
+1 to deleting "and the identifier SHOULD be treated as invalid" |
+1 to the deletion proposal |
In the subjects section:
"the identifier SHOULD be treated as invalid" sounds ambiguous. The base identifier of a retrieved document may be valid (we can retrieve it again and may get a matching CID). In this case only canonical URL is invalid.
Also, I think this SHOULD need to be replaced with a MUST. If the base identifier doesn't match the canonical URL (especially if they have different web origins), that may be an impersonation attempt.
The text was updated successfully, but these errors were encountered: