1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-08-06 19:44:01 +08:00

34 Commits

Author SHA1 Message Date
4a7373bc6a keystore: create new keys with 0400 permissions (as spec'ed)
Spec is pretty much out of date but specifies this.

https://github.com/ipfs/specs/blob/master/KEYSTORE.md
2020-03-27 12:59:10 +01:00
56550c1b61 keystore: Switch from Bytes() to MarshalPrivateKey()
Bytes is deprecated.
2020-03-27 12:57:53 +01:00
7a4c377bbb fix(keystore): avoid racy filesystem access
Instead of checking then performing a file operation, perform the file operation
and check the error.
2020-03-25 10:05:16 -07:00
059f396bac keystore: finish addressing encodedFSKeystore
* Use Go's base32 library
* Set repo to version 9
* Resolve linting problems and docs.
* Merge EncodedFSKeystore into FSKeystore
* Remove name limitations and adjust tests
2020-03-23 17:05:16 -07:00
d67a4e06cf Introducing EncodedFSKeystore with base32 encoding (#5947)
Encoding the key's filename with base32 introduces coherent behaviour
across different platforms and their case-sensitive/case-insensitive
file-systems. Moreover it allows wider character set to be used for the
name of the keys as the original restriction for special FS's characters
(e.g. '/', '.') will not apply.

License: MIT
Signed-off-by: Adam Uhlir <uhlir.a@gmail.com>
2020-03-23 17:05:16 -07:00
a53d48059b fix: migrate from deprecated warning function 2020-01-28 21:20:21 -08:00
e8c2852179 migrate to go-libp2p-core.
closes #6391

License: MIT
Signed-off-by: Raúl Kripalani <raul@protocol.ai>
2019-05-31 23:23:52 -07:00
1f293eff1b chore: fix a bunch of issues caught by golangci-lint
Most of these are probably harmless but a few looked like they might actually be
bugs. Most of them are just faulty tests.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-03-29 11:57:45 +00:00
42e191c017 gx: unrewrite
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-03-05 18:33:56 +01:00
28cf3de0f9 Update protobuf
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-02-18 20:46:22 +01:00
0d80fc54c3 gx: update go-log and sha256
fixes #5709

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-11-02 21:17:20 -07:00
dac058f8be gx: update go-log go-ipld-cbor
(and friends)

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-09-24 05:36:29 -07:00
594d95af5d update gogo-protobuf
fixes #3214

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-08-08 18:56:13 -07:00
3eba14aa24 gx update
Updates:

* go-kad-dht: Query performance improvements, DHT client fixes, validates
  records on *local* put.
* go-libp2p-swarm/go-libp2p-transport: Timeout improvements.
* go-multiaddr-net: Exposes useful Conn methods (CloseWrite, CloseRead, etc.)
* go-log: fixes possible panic when enabling/disabling events.
* go-multiaddr: fixes possible panic when stringifying malformed multiaddrs,
  adds support for consuming /p2p/ multiaddrs.

fixes #5113
unblocks #4895

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-06-26 17:11:33 -07:00
85acad9a01 gx update go-log, sys, go-crypto
* go-log
* sys
* go-crypto

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-06-08 22:36:24 -07:00
1e9e2f453c update deps
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-05-31 17:59:17 -07:00
2ee5cfb90f fix error style
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-03-30 09:43:27 +02:00
e338cdf5be Handling requested changes.
License: MIT
Signed-off-by: matrushka <barisgumustas@gmail.com>
2018-02-15 10:17:29 +01:00
40aeea6abd Added logging for ignored keyfiles in keystore.List and minor improvements.
License: MIT
Signed-off-by: matrushka <barisgumustas@gmail.com>
2018-02-15 10:17:29 +01:00
23e1179d34 Removing the tmp directory after the TestInvalidKeyFiles test.
License: MIT
Signed-off-by: matrushka <barisgumustas@gmail.com>
2018-02-15 10:17:29 +01:00
4bbaa2aa27 Modified keystore to ignore invalid key files inside the keystore directory.
* Has calls the validateName function before checking if we have the file
* List filters the returned list of file names by validateName.

License: MIT
Signed-off-by: matrushka <barisgumustas@gmail.com>
2018-02-15 10:17:29 +01:00
76907bb402 keystore interface docs
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2018-01-22 11:20:07 -08:00
cccc6a94a3 update go-multihash and bubble up changes
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-07-11 19:27:43 -07:00
c5df8f0796 apply the megacheck tool to improve code quality
License: MIT
Signed-off-by: Zach Ramsay <zach.ramsay@gmail.com>
2017-05-31 16:56:11 -04:00
2593495311 Document exported symbols
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2017-05-14 21:02:01 +09:00
7e91da2067 Future-proof keystore.Has by returning an error as well
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2017-05-08 17:00:00 +09:00
6f815b1568 Add a Has(name) method to the keystore
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2017-05-04 17:29:29 +09:00
b15470d548 bubble up updates from go-multihash changes
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-04-20 20:28:04 +02:00
4e168dc323 update go-libp2p-kad-dht with getclosestpeers fix
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-03-05 23:06:04 -08:00
b4eeff2d84 update go-multihash and bubble up deps
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-02-12 12:25:41 -08:00
a3c38917e2 test: add memkeystore test
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-12-07 09:02:23 +01:00
84a9208bce test: add test for nonexistant key
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-12-07 08:59:54 +01:00
e8b20b9283 address comments and add some tests
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-12-06 11:20:18 -08:00
805b504043 basic keystore implementation
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-12-05 23:18:48 -08:00