ampproject / ampproject/amppackager

Add support for validityUrl

Open
#27 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
141
Forks
46
PR merge metrics
No merged PRs in 30d

Description

Packager currently only provides a null validityUrl response for all signed exchanges. It would be nice to support validity updates, to save on network bandwidth when responding to intermediaries and to allow client-side reverification of signed exchanges as a [downgrade mitigation](https://wicg.github.io/webpackage/draft-yasskin-http-origin-signed-responses.html#seccons-downgrades).

Note that this will require a refetch of the document to get the message to sign, unless a cache is added. If a cache is added, it should obey the usual HTTP caching semantics re: freshness and validation.

Contributor guide

Open the contributing guide

Research direction

Start by tracing how the packager currently returns a null validityUrl for signed exchanges and how it obtains the document to sign. Review the signed-exchange response path and determine whether an HTTP cache exists or must be added with normal freshness and validation semantics. Done means validity updates are returned, refetching or caching is handled, and client reverification and downgrade mitigation work as intended.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend-api-design, security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.