-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
ipfs config replace can result in a broken configuration. #8993
Comments
Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review.
Finally, remember to use https://discuss.ipfs.io if you just need general support. |
Thx for the report, seems easy to fix.
Should recompute the public key from the saved ( |
Can I pick this up? |
@deepto98 yeah if you want 🙂 |
I just ran into this issue.
This is clearly not the case, otherwise this issue wouldn't exist. I'm trying to improve the NixOS module for Kubo. Currently, the code is a bit ugly (and has an issue described below) as it calls If |
Hi, is this still unsolved? |
@DobleV55 Yes. When |
Having the same issue on macOS. I followed this approach
open a new terminal
|
Checklist
Installation method
built from source
Version
Config
Description
It is possible to pass a configuration file that will result in the IPFS node not being startable again.
Steps to reproduce:
now you have an IPFS daemon that can never start again.
Why this is bad:
Well, if you try to replace the config file with a fully-functional config file, i.e. one that has a complete Identiy secion including public and private keys, you are presented an error.
if you aren't careful, you might read this as you cannot set your identity through the API. But this is not the case. It only wants the private key to be removed.
That got me thinking.... what if I save the config the right way, and then move the config to another ipfs instance, will this result in a corrupted config file as well? it turns out that it does.
and on a second fresh instance
this time, you will have a config with mismatched public and private keys. Next time IPFS is started, the following is shown.
The text was updated successfully, but these errors were encountered: