Hector Sanjuan
7c26f1ecb8
Fix HTTPs with DNS multiaddresses
...
Before we resolved all /dns*/ multiaddresses before we used them.
When using HTTPs, the Go HTTP Client only sees the resolved IP address
and it is unable to negotiate TLS with a cerficate because the request
is not going to the hostname the certificate is signed for, but to
the IP. This leverages a recent feature in go-multiaddr-net
and uses directly the user-provided hostname.
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-12-19 21:15:37 +01:00
Hector Sanjuan
319c41cbf1
Merge pull request #624 from ipfs/libp2p-6.0.29
...
Update to libp2p-6.0.29 (and general dep alignment)
2018-12-19 00:36:34 +01:00
Hector Sanjuan
5e35e97b36
Update to libp2p-6.0.29 (and general dep alignment)
...
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-12-18 23:53:11 +01:00
Hector Sanjuan
862c1eb3ea
Fix #382 : Extract headers from IPFS API requests & apply them to hijacked ones.
...
This commit makes the proxy extract useful fixed headers (like CORS) from
the IPFS daemon API responses and then apply them to the responses
from hijacked endpoints like /add or /repo/stat.
It does this by caching a list of headers from the first IPFS API
response which has them. If we have not performed any proxied request or
managed to obtain the headers we're interested in, this will try triggering a
request to "/api/v0/version" to obtain them first.
This should fix the issues with using Cluster proxy with IPFS Companion and
Chrome.
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-12-18 16:05:12 +01:00
Hector Sanjuan
9f6a1736a5
Merge pull request #613 from ipfs/gx/files2
...
go-ipfs-files 2.0 updates
2018-12-17 15:46:59 +01:00
Hector Sanjuan
11cc0485c7
API/client: Do not clean folders mid-test.
...
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-12-17 14:55:34 +01:00
Hector Sanjuan
ced9f2f7f1
Update to go-ipfs-files 2.0.3
...
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-12-17 14:29:44 +01:00
Hector Sanjuan
15413edbc6
Unrewrite deps
...
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-12-17 14:16:38 +01:00
Łukasz Magiera
406d2b53f8
files2.0: Close subfiles in adder
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-12-17 14:16:38 +01:00
Łukasz Magiera
9b0ff603b8
files2.0: use type helpers
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-12-17 14:16:38 +01:00
Łukasz Magiera
c6944e4376
files2.0: update for no errors from NewMultiFileReader
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-12-17 14:16:38 +01:00
Łukasz Magiera
d0678aad6e
files2.0: fix ContextCancelled test
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-12-17 14:16:38 +01:00
Łukasz Magiera
00df384e1c
go-ipfs-files 2.0 updates
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-12-17 14:16:38 +01:00
Hector Sanjuan
e039c71cdf
Merge pull request #617 from ipfs/issue_616
...
Remove `proxy_` and `Proxy` from proxy config
2018-12-17 13:07:13 +01:00
Hector Sanjuan
9b2f6f7522
Remove proxy_ prefix from testing configurations
...
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-12-17 12:34:04 +01:00
Hector Sanjuan
6eaadcd7c2
Fix proxy config compatibility
...
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-12-17 12:31:03 +01:00
Kishan Sagathiya
3b86a94418
Put a note for deprecating json fields
...
Put a note for deprecating json fields that they are only here to
maintain compatibility and they will be removed in future
Start using env vars starting with `CLUSTER_IPFSPROXY`
License: MIT
Signed-off-by: Kishan Mohanbhai Sagathiya <kishansagathiya@gmail.com>
2018-12-17 08:24:17 +05:30
Kishan Sagathiya
2da12bc59a
Switch to root user to create data directory
...
License: MIT
Signed-off-by: Kishan Mohanbhai Sagathiya <kishansagathiya@gmail.com>
2018-12-13 16:03:22 +05:30
Kishan Sagathiya
8b33dbec03
Remove proxy_
and Proxy
from proxy config
...
Remove proxy_ and Proxy from proxy config objects without breaking
compatibility with previous revisions
Fixes #616
License: MIT
Signed-off-by: Kishan Mohanbhai Sagathiya <kishansagathiya@gmail.com>
2018-12-13 00:21:21 +05:30
Hector Sanjuan
fdfe8def94
Merge pull request #576 from kishansagathiya/issue_453
...
Extract the IPFS Proxy from ipfshttp
2018-12-10 10:38:57 +01:00
Kishan Sagathiya
e21d84dbee
Issue #453 Extract the IPFS Proxy from ipfshttp
...
Warning about old config style(proxy inside ipfs connector) getting
removed in future
License: MIT
Signed-off-by: Kishan Mohanbhai Sagathiya <kishansagathiya@gmail.com>
2018-11-27 10:36:00 +05:30
Kishan Sagathiya
253185ad13
Merge branch 'master' of github.com:ipfs/ipfs-cluster into issue_453
2018-11-12 05:23:44 +05:30
Kishan Sagathiya
f98ed71ff7
Issue #453 Extract the IPFS Proxy from ipfshttp
...
Fixed some messages and comments
License: MIT
Signed-off-by: Kishan Mohanbhai Sagathiya <kishansagathiya@gmail.com>
2018-11-11 21:09:13 +05:30
Kishan Sagathiya
aef68f4101
Issue #453 Extract the IPFS Proxy from ipfshttp
...
Fixed breaking tests
License: MIT
Signed-off-by: Kishan Mohanbhai Sagathiya <kishansagathiya@gmail.com>
2018-11-11 16:23:36 +05:30
Hector Sanjuan
77148e59a8
Merge pull request #609 from ipfs/feat/component-env-cfg
...
add envcfg to rest api
2018-11-09 13:09:13 +01:00
Adrian Lanzafame
e115021fa7
add envcfg to rest api
...
License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
2018-11-09 13:20:25 +10:00
Kishan Sagathiya
41edb04486
Issue #453 Extract the IPFS Proxy from ipfshttp
...
Added test for ipfsproxy config
License: MIT
Signed-off-by: Kishan Mohanbhai Sagathiya <kishansagathiya@gmail.com>
2018-11-04 09:05:53 +05:30
Kishan Sagathiya
56cc3b88d7
Issue #453 Extract the IPFS Proxy from ipfshttp
...
Added test for ipfsproxy
License: MIT
Signed-off-by: Kishan Mohanbhai Sagathiya <kishansagathiya@gmail.com>
2018-11-04 08:57:09 +05:30
Kishan Sagathiya
411eea664c
Merge branch 'master' of github.com:ipfs/ipfs-cluster into issue_453
2018-11-03 20:24:15 +05:30
Kishan Sagathiya
a741eb42ab
Issue #453 Extract the IPFS Proxy from ipfshttp
...
We want to maintain configuration compatibility and still recognize the
proxy configuration options in the ipfshttp connector configuration
section.
Check if there is a proxy configuration section.
If not create one with the options from the ipfshttp section (if they
are defined, otherwise do nothing).
This implementation utilizes the fact that json object can be
unmarshelled to a struct whose elements are a subset of the json object
License: MIT
Signed-off-by: Kishan Mohanbhai Sagathiya <kishansagathiya@gmail.com>
2018-11-03 16:15:34 +05:30
Hector Sanjuan
6f72ab2e67
Update 0.7.0 date
2018-11-01 22:55:56 +01:00
Hector Sanjuan
1b33e2fc9f
gx publish 0.7.0
...
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-11-01 19:49:36 +01:00
Hector Sanjuan
7e1ddd90a7
Release 0.7.0
...
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-11-01 19:49:07 +01:00
Hector Sanjuan
8aae89a7e5
Merge pull request #607 from ipfs/test/clean-shard-testing
...
Remove shard testing folders
2018-11-01 19:46:50 +01:00
Hector Sanjuan
b47eca40b0
Update changelog
...
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-11-01 19:15:08 +01:00
Hector Sanjuan
1d924bfc49
Remove shard testing folders
...
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-11-01 19:15:08 +01:00
Hector Sanjuan
e20429f536
Merge pull request #606 from ipfs/0.7.0/changelog
...
Changelog for v0.7.0
2018-11-01 18:56:02 +01:00
Hector Sanjuan
d05e8627c5
Changelog for v0.7.0
...
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-11-01 18:54:55 +01:00
Hector Sanjuan
9ec6eb430a
Merge pull request #605 from ipfs/fix/proxy-paths
...
Fix the paths handled by the proxy
2018-11-01 14:20:35 +01:00
Hector Sanjuan
e46a073cc6
Merge pull request #603 from ipfs/fix/remote-error
...
Fix #600 : Remote pins should not error
2018-11-01 14:16:53 +01:00
Kishan Sagathiya
3a5ad6111a
Issue #453 Extract the IPFS Proxy from ipfshttp
...
Changes as requieed
Rename IPFSProxy struct to Server
License: MIT
Signed-off-by: Kishan Mohanbhai Sagathiya <kishansagathiya@gmail.com>
2018-11-01 15:54:05 +05:30
Hector Sanjuan
74311c5969
Address review comments
...
Remove unused code from tests
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-11-01 11:12:38 +01:00
Hector Sanjuan
91ddce4963
Fix the paths handled by the proxy
...
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-11-01 10:36:14 +01:00
Hector Sanjuan
17da7eae7f
Merge pull request #604 from ipfs/update/gx-versions3
...
Update gx and gx-go to latest stable
2018-11-01 09:41:24 +01:00
Hector Sanjuan
f9a3d46258
Update gx and gx-go to latest stable
...
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-10-31 17:12:12 +01:00
Hector Sanjuan
a7787029cb
Fix #600 : Remote pins should not error
...
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-10-30 16:33:05 +01:00
Hector Sanjuan
54fd4fbf4a
Merge pull request #601 from ipfs/feat/improve-pin-serial
...
Feat/improve pin serial
2018-10-30 12:41:36 +01:00
Adrian Lanzafame
4f194f52d3
use DecodeCid in log_op
...
License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
2018-10-30 21:07:27 +10:00
Adrian Lanzafame
91358e1ed1
only call ToPin when absolutely required
...
License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
2018-10-30 21:07:26 +10:00
Adrian Lanzafame
a89a6da45b
use DecodeCid in rpc_api
...
License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
2018-10-30 21:07:26 +10:00