Commit Graph

13257 Commits

Author SHA1 Message Date
Dave Justice
6774ef9dfd
fix: allow ipfs-companion browser extension to access RPC API (#8690)
* fix: add companion ids to allow origins

- fixes #8689
- Adds the chrome-extension ids for ipfs-companion and
ipfs-companion-beta to the allowed origins list, this
allows us to accesss ipfs api from a manifest v3 extension.
- added tests in t0401-api-browser-security.sh

* fix: companion when custom CORS *-Origin is set

Companion extension should be able to access RPC API even when custom
Access-Control-Allow-Origin is set

Co-authored-by: Marcin Rataj <lidel@lidel.org>
2022-03-17 00:07:52 +01:00
Lucas Molas
e14f580ba7
Merge pull request #8638 from ipfs/schomatis/fix/core/node/unwrap-fx-error
fix(core/node): unwrap fx error in node construction
2022-03-16 19:45:51 -03:00
Lucas Molas
519863ecab fix(core/node): unwrap fx error in node construction 2022-03-16 19:32:31 -03:00
Gus Eggert
bc33ed4c35
Update PATCH_RELEASE_TEMPLATE.md 2022-03-16 17:50:46 -04:00
Gus Eggert
5e1b2248c5
feat: add full goroutine stack dump (#8790) 2022-03-16 09:42:22 -04:00
Lucas Molas
04e7e9502e
feat(cmds): extend block size check for dag|block put (#8751)
* feat(cmds): extend block size check for dag|block put
* feat(cmds): block size check for dag import
* style: dag-pb → UnixFS, 1MB → 1MiB

Co-authored-by: Marcin Rataj <lidel@lidel.org>
2022-03-11 23:23:11 +01:00
Gus Eggert
0487f03eae
feat: add endpoint for enabling block profiling (#8469) 2022-03-11 14:32:59 -05:00
Lucas Molas
199659ab77
fix(cmds): option for progress bar in cat/get (#8686)
* fix(cmds): option for progress bar in cat/get

* defer bar.Finish()
2022-03-11 14:25:46 -05:00
Adin Schmahmann
eafa1c7345
docs: note the default reprovider strategy as all (#8603) 2022-03-10 01:42:33 -08:00
Gus Eggert
816a128aaf
fix: listen on loopback for API and gateway ports in docker-compose.yaml (#8773) 2022-03-09 10:31:07 -05:00
godcong
be3dbc2bd2
fix(discovery): fix daemon not starting due to mdns startup failure (#8704) 2022-03-09 07:08:24 -08:00
Marcin Rataj
83b3ec4a61
Merge pull request #8756 from laurentsenta/feat/add-back-ipfs-config
Move go-ipfs-config back into go-ipfs,
close https://github.com/ipfs/go-ipfs-config/issues/151
2022-03-09 01:15:08 +01:00
Laurent Senta
6379013e41 ci: tweak example testing to pass with internal config package 2022-03-04 09:45:16 +01:00
Laurent Senta
8d549f03f3 fix: rewrite dependencies over the go-ipfs-config package 2022-03-04 09:45:16 +01:00
Laurent Senta
c9cf47dad5 config: remove go-ipfs-config code 2022-03-04 09:45:16 +01:00
Laurent Senta
783092ea9f Merge remote-tracking branch 'config/master' into feat/add-back-ipfs-config 2022-03-04 09:44:27 +01:00
Marcin Rataj
d5ad847e05
feat: ipfs-webui v2.15 (#8712)
Release Notes:
https://github.com/ipfs/ipfs-webui/releases/tag/v2.15.0
2022-03-01 19:03:06 +01:00
Marcin Rataj
caba3b2643
feat: X-Ipfs-Roots for smarter HTTP caches (#8720) 2022-03-01 09:04:31 -08:00
Gus Eggert
10ff11b4ca
chore: add instructions for Chocolatey release 2022-03-01 10:35:19 -05:00
Steven Allen
da08acef38
Merge pull request #8750 from ipfs/fix-muxer-prios
fix prioritization of stream muxers
2022-02-28 12:05:25 +00:00
Marten Seemann
3674b662db add a test case for libp2p option prioritization 2022-02-28 15:26:06 +04:00
Marten Seemann
ec46f1e6e4 fix prioritization of stream muxers 2022-02-25 11:44:47 +04:00
Lucas Molas
3ea5631f9a
fix(cmds/keystore): do not allow to import keys we don't generate (#8733) 2022-02-18 23:42:40 +01:00
Adin Schmahmann
686993f6f2
docs: add Internal.UnixFSShardingSizeThreshold (#8723)
Co-authored-by: Marcin Rataj <lidel@lidel.org>
2022-02-18 23:37:55 +01:00
Will
bfa9d3db99
feat(cmd): add silent option for repo gc (#7147)
* feat(cmd): add silent option repo gc command

closes #7129

* test(cmd): add test case for silent option for command repo gc
* fix: no emit on server with --silent

This removes unnecessary send to the client that does not care

Co-authored-by: Marcin Rataj <lidel@lidel.org>
2022-02-18 22:29:32 +01:00
Adin Schmahmann
9f6cd22ba4 docs(changelog): update v0.12.0 release notes
Add line to the breaking changes section indicating that there's a new version of ipfs-update needed to install go-ipfs v0.12.0
2022-02-18 14:38:09 -05:00
Adin Schmahmann
b565374f7e Merge branch 'release' 2022-02-18 14:20:14 -05:00
Piotr Galar
33423625c7
fix(ci): testground workflow hanging indefinitely (#8741)
* ci: set timeout on testground job
* ci: use testground action which exits early on scheduling failures

Note: this will be continued in https://github.com/ipfs/go-ipfs/issues/8731
2022-02-18 18:25:46 +01:00
Adin Schmahmann
06191dfef3
Merge pull request #8743 from ipfs/release-v0.12.0
Release v0.12.0
2022-02-17 22:24:46 -05:00
Adin Schmahmann
dd7737b931 Release v0.12.0 2022-02-17 21:24:42 -05:00
Adin Schmahmann
51773ac3db docs: v0.12.0 release notes 2022-02-17 21:24:42 -05:00
Adin Schmahmann
815e64f4a6 chore: bump migrations dist.ipfs.io CID to contain fs-repo-11-to-12 v1.0.2 2022-02-17 21:24:42 -05:00
Adin Schmahmann
bf76ebe667 feat: refactor Fetcher interface used for downloading migrations (#8728)
* feat: refactor Fetcher interface used for downloading migrations
* feat: add RetryFetcher for migration downloads
* feat: 3 retries for each HTTP migration download

(cherry picked from commit b1ffc870d5)
2022-02-17 21:24:42 -05:00
Gus Eggert
418bc6e709 feat: log multifetcher errors
This is to make it easier to understand why the multifetcher is
falling back to a different fetcher.

(cherry picked from commit 4f3eb4cdd4)
2022-02-17 21:24:42 -05:00
Marcin Rataj
db85387c67 test: restore ipfs-interop (#8613)
* chore: ipfs@0.61.0

https://github.com/ipfs/js-ipfs/blob/master/packages/ipfs/CHANGELOG.md#0610-2021-12-15

* chore: ipfs-interop@8.0.0

(cherry picked from commit 14046d0002)
2022-02-17 21:24:42 -05:00
dependabot[bot]
5922eab08f
chore(deps): bump go.uber.org/fx from 1.15.0 to 1.16.0 (#8681)
Bumps [go.uber.org/fx](https://github.com/uber-go/fx) from 1.15.0 to 1.16.0.
- [Release notes](https://github.com/uber-go/fx/releases)
- [Changelog](https://github.com/uber-go/fx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/uber-go/fx/compare/v1.15.0...v1.16.0)

---
updated-dependencies:
- dependency-name: go.uber.org/fx
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-16 09:16:30 -05:00
Volker Mische
a049ba9d17
fix: installation without sudo (#8715)
* fix: installation without sudo

I think it's good practice that users don't need to run `sudo`
to install something just to try it out. With this change, the
local bin directory is tried first, which usually is also in the
`PATH`. This way the installation script can be run without
`sudo` and should still work.

* fix: try local path last and support spaces in $HOME

Try the `$HOME/.local/bin` path last, so that the script is backwards
compatible. Also make sure that it works even if there are spaces in
the directory set by `$HOME`.
2022-02-16 08:54:29 -05:00
Dimitris Apostolou
b2efcf5ce3
Fix typos (#8726) 2022-02-15 18:50:09 -05:00
Nato Boram
ef63822ef0
fix(build): Recognize Go Beta versions in makefile (#8677)
* 🩹 Fix building with beta Go versions

* ✏️ Use `[:space:]` to be more canonical
2022-02-15 17:47:48 -05:00
Lucas Molas
898065e09c
chore(cmds): encapsulate ipfs rm logic in another function (#8574) 2022-02-15 17:30:47 -05:00
Feiran Yang
e93d6fbfb1
feat: warn user when 'pin remote add' while offline (#8621)
* feat: add warning message when the local node is offline for remote pinning

* feat: check is node is online

* feat: add test in t0700-remotepin.sh

* feat: use grep and fix the test

* fix: print to stdout only when --enc=text

This ensures we don't break JSON produced by --enc=json

Co-authored-by: Marcin Rataj <lidel@lidel.org>
2022-02-15 17:19:53 -05:00
Manuel Alonso
edb32ac3d7
chore(gateway): debug logging for the http requests (#8518)
* chore(gateway): better logging for the http requests

* chore(gateway): removed defer and add more data to the final log

* chore(gateway): debug logging refactor

* chore(gateway): use debug w/o context when only msg

* doc: add cmd for log level

* chore: add more logs and address fedback

* chore(gateway): log subdomains and from=requestURI, refactor

* chore(gateway): fix debug redirect
2022-02-15 17:13:09 -05:00
odanado
0216bae307
docker: build for arm cpu (#8633)
ref: #4931
2022-02-15 16:54:47 -05:00
Steven Allen
62979db8f8
Merge pull request #8684 from ipfs/fix/faster-ci-gobuild
fix(ci): faster gobuild job
2022-02-11 17:17:40 -08:00
Adin Schmahmann
b1ffc870d5
feat: refactor Fetcher interface used for downloading migrations (#8728)
* feat: refactor Fetcher interface used for downloading migrations
* feat: add RetryFetcher for migration downloads
* feat: 3 retries for each HTTP migration download
2022-02-11 11:57:51 -08:00
Gus Eggert
4f3eb4cdd4 feat: log multifetcher errors
This is to make it easier to understand why the multifetcher is
falling back to a different fetcher.
2022-02-11 11:48:23 -05:00
Adin Schmahmann
ebf86718c8 chore: update go-path 2022-02-11 09:19:20 -05:00
Marcin Rataj
f9643a61d7
docs: optionalInteger|String|Duration (#8729) 2022-02-10 23:52:18 +01:00
Thibault Meunier
a93907a40f
feat: DNS.MaxCacheTTL for DNS-over-HTTPS resolvers (#8615)
* feat: Add MaxCacheTTL option for DNS-over-HTTPS resolvers
* Update libp2p/go-doh-resolver dependencies to support Options
* feat: Add `DNS.MaxCacheTTL` config documentation
* docs: DNS.MaxCacheTTL
* chore: go-ipfs-config@v0.19.0
Co-authored-by: Gus Eggert <gus@gus.dev>
Co-authored-by: Marcin Rataj <lidel@lidel.org>
2022-02-10 22:26:14 +01:00
Lucas Molas
a494f48a9d
feat(cmds): ipfs id: support --offline option (#8626)
* feat(cmds): ipfs id: add offline option
* docs: clarify why 'ipfs id <peer>' in offline mode

Co-authored-by: Marcin Rataj <lidel@lidel.org>
2022-02-10 20:42:32 +01:00