Adin Schmahmann
353dd49be2
refactor: switch gateway code to new API from go-libipfs ( #9681 )
...
Co-authored-by: Marcin Rataj <lidel@lidel.org>
Co-authored-by: Henrique Dias <hacdias@gmail.com>
2023-03-30 13:20:37 +00:00
Jorropo
3ab1086f71
chore: migrate go-libipfs to boxo
...
Resolves #9677 , #9676 , #9675 , #9736
2023-03-28 22:05:25 -04:00
Jorropo
1e3b6c9857
feat: add tracing to the commands client
2023-03-28 22:05:25 -04:00
Henrique Dias
88d431c812
feat: remove writable gateway ( #9743 )
...
Co-authored-by: Marcin Rataj <lidel@lidel.org>
2023-03-27 15:19:55 +02:00
Henrique Dias
ed671e8489
fix: canonicalize user defined headers
2023-03-17 23:40:35 +01:00
Henrique Dias
63b2a0e069
fix: apply API.HTTPHeaders to /webui redirect
2023-03-17 15:14:10 +01:00
Henrique Dias
ed4d6b7d41
test: remove gateway tests migrated to go-libipfs
2023-02-15 00:24:36 +01:00
Henrique Dias
b58356939e
refactor(gw): move Host (DNSLink and subdomain) handling to go-libipfs ( #9624 )
...
Co-authored-by: Marcin Rataj <lidel@lidel.org>
2023-02-07 03:44:24 +01:00
Henrique Dias
14649aa8ba
refactor: new go-libipfs/gateway API, deprecate Gateway.Writable ( #9616 )
2023-02-02 02:50:46 +01:00
Henrique Dias
8d3b3154c9
refactor: use gateway from go-libipfs ( #9588 )
2023-01-31 11:02:31 +01:00
Dan McQuillan
7cb8082bbe
feat: ipfs-webui 2.22.0
2023-01-28 08:32:50 +01:00
Henrique Dias
a3c70a11e6
feat(gateway): IPNS record response format (IPIP-351) ( #9399 )
...
* feat(gateway): IPNS record response format
* docs(rpc): mark as experimental: routing provide, get, put
Co-authored-by: Marcin Rataj <lidel@lidel.org>
2023-01-27 04:46:50 +01:00
Henrique Dias
94e7f79805
fix(ipns): honour --ttl flag in 'ipfs name publish' ( #9471 )
...
* fix: honour --ttl flag in 'ipfs name publish'
* docs(cli): ipfs name inspect --help
Co-authored-by: Marcin Rataj <lidel@lidel.org>
2023-01-27 02:33:13 +01:00
Jorropo
f20c980f2d
chore: bump go-libipfs to replace go-block-format
...
Includes changes from:
- https://github.com/ipfs/go-block-format/pull/37
- https://github.com/ipfs/go-libipfs/pull/58
2023-01-26 16:55:48 +01:00
Henrique Dias
c706c638fc
fix(gateway): undesired conversions to dag-json and friends ( #9566 )
...
* fix(gateway): do not convert unixfs/raw into dag-* unless explicit
* fix(gateway): keep only dag-json|dag-cbor handling
* fix: allow requesting dag-json as application/json
- adds bunch of additional tests including JSON file on UnixFS
- fix: dag-json codec (0x0129) can be returned as plain json
- fix: json codec (0x0200) cna be retrurned as plain json
* fix: using ?format|Accept with CID w/ codec works
* docs(changelog): cbor and json on gateway
Co-authored-by: Marcin Rataj <lidel@lidel.org>
2023-01-21 04:21:18 +01:00
Henrique Dias
255e64e49e
chore: migrate from go-ipfs-files to go-libipfs/files ( #9535 )
2023-01-13 14:27:03 +01:00
Marcin Rataj
f6825ab662
fix(gateway): JSON when Accept is a list
...
Block/CAR responses always had single explicit type, and we did not bother
with implementing/testing lists.
With the introduction of JSON people may start passing a list.
This is the most basic fix which will return on the first matching
type (in order). This does not implements weights (can be added in
future, if needed).
Closes #9520
2023-01-11 22:18:52 +01:00
Henrique Dias
7bdb341132
feat: fast directory listings with DAG Size column ( #9481 )
...
Co-authored-by: Marcin Rataj <lidel@lidel.org>
2022-12-12 21:45:13 +01:00
Marcin Rataj
15093a0011
fix: support /quic-v1 in webui v0.21
...
https://github.com/ipfs/ipfs-webui/releases/tag/v2.21.0
2022-12-10 00:45:50 +01:00
Henrique Dias
fdd19656c4
feat(gateway): JSON and CBOR response formats (IPIP-328) ( #9335 )
...
https://github.com/ipfs/kubo/pull/9335
https://github.com/ipfs/specs/pull/328
Co-authored-by: Marcin Rataj <lidel@lidel.org>
2022-12-05 20:22:26 +01:00
Marcin Rataj
72262a8e10
feat: ipfs-webui 2.20.0
...
https://github.com/ipfs/ipfs-webui/releases/tag/v2.20.0
2022-11-10 01:11:08 +01:00
Henrique Dias
a210abd743
feat(gateway): TAR response format ( #9029 )
...
Implementation of IPIP-288 (https://github.com/ipfs/specs/pull/288 )
Co-authored-by: Marcin Rataj <lidel@lidel.org>
2022-11-09 19:20:33 +01:00
Russell Dempsey
396660956f
feat: webui@v2.19.0
2022-10-14 21:15:36 +02:00
Henrique Dias
4291d6b236
fix: add InlineDNSLink flag to PublicGateways config ( #9328 )
...
https://github.com/ipfs/kubo/issues/9243
Co-authored-by: Marcin Rataj <lidel@lidel.org>
2022-10-11 15:45:43 +02:00
Gus Eggert
e550d9e476
ci: add stylecheck to golangci-lint ( #9334 )
2022-10-06 10:18:40 -04:00
Justin Johnson
bcaacdd6c3
feat(gateway): _redirects file support ( #8890 )
...
https://github.com/ipfs/kubo/pull/8890
https://github.com/ipfs/specs/pull/290
2022-09-23 18:44:19 +02:00
Jorropo
74aaf37cec
chore: bump go-libp2p v0.23.1
...
This does not include any WebTransport config code in Kubo, this will be done later in an other PR.
2022-09-21 23:16:03 +02:00
Russell Dempsey
87dc8de461
feat: ipfs-webui v2.18.1
2022-09-13 23:40:49 +02:00
Russell Dempsey
007295d34d
feat: ipfs-webui v2.18.0 ( #9262 )
...
https://github.com/ipfs/ipfs-webui/releases/tag/v2.18.0
2022-09-12 15:40:46 +02:00
Jorropo
196887cbe5
chore: bump go-libp2p v0.22.0 & go1.18&go1.19
...
Fixes : #9225
2022-09-09 17:09:38 +02:00
Jorropo
df22205385
fix(gw): send 200 for empty files
...
Fixes #9238
2022-09-01 01:04:48 +02:00
Marcin Rataj
c9693edbc5
chore: remove Gateway.PathPrefixes
...
Closes #7702
2022-08-30 15:38:04 +02:00
Marcin Rataj
924ab0616b
Merge pull request #9070 from iand/feat-modular-gateway
...
feat: make corehttp a reusable component
2022-08-17 03:25:29 +02:00
Marco Munizaga
27b046f98e
Move register exporter to metrics file
2022-08-15 14:12:21 -07:00
Marcin Rataj
837f6ee92b
chore: switch to dist.ipfs.tech
...
Part of https://github.com/protocol/bifrost-infra/issues/2018
ensures the domain used for fetching migrations is not
impacted by ipfs.io being blocked at DNS level by some ISPs.
2022-08-12 23:42:17 +02:00
Seungbae Yu
cb280cbf16
docs: replace docs.ipfs.io with docs.ipfs.tech ( #9158 )
...
* docs: fix redirecting URL in README.md
* all: replace `docs.ipfs.io` with `docs.ipfs.tech`
* apply suggestions from code review
Co-authored-by: Marcin Rataj <lidel@lidel.org>
2022-08-05 19:01:10 +03:00
Marcin Rataj
7992025254
fix(gw): 404 when a valid DAG is missing link
2022-07-23 00:16:31 +02:00
Marcin Rataj
3182986151
fix(gw): ensure dir URLs have trailing slash
...
This fixes a regression around directory listing and index.html hosting.
Seems that during one of recent refactors code changed and we no longer
check for trailing slash in HTTP request path, but look at content path
instead.
This cleans this up and also ensures dir behavior is the same for
both index.html hosting and dir-index-html (generated listing).
It also adds more tests so we catch any future regressions.
2022-07-21 21:06:18 +02:00
Ian Davis
f8cdd96c2a
Clarify offlineApi argument
2022-07-21 15:14:52 +01:00
Ian Davis
2ece5556f0
Change AccessControlHeaders funtion to modify an existing set of headers
2022-07-21 15:09:09 +01:00
Ian Davis
f4d87419ce
feat: make corehttp a reusable component
2022-07-21 15:09:06 +01:00
Marcin Rataj
e832cc2c1d
fix(gw): cache-control of index.html websites
...
This fixes a regression introduced in 0.13.0, where websites hosted via
index.html placed in UnixFS directory were always returned with
Cache-Control: public, max-age=29030400, immutable
even when loaded from mutable /ipns/ contentPath.
2022-07-21 02:02:21 +00:00
Marcin Rataj
a6687744c7
fix(gw): no backlink when listing root dir
...
Closes #9071
2022-07-18 23:35:44 +00:00
Marcin Rataj
58aaee00f8
feat(gw): Cache-Control: only-if-cached
...
This implements the only-if-cached behavior documented in specs:
https://github.com/ipfs/specs/blob/main/http-gateways/PATH_GATEWAY.md#cache-control-request-header
https://github.com/ipfs/specs/blob/main/http-gateways/PATH_GATEWAY.md#only-if-cached-head-behavior
2022-07-07 08:49:26 +02:00
Russell Dempsey
fbd65e0c8d
chore(deps): webui v2.15.1
...
https://github.com/ipfs/ipfs-webui/releases/tag/v2.15.1
2022-07-07 01:45:19 +02:00
Marcin Rataj
9dbc9dfeb2
fix(cmds): use kubo in CheckVersionOption
...
Using both names to avoid dev problems during the transition from go-ipfs 0.13 to kubo 0.14
2022-07-06 23:08:31 +02:00
Marcin Rataj
82467bc936
refactor: rename to kubo
2022-07-06 18:40:37 +02:00
Marcin Rataj
289e465f05
fix: correct cache-control in car responses
...
Context: https://github.com/ipfs/specs/pull/295
2022-07-06 18:34:12 +02:00
Jorropo
cbf5fdae55
chore: update go-car
2022-07-06 15:30:29 +02:00
Adin Schmahmann
123f1f61e0
Merge pull request #9038 from ipfs/update-libp2p-v020
...
update go-libp2p to v0.20.3
2022-06-30 15:21:23 -04:00