Commit Graph

1907 Commits

Author SHA1 Message Date
Gaius 931cd3fb6a
fix: list personal access token with query string (#2624)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-08-11 19:30:56 +08:00
Gaius 25d91ec739
feat: change cache size in manager (#2623)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-08-11 18:55:57 +08:00
Gaius 9e1bb52f2b
feat: net.JoinHostPort replace fmt.Sprintf (#2622)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-08-11 14:03:01 +08:00
Gaius a5b0f7404d
feat: download tiny file with https scheme (#2617)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-08-10 16:29:28 +08:00
Gaius afa665c091
fix: incorrect log message in the scheduler (#2618)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-08-10 11:25:54 +08:00
Gaius 094b79d5fd
fix: usage of architecture-dependent int type in the scheduler (#2619)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-08-09 19:46:57 +08:00
Gaius e621fce3de
chore: update d7y.io/api version to v2.0.18 (#2616)
chore: update d7y.io/api version to v2.0.19

Add message required validation to url_meta and
optimize regex for the download digest.

Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-08-09 16:51:24 +08:00
Gaius d9e8b28eb4
fix: manager generates mTLS certificates for arbitrary IP addresses (#2615)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-08-09 16:20:42 +08:00
Gaius 77c91cb1e5
feat: add lock to dag vertex and replace rand.Seed with rand.New (#2614)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-08-09 14:53:47 +08:00
Gaius 05a66805cc
fix: directories created via os.MkdirAll are not checked for permissions (#2613)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-08-09 13:52:26 +08:00
Gaius 7f67bc52ab
feat: add tls client config for preheat in manager (#2612)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-08-08 22:54:19 +08:00
Gaius da7e305832
feat: add NewSafeDialer and fix ssrf in manager preheat api (#2611)
fix: add NewSafeDialer and fix ssrf in manager preheat api

Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-08-08 20:02:06 +08:00
Jim Ma 9cc9fa27a6
fix: invalid error handling (#2610)
Signed-off-by: Jim Ma <majinjing3@gmail.com>
2023-08-08 15:35:20 +08:00
Gaius bd140f1104
refactor: file close error
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-08-08 12:08:15 +08:00
Jim Ma 342438eae6
chore: optimize unhandled file close error (#2599)
Signed-off-by: Jim Ma <majinjing3@gmail.com>
2023-08-08 11:48:29 +08:00
dependabot[bot] 94462502a9
chore(deps): bump github.com/go-playground/validator/v10 from 10.14.1 to 10.15.0 (#2608)
chore(deps): bump github.com/go-playground/validator/v10

Bumps [github.com/go-playground/validator/v10](https://github.com/go-playground/validator) from 10.14.1 to 10.15.0.
- [Release notes](https://github.com/go-playground/validator/releases)
- [Commits](https://github.com/go-playground/validator/compare/v10.14.1...v10.15.0)

---
updated-dependencies:
- dependency-name: github.com/go-playground/validator/v10
  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>
2023-08-08 11:44:40 +08:00
dependabot[bot] 761f5efe44
chore(deps): bump github.com/aws/aws-sdk-go from 1.44.312 to 1.44.317 (#2606)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.312 to 1.44.317.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.312...v1.44.317)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-08 11:43:50 +08:00
dependabot[bot] ae0b2a933c
chore(deps): bump golang.org/x/oauth2 from 0.10.0 to 0.11.0 (#2605)
Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.10.0 to 0.11.0.
- [Commits](https://github.com/golang/oauth2/compare/v0.10.0...v0.11.0)

---
updated-dependencies:
- dependency-name: golang.org/x/oauth2
  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>
2023-08-08 11:43:13 +08:00
Jim Ma 1b9d2b03d7
fix: improper use strings.TrimLeft (#2603)
Signed-off-by: Jim Ma <majinjing3@gmail.com>
2023-08-07 17:55:27 +08:00
Jim Ma a64140ff72
fix: potential nil panic (#2602)
Signed-off-by: Jim Ma <majinjing3@gmail.com>
2023-08-07 17:55:03 +08:00
Jim Ma dcea13aa47
chore: use subtle compare to verify proxy auth (#2601)
Signed-off-by: Jim Ma <majinjing3@gmail.com>
2023-08-07 17:54:39 +08:00
Gaius c55148b726
feat: change default cluster name to cluster-1 (#2604)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-08-07 17:53:28 +08:00
Gaius 8f6f20b604
chore: release v2.1.0 (#2597)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-08-04 14:52:53 +08:00
Gaius c82d2f777f
chore: update submodule version (#2596)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-08-03 22:35:16 +08:00
Gaius a966c04f66
feat: use unscoped delete for resource in manager (#2595)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-08-03 15:01:49 +08:00
Gaius a151be1cbb
feat: create seed peer with active state in manager (#2593)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-08-03 10:52:34 +08:00
Gaius db82dd9e31
feat: change seed peer state to active in UpdateSeedPeer api (#2592)
feat: update seed peer state to active

Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-08-03 10:26:01 +08:00
Gaius 733b938862
feat: implement DeleteSeedPeer api in manager (#2591)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-08-03 10:25:32 +08:00
Gaius b7231818e9
feat: add personal access token middleware to open api (#2590)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-08-01 15:18:06 +08:00
dependabot[bot] 58f486a4ed
chore(deps): bump github.com/aliyun/aliyun-oss-go-sdk from 2.2.7+incompatible to 2.2.8+incompatible (#2588)
chore(deps): bump github.com/aliyun/aliyun-oss-go-sdk

Bumps [github.com/aliyun/aliyun-oss-go-sdk](https://github.com/aliyun/aliyun-oss-go-sdk) from 2.2.7+incompatible to 2.2.8+incompatible.
- [Release notes](https://github.com/aliyun/aliyun-oss-go-sdk/releases)
- [Changelog](https://github.com/aliyun/aliyun-oss-go-sdk/blob/master/CHANGELOG.md)
- [Commits](https://github.com/aliyun/aliyun-oss-go-sdk/compare/v2.2.7...v2.2.8)

---
updated-dependencies:
- dependency-name: github.com/aliyun/aliyun-oss-go-sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-01 14:05:19 +08:00
dependabot[bot] a478be6668
chore(deps): bump google.golang.org/api from 0.132.0 to 0.134.0 (#2587)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.132.0 to 0.134.0.
- [Release notes](https://github.com/googleapis/google-api-go-client/releases)
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md)
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.132.0...v0.134.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  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>
2023-08-01 14:04:52 +08:00
dependabot[bot] 310a7178d4
chore(deps): bump github.com/onsi/gomega from 1.27.8 to 1.27.10 (#2586)
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.27.8 to 1.27.10.
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/gomega/compare/v1.27.8...v1.27.10)

---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-01 14:04:27 +08:00
dependabot[bot] e12523aa57
chore(deps): bump github.com/casbin/casbin/v2 from 2.72.1 to 2.73.0 (#2585)
Bumps [github.com/casbin/casbin/v2](https://github.com/casbin/casbin) from 2.72.1 to 2.73.0.
- [Release notes](https://github.com/casbin/casbin/releases)
- [Changelog](https://github.com/casbin/casbin/blob/master/.releaserc.json)
- [Commits](https://github.com/casbin/casbin/compare/v2.72.1...v2.73.0)

---
updated-dependencies:
- dependency-name: github.com/casbin/casbin/v2
  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>
2023-08-01 12:25:24 +08:00
dependabot[bot] 0f25876eee
chore(deps): bump github.com/aws/aws-sdk-go from 1.44.306 to 1.44.312 (#2584)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.306 to 1.44.312.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.306...v1.44.312)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-01 12:24:35 +08:00
Guangwen Feng 8c82fb6290
test: add unit test for seedPeerClient.Addrs (#2589)
Signed-off-by: Guangwen Feng <fenggw-fnst@fujitsu.com>
2023-08-01 12:06:52 +08:00
Gaius d894aff384
feat: add personal access tokens api to rest server (#2583)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-07-31 21:54:59 +08:00
Gaius 75ddb8b554
feat: support tls in manager rest server (#2580)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-07-31 16:36:57 +08:00
Gaius 029983008a
refactor: support for JuiceFS objectStorage implementation (#2579)
Refer to PR #2578.

Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-07-31 14:00:03 +08:00
tan ding f1fbfdeb81
feat: provide support for JuiceFS objectStorage implementation (#2578) 2023-07-31 10:44:21 +08:00
Gaius cb41c0e454
feat: update api version (#2577)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-07-28 16:19:04 +08:00
Jim Ma 3044b867bd
chore: clean temporary file when backsource error (#2575)
Signed-off-by: Jim Ma <majinjing3@gmail.com>
2023-07-28 14:44:53 +08:00
Guangwen Feng d2aaa0835f
test: add unit tests for PieceDownloader (#2570)
Signed-off-by: Guangwen Feng <fenggw-fnst@fujitsu.com>
2023-07-26 20:41:29 +08:00
Gaius 55cb75247f
feat: change per_page to 1000 (#2576)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-07-26 20:21:44 +08:00
Gaius 96ec90ec80
fix: remove archives.rlcp in .goreleaser.yaml refer to https://gorele… (#2573)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-07-25 21:39:53 +08:00
Gaius 22e7d629aa
fix: response of cluster rest api (#2572)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-07-25 21:28:52 +08:00
Min 864943f418
chore: change tainer address port from 9000 to 9090 in scheduler (#2571)
Signed-off-by: huangmin <2107139596@qq.com>
2023-07-25 17:32:02 +08:00
Guangwen Feng 2bc537d306
test: add unit test for Header.get (#2568)
Signed-off-by: Guangwen Feng <fenggw-fnst@fujitsu.com>
2023-07-25 16:48:14 +08:00
Gaius 3e6a5fc4c0
chore: change trainer expose port from 8002 to 9090 in Dockerfile (#2569)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-07-25 16:46:51 +08:00
Gaius 778b90c718
feat: add optional to build information (#2567)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-07-25 15:15:40 +08:00
Gaius bd3d76a97c
feat: update api version to 2.0.8 (#2566)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-07-25 13:45:54 +08:00