aurae-runtime / aurae

Distributed systems runtime daemon written in Rust.
https://aurae.io
Apache License 2.0
1.85k stars 91 forks source link

Improve missing certs/pki error #284

Closed krisnova closed 1 year ago

krisnova commented 1 year ago

Right now when somebody attempts to get started with Aurae they are often missing the TLS cert material. The error does not give the user a path forward or offer a resolution. Can we please improve the error message? Maybe point the user to a low-risk URL that will always have an answer?

2023-01-15T12:13:22.256096Z  INFO auraed::init::system_runtimes::daemon_system_runtime: Running as a daemon.
2023-01-15T12:13:22.303720Z  INFO auraed::init::system_runtimes: User Access Socket Created: /var/run/aurae/aurae.sock
2023-01-15T12:13:22.342598Z ERROR auraed: Err(Failed to read server certificate: /etc/aurae/pki/_signed.server.crt

Caused by:
    No such file or directory (os error 2))
make: *** [Makefile:150: start] Error 1

Maybe we can improve it by adding something such as:

Aurae requires a signed TLS certificate to run as a server. Please see <URL> for information on best practices to quickly generate one.