Checklist
Installation method
dist.ipfs.tech or ipfs-update
Version
Config
Description
Kubo has ability to disable DHT announcements by setting Reprovider.Interval to 0.
(Un)fortunately 0.35.0-rc1 (#10760) included ipfs/boxo#907 which introduced separate queue for initial provides, which does not seem to be covered by this setting, which makes it impossible to disable DHT announcements of newly added data.
Proposed fix
- Introduce explicit
Provider.Enabled (type Flag, true by default) for controlling initial provides
- ❓
OR should it be Provider.Strategy as OptionalString and two options all|off with all being default (allowing us to have more in future?)
- Keep it a bool for clarity.
- To keep things simple, disable both systems if either
Reprovider.Interval=0 or Provider.Enabled=false + log a message informing user that provides are disabled as well, to remove any surprises.
- We can do deeper refactor later, to allow disabling each one separately.
Checklist
Installation method
dist.ipfs.tech or ipfs-update
Version
Config
defaultDescription
Kubo has ability to disable DHT announcements by setting
Reprovider.Intervalto0.(Un)fortunately 0.35.0-rc1 (#10760) included ipfs/boxo#907 which introduced separate queue for initial provides, which does not seem to be covered by this setting, which makes it impossible to disable DHT announcements of newly added data.
Proposed fix
Provider.Enabled(typeFlag, true by default) for controlling initial providesOR should it beProvider.StrategyasOptionalStringand two optionsall|offwithallbeing default (allowing us to have more in future?)Reprovider.Interval=0orProvider.Enabled=false+ log a message informing user that provides are disabled as well, to remove any surprises.