Jorropo
3ab1086f71
chore: migrate go-libipfs to boxo
...
Resolves #9677 , #9676 , #9675 , #9736
2023-03-28 22:05:25 -04:00
Gus Eggert
e550d9e476
ci: add stylecheck to golangci-lint ( #9334 )
2022-10-06 10:18:40 -04:00
Jorropo
196887cbe5
chore: bump go-libp2p v0.22.0 & go1.18&go1.19
...
Fixes : #9225
2022-09-09 17:09:38 +02:00
Marcin Rataj
82467bc936
refactor: rename to kubo
2022-07-06 18:40:37 +02:00
Jorropo
a433064d72
chore: replace ioutil with io and os ( #8969 )
...
Co-authored-by: Håvard Anda Estensen <haavard.ae@gmail.com>
2022-06-14 12:37:02 -04:00
Laurent Senta
8d549f03f3
fix: rewrite dependencies over the go-ipfs-config package
2022-03-04 09:45:16 +01:00
Lucas Molas
3ea5631f9a
fix(cmds/keystore): do not allow to import keys we don't generate ( #8733 )
2022-02-18 23:42:40 +01:00
Lucas Molas
fe788cae98
feat(cmds): add cleartext PEM/PKCS8 for key import/export ( #8616 )
...
* feat(cmds): add PEM/PKCS8 for key import/export
Co-authored-by: Marcin Rataj <lidel@lidel.org>
Co-authored-by: Gus Eggert <gus@gus.dev>
2022-02-10 10:45:02 -05:00
Marcin Rataj
1d77f9d33d
refactor: key export requires exact repo ver
2021-05-11 20:11:12 +02:00
Marcin Rataj
6b63de8a5a
fix: check repo version before key export
...
https://github.com/ipfs/go-ipfs/pull/8113#discussion_r628314443
2021-05-11 19:43:51 +02:00
Marcin Rataj
a158036dee
feat: allow key export in online mode
...
Export does not require repo lock and it is safe to do even when ipfs
daemon is running. This enables apps like Brave browser to do
import/export without stopping/starting daemon.
Ref. https://github.com/brave/brave-browser/issues/15422
2021-05-07 16:26:23 +02:00
Marcin Rataj
0ff1cf33aa
docs: cosmetic fixes of help text
...
Unfortunately, API docs are genereted from go-ipfs sources
via https://github.com/ipfs/http-api-docs
so it all gets lost when API docs for new version are re-generated.
This re-applies manual fixes from:
https://docs.ipfs.io/reference/http/api/
so the next time http-api-docs are re-generated, those changes stay.
2021-03-24 17:41:14 +01:00
Andrew Gillis
6f6f04543b
Improve error message when running key command that locks repo ( #7821 )
...
* Improve error message when running key commands that must be run when the daemon is not already running
Fixes Issue #7814
`ipfs key export` now does a PreRun check like `ipfs key rotate` was to give a better error to the user then "someone else has the lock" in the event that the daemon is running while trying to execute these offline-only commands.
While unlikely the "someone else has the lock" error can still be shown if two processes try and grab the repo lock at the same time.
This PreRun function is also exported so it can be used by `ipfs init` where it was originally copied from.
* Added more `ipfs key` command tests
When daemon is running:
- Test that import works
- Test that export fails
- Test that rotate fails
2021-01-28 15:15:49 -05:00
gammazero
7193f950d7
Escape non-printable characters in user output
...
Replaces control characters and non-printable characters with escape sequences, in any fields that are printed by the CLI, which could have been user input.
Output from `ipfs cat` is unchanged.
2020-12-17 18:16:34 -08:00
Adin Schmahmann
6cbda0f62f
refactor: put all --ipns-base options in one place
2020-09-09 11:30:45 -04:00
Jacob Heun
0ed43e903e
fix(key): dont allow backup key to be named 'self'
...
docs: update the key rotate help docs to be clearer about the backup
2020-08-21 19:42:42 +02:00
Petar Maymounkov
56f5a123d9
update ipfs key default type
2020-08-19 15:22:59 -07:00
Petar Maymounkov
4975d9b179
renames
2020-08-18 08:39:47 -07:00
Petar Maymounkov
b4ad66eda4
add --ipns-base to publish and subs commands
...
add sharness tests for --ipns-base in name publish and subs commands
2020-08-17 21:43:02 -07:00
Petar Maymounkov
2b013a1ac5
use standard multibase format labels
2020-08-17 21:43:01 -07:00
Petar Maymounkov
23a26c05d3
rename -f to --ipns-base
2020-08-17 21:43:01 -07:00
Petar Maymounkov
80e859ef6f
add format flag to key rename and remove, defaulting to b36cid; update sharness
2020-08-17 21:43:01 -07:00
Petar Maymounkov
3cbe111b2d
use b36 keys by default for keys and IPNS
2020-08-17 21:43:01 -07:00
Adin Schmahmann
eb66461333
switch ipfs key rotate flags to use the same ones as ipfs key gen
2020-08-17 07:26:47 -04:00
Adin Schmahmann
0f658484d1
move key rotation command to ipfs key rotate
2020-08-17 07:26:47 -04:00
Adin Schmahmann
692e9f59ff
refactor: get rid of cmdDetails awkwardness
2020-08-04 18:28:40 -04:00
Petar Maymounkov
e384b5964a
IPNS format keys in b36cid
2020-08-04 00:18:29 -04:00
Adin Schmahmann
fab3a3578d
ipfs key export output keys with .key extension by default
2020-08-03 17:28:55 -04:00
Adin Schmahmann
7f15be2ae5
switch ipfs key import/export to use files instead of strings
2020-08-03 16:27:12 -04:00
rendaw
356ca3aefa
Remove export option from generate
2020-08-01 10:45:38 +09:00
Adin Schmahmann
a70d04b68f
remove ipfs key identify command
2020-07-30 16:26:40 -04:00
rendaw
c7657cb690
Fix sharness tests
2020-07-16 23:57:30 +09:00
rendaw
a0656402ed
Key import and export cli commands
2020-07-16 22:25:37 +09:00
Petar Maymounkov
b3e5ffc41a
feat: add flag to ipfs key and list to output keys in b36/CIDv1 ( #7531 )
...
* add flag to "ipfs key gen" to output keys in b36 CIDv1
* add flag to "ipfs key list" to output keys in b36 CIDv1
* add and modify corresponding sharness tests
2020-07-13 12:08:34 -04:00
@RubenKelevra
7b750664fb
Revert last change (the default is now printed twice)
2020-04-04 05:34:56 +02:00
@RubenKelevra
4bdd03d2f3
Help text update for 'ipfs key gen'
...
Add info about the default key type
2020-02-04 13:58:05 +01:00
Steven Allen
33861b0d40
fix: make rsa the default key type
...
It's already the default when initializing the node, we might as well make it
the default when creating new keys.
fixes #6861
2020-02-03 18:10:21 -08:00
Steven Allen
5f64b270f8
cmdkit -> cmds
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-10 23:00:20 -07:00
Jakub Sztandera
42e191c017
gx: unrewrite
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-03-05 18:33:56 +01:00
Steven Allen
3fa1bfe1bc
gx: update cmds and flatfs
...
fixes #6028 , fixes crash when writing after closing on flatfs.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-03-01 12:17:49 -08:00
Steven Allen
f227862e88
gx: update go-ipfs-cmds, go-bitswap, go-libp2p-kad-dht, and go-mplex
...
Fixes the latest batch of bugs found in RC testing.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-02-27 12:39:24 -08:00
Hector Sanjuan
6972a9aa4d
Gx Bubble. libp2p-6.0.38
...
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2019-02-27 01:10:59 +00:00
Steven Allen
3c2536dd81
gx: update go-ipfs-cmds
...
fixes #6021
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-02-25 16:45:43 -07:00
Steven Allen
fea7ae727f
gx: update go-cid
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-02-20 20:29:06 -08:00
Steven Allen
f924f57c61
gx: update go-bitswap and go-libp2p-kad-dht
...
* go-bitswap: fix some race conditions.
* go-libp2p-kad-dht: fix a goroutine leak.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-02-20 17:19:54 -08:00
Steven Allen
2f17b951c2
gx: update deps
...
* Updates go-ipfs-cmds to try to get the tests to pass on travis.
* While we're at it, fix duplicate gx deps.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-02-19 13:12:21 -08:00
Steven Allen
91ca5911be
coreapi: return coreiface.ErrNotSupported when "catting" symlinks.
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-02-19 03:48:04 -08:00
Jakub Sztandera
28cf3de0f9
Update protobuf
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-02-18 20:46:22 +01:00
Steven Allen
cf0d4706e2
gx: update libp2p stuff
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-02-14 14:58:35 -08:00
Steven Allen
e97a60b073
gx: update go-ipfs-files
...
fix compatibility issue with js-ipfs
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-02-11 10:48:58 -08:00