Skip to main content

Module material

Module material 

Source
Expand description

The certificate files and the rustls configurations built from them.

  • Servers (the master’s gRPC, a worker’s log endpoint) present their certificate and require a client certificate signed by the CA.
  • The webserver’s UI port ([webserver] ui_port) requires, beyond that, a client certificate naming [tls] ui_name: only schedr ui may pass users’ names on there (decision 36); any other certificate fails the handshake.
  • Clients present their certificate. A worker checks that the master’s certificate names the host of [worker] master_url; the webserver checks that a worker’s names [tls] worker_name, whatever address it reached the worker at (workers are reached by pod IP or pod DNS name, which a shared certificate can’t list).

Only TLS 1.3, with the aws-lc-rs provider.

Structs§

Configs
The rustls configurations of a role, built from one set of files.
Contents
The files’ bytes, as read (compared to notice a change).
TlsFiles
Where a role’s certificate material is ([tls] ca, cert, key).

Enums§

TlsError
Why the material can’t be used.

Constants§

ALPN_H2
The ALPN protocol of gRPC.
ALPN_HTTP1
The ALPN protocol of the log endpoint.

Functions§

build
Builds the configurations from contents (read from files, named in errors); workers’ certificates must name worker_name.
provider
The aws-lc-rs provider every configuration uses.