File tree Expand file tree Collapse file tree
crates/stackable-webhook/src/tls Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ use axum::{
77 extract:: { ConnectInfo , Request } ,
88 middleware:: AddExtension ,
99} ;
10- use cert_resolver:: { CertificateResolver , CertificateResolverError } ;
1110use hyper:: { body:: Incoming , service:: service_fn} ;
1211use hyper_util:: rt:: { TokioExecutor , TokioIo } ;
1312use opentelemetry:: trace:: { FutureExt , SpanKind } ;
@@ -32,6 +31,8 @@ use x509_cert::Certificate;
3231
3332mod cert_resolver;
3433
34+ pub use cert_resolver:: { CertificateResolver , CertificateResolverError } ;
35+
3536pub const WEBHOOK_CA_LIFETIME : Duration = Duration :: from_minutes_unchecked ( 3 ) ;
3637pub const WEBHOOK_CERTIFICATE_LIFETIME : Duration = Duration :: from_minutes_unchecked ( 2 ) ;
3738pub const WEBHOOK_CERTIFICATE_ROTATION_INTERVAL : Duration = Duration :: from_minutes_unchecked ( 1 ) ;
You can’t perform that action at this time.
0 commit comments