schedr_tls/lib.rs
1//! mTLS on schedr's internal links (see archive/PROJECT.md, Master–worker protocol: `tls.mode`).
2//!
3//! In `app` mode every role has a certificate and a key, and trusts one CA: the master serves
4//! gRPC with its certificate and asks workers for theirs, a worker serves its log endpoint the
5//! same way and presents its certificate to the master, and the webserver presents its own to
6//! the workers. In `mesh` mode a service mesh does all of this and schedr sends plain traffic.
7//!
8//! - [`material`]: the PEM files read and turned into rustls configurations.
9//! - [`reload`]: [`Tls`], the configurations in use, read again when the files change.
10//! - [`mod@incoming`]: a listener that does the TLS handshake (or none), for tonic and axum.
11//! - [`connect`]: a gRPC channel to the master over TLS (or plain).
12//!
13//! With the `testing` feature, `testing` makes certificates for tests.
14
15pub mod connect;
16pub mod incoming;
17pub mod material;
18pub mod reload;
19#[cfg(feature = "testing")]
20pub mod testing;
21
22pub use connect::{channel, error_text};
23pub use incoming::{Conn, Incoming, Protocol, incoming};
24pub use material::{TlsError, TlsFiles};
25pub use reload::{Reload, Tls};