News for hackers. Stuff that matters.
Re:Where Am I? NYTimes or Google? by gregable on Saturday July 04, 2020 @12:37AM (#23730158)
The same could be said of any CDN hosted javascript library. For example: jquery. There is an open intent to implement support for publishers self-hosting the AMP library as well.
Re:Where Am I? NYTimes or Google? by donaltroddyn on Saturday July 04, 2020 @01:05AM (#23730271)
For most JS served by CDN, you can (and should) use Subresource Integrity to verify the content. At least the last time I was involved in an AMP project, Google considered AMP to be an "evergreen" project and did not allow publishers to lock in to a specific version.
Re:Where Am I? NYTimes or Google? by gregable on Saturday July 04, 2020 @08:26PM (#23735820)
Long term versions are now supported, so publishers can lock in a specific version.

Publisher hosted copies are in the pipeline, as I referenced in the parent comment. My choice of verbiage was a bit confusing it appears.

Re:Where Am I? NYTimes or Google? by donaltroddyn on Sunday July 05, 2020 @02:32PM (#23740803)
I don't think it's your wording that's confusing. You are contradicting the AMP documentation.

AMP's documentation seems to indicate that the LTS is stable only for one month (new features released via the same URL each month), and so is not compatible with SRI (see https://github.com/ampproject/amphtml/blob/master/contributi...)

You can specify a version (ie, https://cdn.ampproject.org/rtv/somenum/v0.js), but the AMP validator complains about that.

Re:Where Am I? NYTimes or Google? by WA on Saturday July 04, 2020 @01:59AM (#23730464)
> The same could be said of any CDN hosted javascript library

Yes, and? What’s your point? It’s actually a security weakness to include third party JS. The whole thing runs on trust.

Re:Where Am I? NYTimes or Google? by gowld on Saturday July 04, 2020 @09:23AM (#23732043)
What's an open intent? Where is this documented?
Re:Where Am I? NYTimes or Google? by tyingq on Saturday July 04, 2020 @11:35AM (#23732957)
AMP spec: https://amp.dev/documentation/guides-and-tutorials/learn/spe...

"AMP HTML documents MUST..."

"The AMP runtime is loaded via the mandatory <script src="https://cdn.ampproject.org/v0.js"></script> tag in the AMP document <head>."

Do a whois on ampproject.org:

"Registrant Organization: Google LLC Registrant State/Province: CA Registrant Country: US Admin Organization: Google LLC"

Note that jQuery, as mentioned in some GP comment has no such requirement. Google AMP is quite unique in this regard. This is NOT some general CDN type issue. Also...agreed, WTF is "open intent"?

Re:Where Am I? NYTimes or Google? by gregable on Saturday July 04, 2020 @01:55PM (#23733807)
Re:Where Am I? NYTimes or Google? by tyingq on Saturday July 04, 2020 @02:14PM (#23733935)
Note "open", i.e., unresolved. Perhaps in a less positive light, "how to enabled signed exchanges/AMP without controlling it".
Re:Where Am I? NYTimes or Google? by gregable on Saturday July 04, 2020 @08:27PM (#23735823)
Correct. Open as in not resolved yet, but intended to be resolved in the future.
Re:Where Am I? NYTimes or Google? by ComputerGuru on Saturday July 04, 2020 @01:00AM (#23730243)
You missed the required part.