Commit Graph

12253 Commits

Author SHA1 Message Date
Steven Allen
d30f1e5d44
Merge pull request #7930 from ipfs/fix/redundant-ns-on-gateway
feat(gw): /ipfs/ipfs/{cid} → /ipfs/{cid}
2021-03-24 13:12:16 -07:00
Steven Allen
c0ce56fa48
Merge pull request #8001 from ipfs/fix/files-cp-docs
Fix: innacuracies in MFS command documentation.
2021-03-23 08:59:08 -07:00
Hector Sanjuan
e7ddd3894b Fix: innacuracies in MFS command documentation.
These also end up in API docs.
2021-03-22 19:42:04 +01:00
Steven Allen
c9ee6444df
Merge pull request #7984 from ipfs/feat/reimport-InitializeKeyspace-from-namesys
Feat: Re-import InitializeKeyspace code from go-namesys
2021-03-22 11:16:12 -07:00
Marcin Rataj
763a120ed2
fix: no fixup if X-Ipfs-Gateway-Prefix is present
https://github.com/ipfs/go-ipfs/pull/7930#discussion_r597976690
2021-03-20 00:00:58 +01:00
Marcin Rataj
a35ffee136
refactor: safer query handling
https://github.com/ipfs/go-ipfs/pull/7930#discussion_r597246135
2021-03-18 23:48:53 +01:00
Marcin Rataj
450baef0e9
refactor: explicit prefix check
https://github.com/ipfs/go-ipfs/pull/7930#discussion_r584001161
2021-03-18 21:48:04 +01:00
Marcin Rataj
b81b7549d3
refactor: addressing review
- moved to separate utility function
- return Bad Request error
- improved escaping of values passed via URL path
2021-03-18 21:22:07 +01:00
Steven Allen
3c81d44510
Merge pull request #7986 from ipfs/fix/prom-registry
revert registration of metrics against unexposed prom registry
2021-03-17 10:52:44 -07:00
lanzafame
4ba03fa8df revert registration of metrics against unexposed prom registry 2021-03-17 10:15:42 +10:00
Hector Sanjuan
5ff3dd8e75 Feat: Re-import InitializeKeyspace code from go-namesys
The InitializeKeyspace functionality is go-ipfs specific but lives in the
go-namesys repo.

It is only called from initializeIpnsKeyspace, and therefore the code is
directly added to this function. The original function will be removed from
go-namesys.
2021-03-16 16:35:03 +01:00
Adin Schmahmann
3393b4a39e
Merge pull request #7925 from ipfs/feat/extract-namesys
Extract the namesys and the keystore submodules
2021-03-14 13:34:59 -04:00
Hector Sanjuan
3db9551f79 Extract the namesys and the keystore submodules
Namesys is a very useful submodule. Given a ValueStore and a Datastore it can
resolve and publish /ipns/ paths.

This functionality does not need to be sequestered inside go-ipfs as it can
and should be used without IPFS, for example, for implementing lightweight
IPNS publishing services or for resolving /ipns/ paths.

"keystore" extraction was necessary, as there is a dependency to it in
namesys. Keystore is also a useful module by itself within the stack.

Fixes #6537
2021-03-12 14:09:36 -05:00
Steven Allen
e05c6b0b5e
Merge pull request #7970 from ipfs/chore/dagcmd
split core/commands/dag into individual files for different subcommands
2021-03-11 08:10:46 -08:00
Steven Allen
ca61193eb2
Merge pull request #7971 from ipfs/fix/buggy-sharness-test
test(sharness): pass correct timeout format to go-timeout
2021-03-11 08:08:41 -08:00
Steven Allen
eb53fc7c34 test(sharness): pass correct timeout format to go-timeout
It takes a number, not a duration. Unfortunately, it will _also_ exit
with a status of 1 in this case so the test passes.
2021-03-10 17:34:13 -08:00
Will Scott
6e2b166773
split core/commands/dag into individual files for different subcommands 2021-03-10 12:14:50 -08:00
Steven Allen
65d9507c3d
Merge pull request #7953 from marten-seemann/fix-reqlog-race
fix race condition when logging requests
2021-03-03 18:13:54 -08:00
Marten Seemann
d631204dee fix race condition when logging requests 2021-02-27 18:36:24 +08:00
Marcin Rataj
dae7387584
refactor: show error, delay redirect
This implements error page that does not hide the problem,
but still redirects to a valid path after short delay:
https://github.com/ipfs/go-ipfs/pull/7930#issuecomment-786882748
2021-02-27 00:57:05 +01:00
Steven Allen
4d262b1f73
Merge pull request #7946 from ipfs/test/fixup-tests
fix some sharness-in-CI issues
2021-02-26 15:19:57 -08:00
Steven Allen
6e99535fc2
Merge pull request #7941 from ipfs/chore/update-deps
chore: update deps
2021-02-26 11:37:59 -08:00
Steven Allen
a895bac94c build: drop support for darwin-386
The new sys package drops support.
2021-02-25 18:15:45 -08:00
Steven Allen
01403e90e9 chore: update deps
Primarily,

* update semver (go mod support)
* update graphsync & go-ipld-prime
* update golang.org/x packages.
2021-02-25 17:21:45 -08:00
Steven Allen
88831814d0 ci: update before install 2021-02-25 16:25:58 -08:00
Steven Allen
b94b4b2aa8
Merge pull request #7942 from ipfs/fix/pin-ls-err
fix: correctly return pin ls errors
2021-02-25 14:17:47 -08:00
Steven Allen
6a13d86148 test(sharness): correctly use test_must_fail 2021-02-25 14:17:09 -08:00
Steven Allen
f02a3fef82 ci: install netstat 2021-02-25 14:17:08 -08:00
Steven Allen
43e464481b
Merge pull request #7943 from ipfs/feat/remove-secio
feat: remove secio support
2021-02-25 14:11:54 -08:00
Steven Allen
ccc2d23730 feat: remove secio support
We've had a reliable and enabled by default TLS implementation since
0.4.23 (over a year ago) and turned off SECIO in September of last year.
We might as well remove support entirely in the next release and
encourage users to upgrade their networks.

Noise is faster, anyways.
2021-02-25 13:36:40 -08:00
Steven Allen
6527675401
Merge pull request #7927 from ipfs/feat/use-correct-supported-platforms
Set supported platforms by go-version
2021-02-25 12:59:16 -08:00
Adin Schmahmann
83d94d26d9
fix: correctly return pin ls errors 2021-02-25 15:56:18 -05:00
Marcin Rataj
cb7b147e5a
docs: tips on debugging Policies.MFS (#7929)
* docs: tips on debugging Policies.MFS

Co-authored-by: Adin Schmahmann <adin.schmahmann@gmail.com>
2021-02-23 11:08:49 -05:00
Adin Schmahmann
ac82ca5ee9
Merge pull request #7932 from ipfs/docs/dnslink-gw-recipe-fix
docs: fix DNSLink gw recipe
2021-02-20 19:08:50 -05:00
Marcin Rataj
ced3580581
docs: fix DNSLink gw recipe
Unfortunate typo due to additional negation.
2021-02-20 11:46:08 +01:00
Marcin Rataj
15e3732afd
feat(gw): /ipfs/ipfs/{cid} → /ipfs/{cid}
This will try to recover from invalid paths like  /ipfs/ipfs/{cid}
and redirect to proper one, when possible.
2021-02-20 00:09:17 +01:00
hannahhoward
66e0f8a1d9 build(Makefile): set supported platforms by go-version
Set supported platforms correctly by go version (no darwin-386 for >=1.15, no darwin-arm64 unless
>=1.16), make check-go-version work on mac

License: MIT
Signed-off-by: hannahhoward <hannah@hannahhoward.net>
2021-02-18 20:28:54 -08:00
Adin Schmahmann
1722eeefa6 Merge branch 'release' 2021-02-18 19:17:32 -05:00
Adin Schmahmann
ce693d7e81
Merge pull request #7924 from ipfs/release-v0.8.0
Release v0.8.0
2021-02-18 17:55:34 -05:00
Adin Schmahmann
30fa364b51 update CHANGELOG for v0.8.0 2021-02-18 17:52:41 -05:00
Adin Schmahmann
9a20c9ebf2 Release v0.8.0 2021-02-18 16:58:12 -05:00
Marcin Rataj
3d8321ab2e docs: RepinInterval
(cherry picked from commit 04838257f8)
2021-02-18 16:55:53 -05:00
Marcin Rataj
94dd4be8f8 style: docs/config.md
Co-authored-by: Jessica Schilling <jessica@protocol.ai>
(cherry picked from commit aaa64baaed)
2021-02-18 16:55:46 -05:00
Marcin Rataj
e29ae2e737 style: improved MFS PinName example
Co-authored-by: Adin Schmahmann <adin.schmahmann@gmail.com>
(cherry picked from commit af96ded973)
2021-02-18 16:55:37 -05:00
Marcin Rataj
a40cbb03e1 docs: Pinning.RemoteServices.Policies
(cherry picked from commit c338ed83c7)
2021-02-18 16:54:52 -05:00
gammazero
5e330b2806 Fix build issue with go1.16 2021-02-18 13:52:55 -08:00
Adin Schmahmann
9b8308dc07 update deps
* Update some go libraries to pull in bug fixes. This will fix the s3
  plugin. See https://github.com/ipfs/go-ds-s3/pull/146.
* Update other libraries for more bug fixes.

This is intentionally minimal as I'm filing it against the release
branch.
2021-02-18 16:44:16 -05:00
Marcin Rataj
04838257f8 docs: RepinInterval 2021-02-18 16:01:25 -05:00
Marcin Rataj
aaa64baaed style: docs/config.md
Co-authored-by: Jessica Schilling <jessica@protocol.ai>
2021-02-18 16:01:25 -05:00
Marcin Rataj
af96ded973 style: improved MFS PinName example
Co-authored-by: Adin Schmahmann <adin.schmahmann@gmail.com>
2021-02-18 16:01:25 -05:00