diff options
| author | mo khan <mo@mokhan.ca> | 2025-07-16 10:35:58 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-07-16 10:35:58 -0600 |
| commit | 0c75a5dc1f3b76c593035f29b422db8c25356325 (patch) | |
| tree | c27c74cd56456dda56d1a8ab3ec5f4e5d09e408a /src/authorization | |
| parent | be3e6a08f1d28218f527a8e8455bcf03fc55b6ed (diff) | |
feat: start to build spice authorizer implementation
Diffstat (limited to 'src/authorization')
| -rw-r--r-- | src/authorization/mod.rs | 1 | ||||
| -rw-r--r-- | src/authorization/spice/authorizer.rs | 8 | ||||
| -rw-r--r-- | src/authorization/spice/mod.rs | 3 |
3 files changed, 12 insertions, 0 deletions
diff --git a/src/authorization/mod.rs b/src/authorization/mod.rs index d9acd642..664096e5 100644 --- a/src/authorization/mod.rs +++ b/src/authorization/mod.rs @@ -3,6 +3,7 @@ pub mod cedar; pub mod check_service; pub mod default; pub mod server; +pub mod spice; pub use authorizer::Authorizer; pub use check_service::CheckService; diff --git a/src/authorization/spice/authorizer.rs b/src/authorization/spice/authorizer.rs new file mode 100644 index 00000000..da2805b9 --- /dev/null +++ b/src/authorization/spice/authorizer.rs @@ -0,0 +1,8 @@ +#[derive(Debug)] +pub struct Authorizer {} + +impl crate::authorization::authorizer::Authorizer for Authorizer { + fn authorize(&self, _request: envoy_types::ext_authz::v3::pb::CheckRequest) -> bool { + false + } +} diff --git a/src/authorization/spice/mod.rs b/src/authorization/spice/mod.rs new file mode 100644 index 00000000..6d8a935b --- /dev/null +++ b/src/authorization/spice/mod.rs @@ -0,0 +1,3 @@ +pub mod authorizer; + +pub use authorizer::*; |
