Commit Graph

11257 Commits

Author SHA1 Message Date
Steven Allen
efe6ef905a
Merge pull request #6955 from ipfs/feat/AuHau-encoding-key-names
Introducing EncodedFSKeystore with base32 encoding (#5947)
2020-03-23 18:52:46 -07:00
Steven Allen
0d9d6e9495 ci: checkout working interop commit 2020-03-23 17:46:25 -07:00
Hector Sanjuan
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
Adam Uhlir
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
Steven Allen
6bba527da0
Merge pull request #7024 from ipfs/feat/update-dists
chore: update hard-coded dist URL for repo migrations
2020-03-23 17:03:41 -07:00
Steven Allen
65e2ce74cc
Merge pull request #7023 from ipfs/fix/improve-key-lookup
feat: improve key lookup
2020-03-23 16:36:00 -07:00
Steven Allen
7fa1449e62 chore: update hard-coded dist URL for repo migrations 2020-03-23 16:14:26 -07:00
Steven Allen
b5ad3be060 feat: improve key lookup
* Support peer IDs encoded as CIDs.
* Support looking up the identity key by peer ID.
2020-03-23 15:40:48 -07:00
Steven Allen
7a4752ac9e
Merge pull request #7017 from ipfs/feat/cmd-add-ignore-2
feat(file-ignore): add ignore opts to add cmd
2020-03-20 09:42:24 -07:00
Cornelius Toole
62de9ba9d3 feat(file-ignore): add ignore opts to add cmd
- add the `gitignore` or `ignore options to the add command
2020-03-20 09:22:04 -07:00
Steven Allen
8436146a28
Merge pull request #7016 from ipfs/dependabot/go_modules/github.com/ipfs/go-bitswap-0.2.5
chore(deps): bump github.com/ipfs/go-bitswap from 0.2.4 to 0.2.5
2020-03-19 10:39:13 -07:00
dependabot-preview[bot]
26cd0d4a73
chore(deps): bump github.com/ipfs/go-bitswap from 0.2.4 to 0.2.5
Bumps [github.com/ipfs/go-bitswap](https://github.com/ipfs/go-bitswap) from 0.2.4 to 0.2.5.
- [Release notes](https://github.com/ipfs/go-bitswap/releases)
- [Commits](https://github.com/ipfs/go-bitswap/compare/v0.2.4...v0.2.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-19 17:27:11 +00:00
Steven Allen
99c0feba0b
Merge pull request #7014 from ipfs/dependabot/go_modules/github.com/libp2p/go-libp2p-0.6.1
chore(deps): bump github.com/libp2p/go-libp2p from 0.6.0 to 0.6.1
2020-03-19 10:15:19 -07:00
dependabot-preview[bot]
b8261d6417
chore(deps): bump github.com/libp2p/go-libp2p from 0.6.0 to 0.6.1
Bumps [github.com/libp2p/go-libp2p](https://github.com/libp2p/go-libp2p) from 0.6.0 to 0.6.1.
- [Release notes](https://github.com/libp2p/go-libp2p/releases)
- [Changelog](https://github.com/libp2p/go-libp2p/blob/master/NEWS.md)
- [Commits](https://github.com/libp2p/go-libp2p/compare/v0.6.0...v0.6.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-19 11:30:39 +00:00
Steven Allen
6825097aea
Merge pull request #7012 from ipfs/chore/update-deps
chore: update dependencies
2020-03-18 09:33:33 -07:00
Steven Allen
5b308bb30c chore: update dependencies 2020-03-18 09:17:21 -07:00
Steven Allen
0114869d7e
Merge pull request #6096 from ipfs/feat/gateway-subdomains
feat: gateway subdomains + http proxy mode
2020-03-18 09:05:21 -07:00
Steven Allen
05fe3086a5 fix(sharness): fix sharness tests to take removed bootstrap peers into account 2020-03-18 08:50:40 -07:00
Marcin Rataj
f9567a0a0f fix(gateway): curl without redirect on localhost
When request is sent to http://localhost:8080/ipfs/$cid response has
HTTP 301 status code and "Location" header with redirect destination at
$cid.ipfs.localhost:8080

Redirect is followed by browsersi, but not by commandline tools.
Status 301 is ignored by curl in default mode: it will print response
and won't follow redirect, user needs to add -L for that.

To fix curl, we return correct payload in body of HTTP 301 response,
but set Clear-Site-Data header to ensure Origin sandbox can't be abused.

This requires a surgical workaround:
If Location header is present in ResponseWriter's Header map,
we ensure http.ServeContent() returns HTTP 301

Context: https://github.com/ipfs/go-ipfs/pull/6982

License: MIT
Signed-off-by: Marcin Rataj <lidel@lidel.org>
2020-03-18 08:50:40 -07: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
Marcin Rataj
848d4c7f18 feat: IPFS_NS_MAP
Allows static DNSLink mappings with IPFS_NS_MAP.

License: MIT
Signed-off-by: Marcin Rataj <lidel@lidel.org>
2020-03-17 19:38:02 -07:00
Steven Allen
72490f7ed0 gateway: simplify/improve dnslink rewrite handling
Instead of adding a new fake header (that could be spoofed by the client...),
just read the original request URI from the request object.

This also removes support for suborigins. They have never been implemented in
browsers and it looks like efforts have stalled. We can add support back if we
need it but, well, maintaining support was going to be more trouble than it was
worth.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2020-03-17 19:34:44 -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
Steven Allen
97401b9e27
Merge pull request #6997 from ipfs/chore/sharness_fixes_2019-03-16
Chore/sharness fixes 2019 03 16
2020-03-17 14:33:22 -07:00
Steven Allen
4acb15d52b
Merge pull request #6998 from ipfs/feat/fifo_support
Support pipes when named on the cli explicitly
2020-03-16 17:41:26 -07:00
Peter Rabbitson
705bee7d3f Support pipes when named on the cli explicitly
Still throws an error when a pipe is encountered during directory recursion
2020-03-16 17:25:33 -07:00
Steven Allen
ce7a449136
Merge pull request #7006 from ipfs/chore/update-bitswap
chore(dep): update bitswap
2020-03-16 15:51:40 -07:00
Steven Allen
f791f693b7 chore(dep): update bitswap
* better logging
* `ipfs bitswap wantlist` now returns both want-haves and want-blocks.
2020-03-16 14:50:31 -07:00
Steven Allen
d4cc0b8aa3
Merge pull request #7002 from ipfs/dependabot/go_modules/github.com/prometheus/client_golang-1.5.1
chore(deps): bump github.com/prometheus/client_golang from 1.5.0 to 1.5.1
2020-03-16 09:35:40 -07:00
Steven Allen
ef41ce2b74
Merge pull request #7003 from ipfs/dependabot/go_modules/github.com/libp2p/go-libp2p-kad-dht-0.5.2
chore(deps): bump github.com/libp2p/go-libp2p-kad-dht from 0.5.1 to 0.5.2
2020-03-16 09:35:30 -07:00
Steven Allen
aa4e8c257a
Merge pull request #7005 from ipfs/fix/7004
chore(dep): update go-libp2p-yamux
2020-03-16 09:35:18 -07:00
Steven Allen
faaf96fa21 chore(dep): update go-libp2p-yamux
fixes a timer race

fixes #7004
2020-03-16 09:01:08 -07:00
dependabot-preview[bot]
f53d2a649d
chore(deps): bump github.com/libp2p/go-libp2p-kad-dht
Bumps [github.com/libp2p/go-libp2p-kad-dht](https://github.com/libp2p/go-libp2p-kad-dht) from 0.5.1 to 0.5.2.
- [Release notes](https://github.com/libp2p/go-libp2p-kad-dht/releases)
- [Commits](https://github.com/libp2p/go-libp2p-kad-dht/compare/v0.5.1...v0.5.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-16 11:28:59 +00:00
dependabot-preview[bot]
5d2a318fb7
chore(deps): bump github.com/prometheus/client_golang
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.5.0 to 1.5.1.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.5.0...v1.5.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-16 11:28:31 +00:00
Steven Allen
5185e8e859
Merge pull request #7000 from CsterKuroi/patch-1
Fix a typo
2020-03-16 00:50:39 -07:00
Kuro1
b4baad6767
Fix a typo
respresent => represent
2020-03-16 15:32:36 +08:00
Peter Rabbitson
51d4383d56 Abort individual sharness tests if a previous instance is present
Before starting each individual test check if a daemon is present with a
trash* directory as its workdir. Exit with failure if this is the case.
2020-03-15 19:57:29 +00:00
Peter Rabbitson
5d3247f9b7 Exclude more concurrency-sensitive dirs from fmt test 2020-03-15 19:51:57 +00:00
Steven Allen
67741060c4
Merge pull request #6993 from ipfs/fix/user-agent
fix: revert changes to the user agent
2020-03-13 14:20:34 -07:00
Steven Allen
e681a3aebe fix: revert changes to the user agent
Go-ipfs user agents usually look like go-ipfs/VERSION/COMMIT_or_EMPTY. However,
we changed this to /go-ipfs/VERSION(/COMMIT)? on master for a while. This change
reverts this to make parsing the user agent simpler.

Co-Authored-By: Oli Evans <oli@tableflip.io>
2020-03-13 13:50:11 -07:00
Steven Allen
edc445d56a
Merge pull request #6994 from ipfs/fix/go-semver
fix: downgrade to a working semver version
2020-03-13 13:30:24 -07:00
Steven Allen
0505995816 fix: downgrade to a working semver version 2020-03-13 13:29:31 -07:00
Steven Allen
e0edbe90eb
Merge pull request #6972 from ipfs/feat/log-identify
feat(peerlog): log protocols/versions
2020-03-13 12:39:33 -07:00
Steven Allen
ba285801b8
Merge pull request #6949 from olizilla/docker-tag-from-ci
feat: docker build and tag from ci
2020-03-13 12:08:22 -07:00
Steven Allen
4292a92f8c
Merge pull request #6992 from ipfs/chore/update-yamux
chore(dep): update deps
2020-03-13 11:32:11 -07:00
Steven Allen
3f0cf057ec chore(dep): update deps 2020-03-13 11:20:46 -07:00
Oli Evans
ec220ddd85
wip: set IMAGE_NAME: ipfs/go-ipfs
License: MIT
Signed-off-by: Oli Evans <oli@tableflip.io>
2020-03-13 16:48:15 +00:00
Oli Evans
427557e903
wip: remove release tag. use more recent docker.
License: MIT
Signed-off-by: Oli Evans <oli@tableflip.io>
2020-03-13 14:31:45 +00:00
Steven Allen
457b6e79ff
Merge pull request #6646 from djdv/feat/GUI-launcher
cmd: ipfs handle GUI environment on Windows
2020-03-12 17:10:58 -07:00
Steven Allen
36afd0b652
Merge pull request #6976 from ipfs/feat/update-bitswap
chore(dep): update bitswap
2020-03-12 17:08:18 -07:00