ipfs-webui icon indicating copy to clipboard operation
ipfs-webui copied to clipboard

feat: ability to import/export IPNS key

Open SgtPooki opened this issue 10 months ago • 4 comments

Is your feature request related to a problem? Please describe.

Users cannot import/export keys easily, and have to use the CLI.

Describe the solution you'd like

We should provide both an import and export button in Settings - IPNS Publishing Keys, next to rename/remove.

When a user imports/exports a key, we should accept/export both .key files and base64 if possible.

Describe alternatives you've considered

Users currently have to run CLI commands to do this, e.g. ipfs key export <name>

Additional context

From slack chat: https://ipshipyard.slack.com/archives/C046HDAHA13/p1741954637480849

SgtPooki avatar Mar 14 '25 16:03 SgtPooki

Hi @SgtPooki, good day! I attempted this, but encountered an error: "Failed to import: file argument 'key' is required." After tracing the issue, I found it's related to the Kubo client. Would it be okay if I submit a PR to fix it?

george-hub331 avatar Mar 17 '25 09:03 george-hub331

@george-hub331 absolutely. are you talking about in kubo-rpc-client?

SgtPooki avatar Mar 17 '25 14:03 SgtPooki

yea

george-hub331 avatar Mar 17 '25 14:03 george-hub331

#2348

shobit000 avatar Mar 23 '25 19:03 shobit000