summaryrefslogtreecommitdiff
path: root/src/authorization
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-07-02 14:33:50 -0600
committermo khan <mo@mokhan.ca>2025-07-02 14:33:50 -0600
commit19d8fb312f8bb3a4cd7af5a3e47037c752ddd2ca (patch)
treea00bf05a25a796f0ce2056841244a452347f2cb8 /src/authorization
parentc973d9f5f47bf10489604b04ddb4c5386a7542d2 (diff)
fix: install the reflection service for the health check probe discovery
Diffstat (limited to 'src/authorization')
-rw-r--r--src/authorization/server.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/authorization/server.rs b/src/authorization/server.rs
index 2ad270df..309d751e 100644
--- a/src/authorization/server.rs
+++ b/src/authorization/server.rs
@@ -13,10 +13,15 @@ impl Server {
let authorization_service =
AuthorizationServer::new(CheckService::new(Arc::new(CedarAuthorizer::default())));
+ let reflection_service = tonic_reflection::server::Builder::configure()
+ .register_encoded_file_descriptor_set(tonic_health::pb::FILE_DESCRIPTOR_SET)
+ .build_v1()?;
+
Ok(Self::new_with(|mut builder| {
builder
.add_service(authorization_service)
.add_service(health_service)
+ .add_service(reflection_service)
}))
}