forgejo/services/packages
Gusted ce10ec2878 [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

(cherry picked from commit 5a871f6095)
2024-08-28 08:44:58 +00:00
..
alpine Propagate install_if and provider_priority to APKINDEX (#28899) 2024-02-05 05:52:56 +00:00
cargo [BUG] Reflect Cargo index state in settings 2024-03-20 09:17:49 +01:00
cleanup remove util.OptionalBool and related functions (#29513) 2024-03-06 12:10:46 +08:00
container remove util.OptionalBool and related functions (#29513) 2024-03-06 12:10:46 +08:00
debian Fix debian InRelease Acquire-By-Hash newline (#29204) 2024-02-17 23:24:31 +01:00
rpm Fix some RPM registry flaws (#28782) 2024-01-19 11:37:10 +00:00
auth.go [SEC] Ensure propagation of API scopes for Conan and Container authentication 2024-08-28 08:44:58 +00:00
packages.go packages: skip error logging on duplicate 2024-03-24 07:12:31 +01:00