Commit Graph

2448 Commits

Author SHA1 Message Date
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
Gaius b4a390db08
feat: update api version to v2.0.7 (#2560)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-07-25 11:24:56 +08:00
dependabot[bot] c7d02aa108
chore(deps): bump github.com/casbin/casbin/v2 from 2.71.1 to 2.72.1 (#2561)
Bumps [github.com/casbin/casbin/v2](https://github.com/casbin/casbin) from 2.71.1 to 2.72.1.
- [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.71.1...v2.72.1)

---
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-07-25 10:27:44 +08:00
dependabot[bot] a7ef2c3a04
chore(deps): bump k8s.io/component-base from 0.27.2 to 0.27.4 (#2562)
Bumps [k8s.io/component-base](https://github.com/kubernetes/component-base) from 0.27.2 to 0.27.4.
- [Commits](https://github.com/kubernetes/component-base/compare/v0.27.2...v0.27.4)

---
updated-dependencies:
- dependency-name: k8s.io/component-base
  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-07-25 10:27:14 +08:00
dependabot[bot] 0f52e2e0e2
chore(deps): bump google.golang.org/api from 0.131.0 to 0.132.0 (#2564)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.131.0 to 0.132.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.131.0...v0.132.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-07-25 10:26:32 +08:00
dependabot[bot] 700c299699
chore(deps): bump github.com/aws/aws-sdk-go from 1.44.258 to 1.44.306 (#2565)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.258 to 1.44.306.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.258...v1.44.306)

---
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-07-25 10:26:11 +08:00
Gaius b3f23f71a3
feat: update dy7.io/api to v2 (#2558)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-07-20 23:17:57 +08:00
Guangwen Feng 7bc0a0f71e
test: add unit test for Header.has (#2555)
Signed-off-by: Guangwen Feng <fenggw-fnst@fujitsu.com>
2023-07-19 16:56:49 +08:00
dlut_xz be6d8085c7
feat: add finished piece count element in types (#2557)
Signed-off-by: XZ <834756128@qq.com>
2023-07-19 10:28:24 +08:00
Guangwen Feng 94e4b7a5a2
test: add unit test for Request.Context() (#2554)
Signed-off-by: Guangwen Feng <fenggw-fnst@fujitsu.com>
2023-07-18 17:52:40 +08:00