Skip to content

Conversation

lidel
Copy link
Member

@lidel lidel commented Sep 20, 2025

Problem

Kubo 0.38 ships with fixes that make it easier for users to name pins. Not having a limit comes with a risk of future limit breaking existing users. Let's add limit before it becomes a problem.

Solution

This PR adds validation to ensure pin names don't exceed 255 bytes across all commands that accept pin names. this prevents issues with filesystem limitations and improves compatibility.

255 was picked as lowest common denominator for max filename length in operating systems (mac/linux/windows).

affected commands:

  • ipfs pin add --name
  • ipfs add --pin-name
  • ipfs pin ls --name (filter)
  • ipfs pin remote add --name
  • ipfs pin remote ls --name (filter)
  • ipfs pin remote rm --name (filter)

@lidel lidel requested a review from a team as a code owner September 20, 2025 01:26
@lidel lidel changed the title feat: limit pin names to 255 bytes fix: limit pin names to 255 bytes Sep 20, 2025
@lidel lidel requested review from a team and removed request for a team September 20, 2025 01:28
@lidel lidel mentioned this pull request Sep 19, 2025
41 tasks
adds validation to ensure pin names don't exceed 255 bytes across all
commands that accept pin names. this prevents issues with filesystem
limitations and improves compatibility.

affected commands:
- ipfs pin add --name
- ipfs add --pin-name
- ipfs pin ls --name (filter)
- ipfs pin remote add --name
- ipfs pin remote ls --name (filter)
- ipfs pin remote rm --name (filter)
@lidel lidel force-pushed the feat/limit-pin-name-255-bytes branch from 93c9ce9 to ab4ca67 Compare September 20, 2025 01:34
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.

1 participant