Expose signing date to Javascript
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 1.3k
- Forks
- 125
- PR merge metrics
- No merged PRs in 30d
Description
While a publisher could manually incorporate the signing time into the content of their signed package, it would be easier for libraries to use that time, for example to check that content isn't "too old", if there were a standard place to look for it.
For signed exchanges, we could put it into the Document, for example document.package.signedAt. However:
- A signed exchange can have multiple signatures with different signing times. The most important one is the one that establishes cross-origin trust, but libraries might want to be able to see other signatures.
- We also want to be able to see the signing time for members of bundles, which might work better as a field in the
Response, and then we might refer to the Response or the relevant fields from any Document initialised from it... - This might be a concept we should expose for other cached things, in which case the place we expose it should make sense for non-packaged things. At that point, would we just expose the
DateHTTP header? The signing time(s) could be different from theDate, so we might want to expose both anyway.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by comparing the proposed Document and Response locations with the linked Fetch and HTML concepts. Define how multiple signature times, bundle members, and the HTTP Date value should be exposed, then document the chosen API and its behavior for packaged and non-packaged content.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- security, web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100