システムロボットのプロジェクト権限をプロジェクト自体に限定
high以前は、これらの権限により、プロジェクト自体だけでなく、すべてのプロジェクト内のあらゆるリソースに対する操作も許可されていました。そのため、十分に信頼できない人やシステムがロボットトークンを保有した場合、それらのリソースが露出するおそれがありました。アップグレード後は、リポジトリ、アーティファクト、メンバー、ロボットアカウントなどのプロジェクトリソースへのアクセスには、それぞれのリソースに対する個別の権限が必要です。
原文を表示
- src/common/security/robot/context.go (+9 -0) - src/common/security/robot/context_test.go (+56 -0) - src/core/middlewares/middlewares.go (+2 -0) * (high): Robot "cover all projects" scope collapses into a global wildcard, conferring the deliberately-ungrantable robot:update — enabling cross-project robot takeover with owner lockout [GHSA-xq2m-cj8w-56v5](https://github.com/goharbor/harbor/security/advisories/GHSA-xq2m-cj8w-56v5) in [`7331b58d5`](https://github.com/goharbor/harbor/commit/7331b58d594f245aaf7f70515473aedffff85499) - ce7a28738b69 [cherry-pick] fix(rbac): stop cover-all robot scope from reaching sub-resources (GHSA-xq2m-cj8w-56v5) (Vadim Bauer)github.com/goharbor/harbor/compare/v2.14.4...v2.14.5