#!/usr/bin/env python3 """ TODO: this will be a utility to handle secrets in the Consul database for the various components of the Deuxfleurs infrastructure Functionnalities: - check that secrets are correctly configured - help user fill in secrets - create LDAP service users and fill in corresponding secrets - maybe one day: manage SSL certificates and keys It uses files placed in /secrets/* to know what secrets it should handle. These secret files contain directives for what to do about these secrets. Example directives: USER (a secret that must be filled in by the user) USER_LONG (the same, indicates that the secret fits on several lines) CONST (the secret has a constant value set here) CONST_LONG (same) SERVICE_DN (the LDAP DN of a service user) SERVICE_PASSWORD (the LDAP password for the corresponding service user) SSL_CERT (a SSL domain for the given domains) SSL_KEY (the SSL key going with corresponding certificate) """