Commit Graph

12296 Commits

Author SHA1 Message Date
stonezdj(Daojun Zhang)
f808f33cca
Add user login event to audit log (#21415)
Add common event handler
  Register login event
  Update previous audit log event redirect to auditlogext table

Signed-off-by: stonezdj <stone.zhang@broadcom.com>
2025-01-23 15:55:22 +08:00
miner
39b2898e18
update exporter docker build para (#21448)
Signed-off-by: yminer <miner.yang@broadcom.com>
Co-authored-by: yminer <miner.yang@broadcom.com>
Co-authored-by: Orlix <7236111+OrlinVasilev@users.noreply.github.com>
2025-01-22 11:23:30 +00:00
dependabot[bot]
cb794e7f86
chore(deps): bump go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux from 0.57.0 to 0.59.0 in /src (#21439)
chore(deps): bump go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux

Bumps [go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux](https://github.com/open-telemetry/opentelemetry-go-contrib) from 0.57.0 to 0.59.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go-contrib/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-go-contrib/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-go-contrib/compare/zpages/v0.57.0...zpages/v0.59.0)

---
updated-dependencies:
- dependency-name: go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux
  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>
Co-authored-by: miner <yminer@vmware.com>
2025-01-22 10:26:55 +00:00
dependabot[bot]
8078b9b423
chore(deps): bump k8s.io/client-go from 0.31.1 to 0.32.1 in /src (#21436)
Bumps [k8s.io/client-go](https://github.com/kubernetes/client-go) from 0.31.1 to 0.32.1.
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes/client-go/compare/v0.31.1...v0.32.1)

---
updated-dependencies:
- dependency-name: k8s.io/client-go
  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>
2025-01-22 08:25:45 +00:00
dependabot[bot]
91a0edc19b
chore(deps): bump github.com/aliyun/alibaba-cloud-sdk-go from 1.63.80 to 1.63.84 in /src (#21437)
chore(deps): bump github.com/aliyun/alibaba-cloud-sdk-go in /src

Bumps [github.com/aliyun/alibaba-cloud-sdk-go](https://github.com/aliyun/alibaba-cloud-sdk-go) from 1.63.80 to 1.63.84.
- [Release notes](https://github.com/aliyun/alibaba-cloud-sdk-go/releases)
- [Changelog](https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/ChangeLog.txt)
- [Commits](https://github.com/aliyun/alibaba-cloud-sdk-go/compare/v1.63.80...v1.63.84)

---
updated-dependencies:
- dependency-name: github.com/aliyun/alibaba-cloud-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>
2025-01-22 07:38:03 +00:00
Daniel Jiang
045f829277
Bump up trivy to v0.58.2, trivy adapter to v0.32.3 (#21417) (#21442)
Signed-off-by: Daniel Jiang <daniel.jiang@broadcom.com>
2025-01-21 17:45:09 +01:00
Wang Yan
9e8e647b71
separate buildin values (#21425)
Signed-off-by: wang yan <wangyan@vmware.com>
2025-01-16 14:26:24 +00:00
stonezdj(Daojun Zhang)
4d5bc19866
Implement audit log ext API (#21414)
Signed-off-by: stonezdj <stone.zhang@broadcom.com>
2025-01-16 09:23:25 +00:00
dependabot[bot]
3b655213c0
chore(deps): bump golang.org/x/oauth2 from 0.23.0 to 0.25.0 in /src (#21381)
Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.23.0 to 0.25.0.
- [Commits](https://github.com/golang/oauth2/compare/v0.23.0...v0.25.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>
Co-authored-by: miner <yminer@vmware.com>
2025-01-16 08:02:32 +00:00
Wang Yan
2140a283bf
remove with_signature (#21420)
Signed-off-by: wang yan <wangyan@vmware.com>
2025-01-16 05:51:07 +00:00
dependabot[bot]
b4c3c73391
chore(deps): bump k8s.io/apimachinery from 0.31.2 to 0.32.0 in /src (#21319)
Bumps [k8s.io/apimachinery](https://github.com/kubernetes/apimachinery) from 0.31.2 to 0.32.0.
- [Commits](https://github.com/kubernetes/apimachinery/compare/v0.31.2...v0.32.0)

---
updated-dependencies:
- dependency-name: k8s.io/apimachinery
  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>
Co-authored-by: miner <yminer@vmware.com>
Co-authored-by: Chlins Zhang <chlins.zhang@gmail.com>
2025-01-16 02:58:36 +00:00
dependabot[bot]
5545e5b5a8
chore(deps): bump github.com/volcengine/volcengine-go-sdk from 1.0.164 to 1.0.177 in /src (#21404)
chore(deps): bump github.com/volcengine/volcengine-go-sdk in /src

Bumps [github.com/volcengine/volcengine-go-sdk](https://github.com/volcengine/volcengine-go-sdk) from 1.0.164 to 1.0.177.
- [Release notes](https://github.com/volcengine/volcengine-go-sdk/releases)
- [Commits](https://github.com/volcengine/volcengine-go-sdk/compare/v1.0.164...v1.0.177)

---
updated-dependencies:
- dependency-name: github.com/volcengine/volcengine-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>
Co-authored-by: miner <yminer@vmware.com>
Co-authored-by: Wang Yan <wangyan@vmware.com>
2025-01-16 10:19:57 +08:00
Prasanth Baskar
a6688903bb
Fix Overlay Issue in Replication Page UI (#21069)
* fix overlay in replication execution details page

Signed-off-by: bupd <bupdprasanth@gmail.com>

* fix time overflow in turkish and some languages

* minor fix in displaying time

Signed-off-by: bupd <bupdprasanth@gmail.com>

---------

Signed-off-by: bupd <bupdprasanth@gmail.com>
2025-01-15 09:00:36 +00:00
dependabot[bot]
9231fd2b72
chore(deps): bump golang.org/x/net from 0.30.0 to 0.33.0 in /src (#21413)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.30.0 to 0.33.0.
- [Commits](https://github.com/golang/net/compare/v0.30.0...v0.33.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: miner <yminer@vmware.com>
2025-01-15 08:14:17 +00:00
dependabot[bot]
ec03ccd7cf
chore(deps): bump github.com/aliyun/alibaba-cloud-sdk-go from 1.63.47 to 1.63.80 in /src (#21405)
chore(deps): bump github.com/aliyun/alibaba-cloud-sdk-go in /src

Bumps [github.com/aliyun/alibaba-cloud-sdk-go](https://github.com/aliyun/alibaba-cloud-sdk-go) from 1.63.47 to 1.63.80.
- [Release notes](https://github.com/aliyun/alibaba-cloud-sdk-go/releases)
- [Changelog](https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/ChangeLog.txt)
- [Commits](https://github.com/aliyun/alibaba-cloud-sdk-go/compare/v1.63.47...v1.63.80)

---
updated-dependencies:
- dependency-name: github.com/aliyun/alibaba-cloud-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>
Co-authored-by: miner <yminer@vmware.com>
2025-01-15 06:52:06 +00:00
Wang Yan
97391608d0
bump mockery (#21419)
* bump mockery

Signed-off-by: wang yan <wangyan@vmware.com>

* update mock testing codes

Signed-off-by: wang yan <wangyan@vmware.com>

---------

Signed-off-by: wang yan <wangyan@vmware.com>
2025-01-15 14:08:21 +08:00
Wang Yan
2364957036
update spectral image (#21410)
Signed-off-by: wang yan <wangyan@vmware.com>
2025-01-15 03:41:15 +00:00
stonezdj(Daojun Zhang)
60798a49b3
Add dao and manager for audit log ext (#21379)
Signed-off-by: stonezdj <stone.zhang@broadcom.com>
2025-01-14 09:49:50 +00:00
dependabot[bot]
cc6ace188d
chore(deps): bump github.com/beego/beego/v2 from 2.2.1 to 2.3.4 in /src (#21321)
* chore(deps): bump github.com/beego/beego/v2 from 2.2.1 to 2.3.4 in /src

Bumps [github.com/beego/beego/v2](https://github.com/beego/beego) from 2.2.1 to 2.3.4.
- [Release notes](https://github.com/beego/beego/releases)
- [Changelog](https://github.com/beego/beego/blob/master/CHANGELOG.md)
- [Commits](https://github.com/beego/beego/compare/v2.2.1...v2.3.4)

---
updated-dependencies:
- dependency-name: github.com/beego/beego/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* add SessionReleaseIfPresent for session Store implenmentation

Signed-off-by: yminer <miner.yang@broadcom.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: yminer <miner.yang@broadcom.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: yminer <miner.yang@broadcom.com>
2025-01-14 17:12:56 +08:00
stonezdj(Daojun Zhang)
7c502a8581
Remove id field from payload when update purge audit or gc schedule (#21408)
Signed-off-by: stonezdj <stone.zhang@broadcom.com>
2025-01-14 06:48:50 +00:00
stonezdj(Daojun Zhang)
67654f26bf
Add middleware for audit log (#21376)
Add middleware for audit log ext

Signed-off-by: stonezdj <stone.zhang@broadcom.com>
2025-01-14 03:54:26 +00:00
Wang Yan
b0545c05fd
bump up swagger (#21396)
* bump up swagger

Signed-off-by: wang yan <wangyan@vmware.com>

* fix gc driver type

Signed-off-by: wang yan <wangyan@vmware.com>

---------

Signed-off-by: wang yan <wangyan@vmware.com>
2025-01-10 17:02:57 +08:00
Samuel Gaist
15d17a3338
Remove robotV1 from code base (#20958) (#20991)
It was deprecated in 2.4.0.

Signed-off-by: Samuel Gaist <samuel.gaist@idiap.ch>
Co-authored-by: Wang Yan <wangyan@vmware.com>
2025-01-10 13:36:28 +08:00
stonezdj(Daojun Zhang)
12382fa8ae
Update prepare to avoid error when max_job_duration_hours not configured (#21395)
Signed-off-by: stonezdj <stone.zhang@broadcom.com>
2025-01-10 10:56:43 +08:00
stonezdj(Daojun Zhang)
8ca455eb76
Add config max_job_duration_hours for jobservice (#21390)
Signed-off-by: stonezdj <stone.zhang@broadcom.com>
2025-01-08 17:15:37 +08:00
Prasanth Baskar
8bf710a405
fix: replication rule message in UI (#21299)
* updates replication rule confirm message for execution in UI
* update en-us-lang and es-es-lang with clear focus on execution
* Since different languages have varying interpretations of 'execution'
* Its better to update only the English version

Signed-off-by: bupd <bupdprasanth@gmail.com>
2025-01-06 14:07:20 +00:00
stonezdj(Daojun Zhang)
875f43b93c
Add configure item for audit_log_disable (#21368)
Add configure item audit_log_disable

Signed-off-by: stonezdj <stone.zhang@broadcom.com>
2025-01-06 08:21:52 +00:00
stonezdj(Daojun Zhang)
6001359038
Update testcase in main branch (#21375)
Update robot account e2e testcase for export-cve change

    update job service schedule testcase
    switch dockerhub to registry.goharbor.io

Signed-off-by: stonezdj <stone.zhang@broadcom.com>
2025-01-06 14:17:42 +08:00
stonezdj(Daojun Zhang)
b0c74a0584
Add swagger api and audit_log_ext table model (#21360)
add auditlog-ext related api in swagger
  add audit_log_ext table

Signed-off-by: stonezdj <stone.zhang@broadcom.com>
2025-01-03 06:11:09 +00:00
stonezdj(Daojun Zhang)
abaa40ab60
Skip admin and change oidc user not found message more readable (#21061)
fixes #21041

Signed-off-by: stonezdj <stone.zhang@broadcom.com>
2025-01-03 10:58:24 +08:00
Chlins Zhang
a14a4d2468
fix: unify the auth data handle to the decode method (#21350)
Signed-off-by: chlins <chlins.zhang@gmail.com>
2024-12-27 13:52:51 +08:00
Slava Lysunkin
462749a633
Fixed the type in DTR adapter info (#21357)
Signed-off-by: Slava Lysunkin <lysunkin@gmail.com>
2024-12-26 14:08:05 +08:00
yuzhipeng
d7ab265b10
Change commit-msg hook.sh address to right place (#21343)
Since hook.sh address has moved from

`https://cdn.rawgit.com/tommarshall/git-good-commit/v0.6.1/hook.sh`

to

`https://cdn.jsdelivr.net/gh/tommarshall/git-good-commit@v0.6.1/hook.sh`

fix the address to the moved address.

Signed-off-by: yuzhipeng <yuzp1996@gmail.com>
2024-12-24 10:40:30 +08:00
Chlins Zhang
a548ab705f
feat: extend the p2p preheat policy (#21115)
Add the field extra_attrs to the p2p preheat policy for the provider to
define their specified parameters when preheating.

Signed-off-by: chlins <chlins.zhang@gmail.com>
2024-12-18 10:30:36 +08:00
Wang Yan
e417875377
fix export cve permission issue (#21325)
The export CVE permission should be included in the project scope, as the API relies on project-level judgment.

Signed-off-by: wang yan <wangyan@vmware.com>
2024-12-17 14:52:21 +08:00
dependabot[bot]
af63122bb7
chore(deps): bump golang.org/x/crypto from 0.29.0 to 0.31.0 in /src (#21307)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.29.0 to 0.31.0.
- [Commits](https://github.com/golang/crypto/compare/v0.29.0...v0.31.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Wang Yan <wangyan@vmware.com>
2024-12-13 08:41:31 +00:00
Wang Yan
c7cf57bdf8
fix robot account creation issue (#21310)
fixes #21251

Signed-off-by: wang yan <wangyan@vmware.com>
2024-12-13 11:11:44 +08:00
Wang Yan
29bd094732
fix robot deletion event (#21234)
* fix robot deletion event

Signed-off-by: wang yan <wangyan@vmware.com>

* resolve comments

Signed-off-by: wang yan <wangyan@vmware.com>

---------

Signed-off-by: wang yan <wangyan@vmware.com>
2024-11-26 14:32:35 +08:00
Chlins Zhang
05233b0711
fix: event-based replication deletion not work when policy with label (#21215)
fix: event-based replication deletion not work when policy with label filter

Fix event-based replication deletion on remote registry not triggered
when the replication policy configured the label filter.

Signed-off-by: chlins <chlins.zhang@gmail.com>
2024-11-26 02:29:34 +00:00
Hajnal Máté
4a12623459
Fix postgres script permissions (#21007)
The initdb.sh and the upgrade.sh scripts in the postgres image
were not owned by the postgres user, which made them failing
with permission denied errors.

Signed-off-by: Mate Hajnal <hajnalmt@gmail.com>
2024-11-25 14:53:19 +02:00
stonezdj(Daojun Zhang)
969384cd63
Enable MAX_JOB_DURATION_SECONDS in the jobservice container (#21232)
enable job service to set MAX_JOB_DURATION_SECONDS in the jobservice container to customize max job duration
  fork gocraft/work to goharbor/work

Signed-off-by: stonezdj <stone.zhang@broadcom.com>
2024-11-23 04:10:33 +08:00
Daniel Jiang
66c98c81f1
Update assignees (#21136)
Some developers are no longer working on Harbor.
I'm removing them from assignees list.

Signed-off-by: Daniel Jiang <daniel.jiang@broadcom.com>
2024-11-19 16:17:23 +08:00
dependabot[bot]
994a8622d5
chore(deps): bump codecov/codecov-action from 4 to 5 (#21192)
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 4 to 5.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v4...v5)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Wang Yan <wangyan@vmware.com>
2024-11-19 14:48:17 +08:00
Wang Yan
ba177ffbb5
remove asc files handling (#21214)
Signed-off-by: wang yan <wangyan@vmware.com>
2024-11-19 09:46:45 +08:00
Wang Yan
9345fe39c9
update csrf key generation (#21154)
* update csrf key generation

Fixes #21060

Do not generate a random key if the provided key has an invalid length.

Signed-off-by: wang yan <wangyan@vmware.com>

* fix ut check

Signed-off-by: wang yan <wangyan@vmware.com>

---------

Signed-off-by: wang yan <wangyan@vmware.com>
2024-11-15 21:40:27 +08:00
stonezdj(Daojun Zhang)
bccfd5fb41
Change the source of trivy-db to avoid 429 error (#21183)
Signed-off-by: stonezdj <stone.zhang@broadcom.com>
2024-11-15 03:30:04 +00:00
miner
d39d979736
remove slack notification (#21185)
Signed-off-by: yminer <miner.yang@broadcom.com>
Co-authored-by: yminer <miner.yang@broadcom.com>
2024-11-14 14:07:38 +08:00
dependabot[bot]
45ec9bbbbd
chore(deps): bump golang.org/x/crypto from 0.28.0 to 0.29.0 in /src (#21158)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.28.0 to 0.29.0.
- [Commits](https://github.com/golang/crypto/compare/v0.28.0...v0.29.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...



go momd tidy

Signed-off-by: yminer <miner.yang@broadcom.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: miner <yminer@vmware.com>
2024-11-13 08:43:38 +00:00
dependabot[bot]
45c4b01c8c
chore(deps): bump github.com/volcengine/volcengine-go-sdk from 1.0.159 to 1.0.164 in /src (#21159)
chore(deps): bump github.com/volcengine/volcengine-go-sdk in /src

Bumps [github.com/volcengine/volcengine-go-sdk](https://github.com/volcengine/volcengine-go-sdk) from 1.0.159 to 1.0.164.
- [Release notes](https://github.com/volcengine/volcengine-go-sdk/releases)
- [Commits](https://github.com/volcengine/volcengine-go-sdk/compare/v1.0.159...v1.0.164)

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

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: miner <yminer@vmware.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: miner <yminer@vmware.com>
2024-11-13 08:04:10 +00:00
dependabot[bot]
f61f56c544
chore(deps): bump go.opentelemetry.io/otel from 1.31.0 to 1.32.0 in /src (#21162)
Bumps [go.opentelemetry.io/otel](https://github.com/open-telemetry/opentelemetry-go) from 1.31.0 to 1.32.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.31.0...v1.32.0)

---
updated-dependencies:
- dependency-name: go.opentelemetry.io/otel
  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>
Co-authored-by: miner <yminer@vmware.com>
2024-11-13 08:02:59 +00:00