BTIP: 79
title: Support filtering specific CIDs when accessing CIDs via the gateway
author: codymeng<[email protected]>
discussions-to: https://github.com/bittorrent/BTIPs/issues/79
status: Final
last-call-deadline: 2024-12-20
type: Client API
category (*only required for Core Protocol):
created: 2024-11-28
Implement one command to add CIDs to the database and several other commands to view and remove these CIDs. This solution will filter out the added CIDs and make their associated files inaccessible when users attempt to access CIDs via the gateway.
Provide an effective solution to restrict user access to specific CIDs via the gateway.
Users may wish to avoid certain CID files that could pose risks to them when accessing publicly available CIDs through API gateways. The proposed feature prevents access to these files without requiring their removal from the BTFS network.
btfs cidstore add <cid>
btfs cidstore del <cid>
btfs cidstore list
btfs cidstore has <cid>
The command provides a convenient way to manage CIDs that need to be filtered in the gateway.
This new feature is backward-compatible and won’t cause breaking changes.