diff options
| author | mo khan <mo@mokhan.ca> | 2025-07-11 13:59:08 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-07-11 13:59:08 -0600 |
| commit | 7eab1fc010c04c76f60a8dd4d8a72572ddd2785a (patch) | |
| tree | af95f171952b7ce557904bd925932365542bc22f /src/main.rs | |
| parent | ef572ae666732e87a35417710669ce88233a754a (diff) | |
| parent | e7015c080181eba17296d0dc678b0e5578fadc15 (diff) | |
Merge branch 'cli' into 'main'
Merge server and cli binaries into one
See merge request gitlab-org/software-supply-chain-security/authorization/authzd!8
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/main.rs b/src/main.rs deleted file mode 100644 index add0d88d..00000000 --- a/src/main.rs +++ /dev/null @@ -1,25 +0,0 @@ -#[tokio::main] -async fn main() -> Result<(), Box<dyn std::error::Error>> { - tracing_subscriber::fmt() - .json() - .with_max_level(tracing::Level::INFO) - .with_current_span(true) - .with_span_list(true) - .with_target(true) - .with_thread_ids(true) - .with_thread_names(true) - .with_file(true) - .with_line_number(true) - .init(); - - let addr = std::env::var("BIND_ADDR") - .unwrap_or_else(|_| "127.0.0.1:50051".to_string()) - .parse()?; - - tracing::info!(address = %addr, "Starting authorization server"); - let cedar = authzd::authorization::CedarAuthorizer::default(); - let server = authzd::authorization::Server::new(cedar)?; - server.serve(addr).await?; - - Ok(()) -} |
