-
Notifications
You must be signed in to change notification settings - Fork 234
ipns: lower the suggested default TTL #492
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This was referenced Feb 26, 2025
lidel
added a commit
to ipfs/helia
that referenced
this pull request
Feb 26, 2025
lowering TTL to 5m due to ipfs/specs#492 lifetime is validity of signature, and that should be fine up to 48h, to match DHT expiration window
3 tasks
lidel
added a commit
to ipfs/helia
that referenced
this pull request
Feb 26, 2025
lowering TTL to 5m due to ipfs/specs#492 lifetime is validity of signature, and that should be fine up to 48h, to match DHT expiration window
guillaumemichel
approved these changes
Feb 27, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense!
2color
approved these changes
Feb 27, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sensible
achingbrain
pushed a commit
to ipfs/helia
that referenced
this pull request
Mar 4, 2025
Lowering TTL to 5m due to ipfs/specs#492 lifetime is validity of signature, and that should be fine up to 48h, to match DHT expiration window
achingbrain
pushed a commit
to ipfs/js-ipns
that referenced
this pull request
Mar 18, 2025
This PR is changing implicit default TTL of IPNS Record produced by this library from 1h to 5m. Same rationale as ipfs/kubo#10718 and ipfs/helia#749. This library has its own default TTL, which is separate from one we already updated ipfs/helia#749. Making this change so we have the same default everywhere. Historical notes - Before April 2024 the IPNS Record TTL was not set (0) in this library - Since #308 the `1h` default produced by this library started causing stale cache issues that end users often report as "ipns is slow (to update/propagate)". - We've changed default recommendation to 5m in ipfs/specs#492
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adjusting the suggested default due to the rationale from ipfs/kubo#10718
Reference implementation changes:
boxo/ipfs.DefaultRecordTTL
: chore(ipns): lowerDefaultRecordTTL
to 5m boxo#859@helia/ipns
: fix: align implicit default ttl with specs helia#749