Skip to content

Migrating users to new configuration (protocols, bootstrap peers etc.) #1793

@ion1

Description

@ion1

When the default config is updated (e.g. protocols or bootstrap peers are added), users need to update their ~/.ipfs/config manually.

Many programs solve the issue by only writing settings that were actually modified into the file, falling back to built-in defaults for settings that are not present when reading.

To see the full config, users are able to run ipfs config show.

Some additonal options for storing a default config for the user to read, each one having some advantages and disadvantages:

  • Write the current defaults into the file with keys like Swarm_default, Bootstrap_default and ignore them when reading.
  • Use a file format that allows comments and write defaults as comments. (Retaining any comments added by a user while writing new defaults would involve a lot of complexity.)
  • Write an additional config.defaults file dumping all the default settings.
    • We could just have an ipfs config show --defaults instead.

Finally, it would be nice to have an ipfs config subcommand that resets a setting to the default value, removing it from the config file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions