auth_middleware.rs sets validate_aud = false. Any valid JWT from the same Keycloak realm (even for other apps) gains full API access. Fix: Enable audience validation with the expected compliance-agent client ID.
auth_middleware.rs sets validate_aud = false. Any valid JWT from the same Keycloak realm (even for other apps) gains full API access. Fix: Enable audience validation with the expected compliance-agent client ID.
Fixed on main. The audience defaults to the product key (KEYCLOAK_AUDIENCE, compliance-agent/src/config.rs), and validate_aud is only off when it is explicitly set empty. With APP_ENV=production the agent refuses to start with an empty audience (compliance-core/src/config.rs, fail-closed config, #292).
Fixed on main. The audience defaults to the product key (`KEYCLOAK_AUDIENCE`, `compliance-agent/src/config.rs`), and `validate_aud` is only off when it is explicitly set empty. With `APP_ENV=production` the agent refuses to start with an empty audience (`compliance-core/src/config.rs`, fail-closed config, #292).
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
auth_middleware.rs sets validate_aud = false. Any valid JWT from the same Keycloak realm (even for other apps) gains full API access. Fix: Enable audience validation with the expected compliance-agent client ID.
Fixed on main. The audience defaults to the product key (
KEYCLOAK_AUDIENCE,compliance-agent/src/config.rs), andvalidate_audis only off when it is explicitly set empty. WithAPP_ENV=productionthe agent refuses to start with an empty audience (compliance-core/src/config.rs, fail-closed config, #292).