Petar Maymounkov
8794928c31
add remote pinning policy for mfs ( #7798 )
...
* remote pinning service MFS policy
* update go-ipfs-config
* hardening secret sanitization in `ipfs config` commands
Co-authored-by: Adin Schmahmann <adin.schmahmann@gmail.com>
Co-authored-by: Marcin Rataj <lidel@lidel.org>
2021-01-28 18:58:44 -05: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
lanzafame
3d9821260a
register quic opencensus metrics
2020-12-08 20:22:38 -05:00
Adin Schmahmann
91c1aaa1b5
fix: do not create and print out an unused new peerID when initializing from a config
2020-10-19 18:24:13 -04:00
Fazlul Shahriar
cac753bb18
fix build on Plan 9
...
Fixes #7575
Fixes #7671
2020-09-23 22:27:01 -04:00
Adin Schmahmann
b88bdfeb9d
chore: update go-multiaddr and go-multiaddr-net
2020-08-25 15:24:48 -04:00
Petar Maymounkov
ece0cda10d
switch ipfs init default key
2020-08-19 08:31:44 -07: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
2c255eab24
feat: implement ipfs rotate command for rotating the ID keys for the node
2020-07-15 19:04:34 -04:00
Petar Maymounkov
4674f770b7
Choosable key types at initialization
...
* add support for choosing a peer key type (e.g. RSA or Ed25519) when initializing the repo
* test all variants of ipfs init: RSA, Ed25519 and default
* update subdomain gateway sharness test to publish IPNS using RSA and
Ed25519 keys
* use default identity bit lengths defined in config repo instead of
having separate defaults in go-ipfs
* update config repo dependency
Co-authored-by: Will Scott <will@cypherpunk.email>
Co-authored-by: Petar Maymounkov <petarm@gmail.com>
2020-07-14 14:42:49 -04:00
Steven Allen
e164af1f2a
feat: add a transport config section
...
This way, users can disable transports (especially QUIC), and set muxer/security
transport priorities.
2020-06-16 15:15:47 -07:00
Dimitris Apostolou
1e437c7e97
Fix typos and cleanup
2020-04-20 22:00:01 +03:00
Roman Khafizianov
90b7b53a40
fix the typo in the serveHTTPApi
...
It looks like the incorrect address passed into the logger in case of error
2020-04-14 13:24:49 +03:00
Steven Allen
56e0e18294
feat: add a dhtserver option
2020-04-06 18:53:16 -07:00
Peter Rabbitson
5be6e26f7b
Forgotten go-fmt
...
Not sure why CI didn't catch this
2020-03-25 15:03:17 +01:00
Marcin Rataj
3ecccd6e1d
feat(gateway): subdomain and proxy gateway
...
License: MIT
Signed-off-by: Marcin Rataj <lidel@lidel.org>
2020-03-18 08:50:38 -07:00
Steven Allen
11c229bb14
rename ProxyOption to P2PProxyOption
...
(we're implementing an _actual_ proxy)
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2020-03-17 19:34:44 -07:00
Dominic Della Valle
3c9039a00b
cmd: ipfs handle GUI environment on Windows
2020-03-12 16:15:23 -07:00
Hector Sanjuan
7c6e212b2d
Update the license distributed with dist builds to the dual one
...
This was an old leftover
2020-02-06 22:27:15 +01:00
Steven Allen
a53d48059b
fix: migrate from deprecated warning function
2020-01-28 21:20:21 -08:00
Steven Allen
c2d1f3a6a3
chore(dep): update deps
...
Update all deps.
2020-01-28 21:20:17 -08:00
flowed
07cbba7c40
Fix Typos
2019-12-25 03:12:41 +00:00
Steven Allen
9f1249c65b
fix: use libp2p keysizes
2019-12-05 13:26:46 -05:00
Michael Muré
2a9e5005da
plugins: introduce PluginDaemonInternal to directly interact with IpfsNode
2019-11-22 13:18:44 +01:00
Steven Allen
460c2119e4
daemon: support unix domain sockets for the API/gateway
...
All the work was client-side. Unix domain socket multiaddrs already worked
server-side.
fixes #4218
2019-09-30 17:21:28 -07:00
Steven Allen
164dd287be
Merge pull request #6675 from ipfs/feat/systemd-activation
...
add systemd support
2019-09-30 15:22:44 -07:00
Oli Evans
bbe2f5077e
feat: add ipfs version info to prometheus metrics
...
Adds `ipfs_info` prometheus metric with version and commit info
```prometheus
ipfs_info{commit="9ea7c6a11-dirty",version="0.5.0-dev"} 1
```
This follows the same pattern as go and other systems, adding a gauge metric that is set to 1, with the version info addeds as labels.
This is a common pattern for prometheus. It lets operators merge version info into other prometheus metrics by multiplying it with the other stat, as described in https://www.robustperception.io/exposing-the-software-version-to-prometheus
For example, we already expose the go version info as
```prometheus
go_info{version="go1.12.9"} 1
```
License: MIT
Signed-off-by: Oli Evans <oli@tableflip.io>
2019-09-30 15:41:29 +01:00
Steven Allen
0d0b4fc857
feat(systemd): extract socket activation logic
2019-09-27 16:09:17 -07:00
Steven Allen
37c19cc630
lint(systemd): remove dead code
2019-09-27 16:08:30 -07:00
Steven Allen
87f2e38017
systemd: add notify support
...
That way, we can reliably know when the daemon is ready.
2019-09-27 16:08:30 -07:00
Steven Allen
a4914a4478
systemd: merge API/gateway addresses
...
Instead of letting systemd override the configured addresses, merge them. This
is likely the "expected" behavior.
2019-09-27 16:08:30 -07:00
Steven Allen
1b05265862
cr: fix copy/paste error
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-09-27 16:08:30 -07:00
Steven Allen
6eb84227c6
cr: group related variables
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-09-27 16:08:30 -07:00
Steven Allen
429c4b537c
implement systemd socket activation
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-09-27 16:08:30 -07:00
Steven Allen
150b6dd1bd
plugins: add support for plugin configs
...
For now, configs specified in `daemon --init-config` and `init CONFIG` are not
available. We should fix this eventually but isn't necessary for now (and
supporting this will be annoying).
2019-08-29 17:17:23 -07:00
Steven Allen
d2a1ce3c5c
Merge pull request #6489 from djdv/feat/init-with-config-file
...
feat: add ability to use existing config during init
2019-08-28 16:19:36 -07:00
Steven Allen
f6f8d68574
version: don't print 'VERSION-' if no commit is specified
...
fixes #6022
2019-08-28 00:06:46 -07:00
Dominic Della Valle
995e674cfb
feat: add ability to use existing config during init
2019-08-25 21:15:17 -04:00
Steven Allen
a2a70d2cc0
use 2048 keys everywhere else
2019-08-23 14:36:42 -07:00
Steven Allen
39bb640c35
Merge pull request #6474 from ipfs/feat/builtin-plugin
...
feat: make it easier to load custom plugins
2019-07-11 18:55:13 -07:00
Steven Allen
2b61dbb612
main: clarify api-flag behavior
2019-07-03 14:10:56 -07:00
Steven Allen
074305690a
fix: ignore stale APIs
...
fixes #5784
2019-06-29 11:17:38 +02:00
Steven Allen
4badef2a14
feat: make it easier to load custom plugins
...
1. Allow loading from arbitrary and multiple directories.
2. Make it possible to directly load built-in plugins that _aren't_ in the
preload list.
2019-06-28 08:42:29 +02:00
Kirill Goncharov
2865ae79a1
install.sh: Fix wrong destination path for ipfs binary
...
License: MIT
Signed-off-by: Kirill Goncharov <kdgoncharov@gmail.com>
2019-06-08 19:21:59 +03:00
Raúl Kripalani
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
Steven Allen
ec19d4c54f
Merge pull request #6321 from ipfs/ci/golangci-lint
...
Add golangci-lint
2019-05-15 13:38:31 -07:00
Steven Allen
017564a863
fail start when loading a plugin fails
...
Otherwise, we simply panic later.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-15 12:09:19 -07:00
Steven Allen
4924b80e10
chore: fix linter nits
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-05-14 09:38:26 -07:00
Steven Allen
96e6dd294f
Merge pull request #6319 from ipfs/fix/ulimit-tests
...
fix setting ulimit
2019-05-14 09:36:42 -07:00