Skip to content

feat: let the did:web resolver cache DID documents - #253

Open
alanshaw wants to merge 1 commit into
mainfrom
ash/feat/did-document-caching
Open

alanshaw wants to merge 1 commit into
mainfrom
ash/feat/did-document-caching

Conversation

@alanshaw

@alanshaw alanshaw commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

DID documents hold the keys that signatures are checked against. This service cached other services' documents for a fixed 24 hours whatever their hosts said, so a rotated key could go unnoticed for that long.

  • The 24-hour cache this service kept around did:web resolution is gone. The resolver caches documents itself since feat(did/web): cache resolved documents ucantone#80: for as long as the document's host says, or five minutes when it does not say, after which it checks with the host whether the document has changed.

The cache in front of did:plc resolution is unchanged.

Not run locally: anything beyond the package that builds the resolver, since the rest needs the Filecoin FFI library.

🤖 Generated with Claude Code

The 24-hour cache around did:web resolution is removed. The ucantone
resolver now caches documents itself, for as long as the host says or
five minutes when it does not, and then revalidates.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@alanshaw
alanshaw requested a review from frrist as a code owner November 20, 2026 16:46
Copilot AI balanced review requested due to automatic review settings November 20, 2026 16:46

Copilot AI left a comment

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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

This branch has not been deployed

No deployments
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.

2 participants