summaryrefslogtreecommitdiff
path: root/src/authorization/check_service.rs
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-07-05 13:36:41 -0600
committermo khan <mo@mokhan.ca>2025-07-05 13:36:41 -0600
commit63c5263087c9e282ced0e549b78c7ebd4353b273 (patch)
treee408c3aed5e4edf723c72897094bdd2f49077a15 /src/authorization/check_service.rs
parent33083559c6d43d266ca77fcd1beb94c6feb4b547 (diff)
parentc6ec4e63d797c5e6cc01a4f09e723ad781b1034e (diff)
Merge branch 'sparkle-policies' into 'main'
Add Cedar policy validation and improve authorization architecture See merge request gitlab-org/software-supply-chain-security/authorization/authzd!4
Diffstat (limited to 'src/authorization/check_service.rs')
-rw-r--r--src/authorization/check_service.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/authorization/check_service.rs b/src/authorization/check_service.rs
index 57f7b5d5..f8c7577f 100644
--- a/src/authorization/check_service.rs
+++ b/src/authorization/check_service.rs
@@ -23,10 +23,8 @@ impl envoy_types::ext_authz::v3::pb::Authorization for CheckService {
request: Request<CheckRequest>,
) -> Result<Response<CheckResponse>, Status> {
if self.authorizer.authorize(request.into_inner()) {
- log::info!("OK");
Ok(Response::new(CheckResponse::with_status(Status::ok("OK"))))
} else {
- log::info!("Unauthorized");
Ok(Response::new(CheckResponse::with_status(
Status::unauthenticated("Unauthorized"),
)))