forgejo/services/packages
Gusted 5a871f6095
[SEC] Ensure propagation of API scopes for Conan and Container authentication
- The Conan and Container packages use a different type of
authentication. It first authenticates via the regular way (api tokens
or user:password, handled via `auth.Basic`) and then generates a JWT
token that is used by the package software (such as Docker) to do the
action they wanted to do. This JWT token didn't properly propagate the
API scopes that the token was generated for, and thus could lead to a
'scope escalation' within the Conan and Container packages, read
access to write access.
- Store the API scope in the JWT token, so it can be propagated on
subsequent calls that uses that JWT token.
- Integration test added.
- Resolves #5128
2024-08-28 10:33:32 +02:00
..
alpine Remove hardcoded filenames for better readability 2024-07-17 23:20:48 +02:00
arch feat: support grouping by any path for arch package (#4903) 2024-08-11 10:35:11 +00:00
cargo
cleanup Arch packages implementation (#4785) 2024-08-04 06:16:29 +00:00
container cron task to cleanup dangling container images with version sha256:* 2024-08-22 09:10:15 +02:00
debian [CHORE] Use github.com/ProtonMail/go-crypto 2024-07-15 17:27:37 +02:00
rpm Add signature support for the RPM module (#4780) 2024-08-02 05:56:57 +00:00
auth.go [SEC] Ensure propagation of API scopes for Conan and Container authentication 2024-08-28 10:33:32 +02:00
packages.go Arch packages implementation (#4785) 2024-08-04 06:16:29 +00:00