🎚 Configuration¶
CertBob can be configured via environment variables:
All settings of CertBob.
Note
Settings marked with 🔴 are explicitly required.
Settings marked with ⭕ are implicitly required, but have an overridable default.
- confirm.certbob.settings.APP_SECRET¶
⭕ The application secret.
Hint
If not set explicitly, a random 32-char token will be generated.
- confirm.certbob.settings.CA_FINGERPRINT = None¶
🔴 The fingerprint of the smallstep CA.
See also
Check out 🏛️ CA on how to get the CA fingerprint.
- confirm.certbob.settings.CA_URL = None¶
🔴 The (https) URL of the smallstep CA.
- confirm.certbob.settings.COOLDOWN_FILE = '/data/cooldowns.json'¶
⭕ The path to the cooldown file.
- confirm.certbob.settings.COOLDOWN_TIME = 3600¶
⭕ The certificate cooldown period in seconds (0 will disable cooldown).
- confirm.certbob.settings.CUSTOM_HELP = None¶
Optional custom help text rendered as an additional paragraph after the install & verification help.
Hint
Markdown formatting is supported.
- confirm.certbob.settings.EXAMPLE_SITE = None¶
Optional URL to example site, provided to the user to check his/her client certificate.
- confirm.certbob.settings.FAKE_CA = False¶
Use an in-memory fake CA instead of the smallstep CA (for local development only).
Danger
Never enable this in production, the fake CA is regenerated on every start.
- confirm.certbob.settings.JWT_ALGORITHM = 'HS256'¶
⭕ The JWT algorithm.
Warning
Usually this algorithm shouldn’t be changed.
- confirm.certbob.settings.JWT_EXPIRATION = 10¶
⭕ The expiration of the short-lived JWT token in seconds.
- confirm.certbob.settings.JWT_SECRET¶
⭕ The JWT secret.
Hint
If not set explicitly, the
APP_SECRETis used instead.
- confirm.certbob.settings.LOCAL_ADMINS = None¶
Local admins in htpasswd format (see
LOCAL_USERS).Hint
Admins can also issue their own certificates, so they don’t have to be listed in
LOCAL_USERSas well (a username must only be listed in one of them).
- confirm.certbob.settings.LOCAL_USERS = None¶
Local users in htpasswd format (e.g.
user1:$2y$...\nuser2:$2y$...).Hint
For email support,
SMTP_AUTO_APPEND_DOMAINis required.
- confirm.certbob.settings.LOG_LEVEL = 'INFO'¶
⭕ The log level (must match one of the Python logging levels).
- confirm.certbob.settings.MATTERMOST_TOKEN = None¶
Shared Mattermost token generated in Mattermost’s «Slash Command» integration.
Hint
Mattermost doesn’t provide the email address via slash command. Thus, if email support is desired, and usernames don't already match email addresses,
SMTP_AUTO_APPEND_DOMAINis required.
- confirm.certbob.settings.OIDC_ADMIN_GROUPS = frozenset({})¶
Comma-separated list of OIDC groups, whose members are admins (see
LOCAL_ADMINS).
- confirm.certbob.settings.OIDC_CLIENT_ID = 'certbob'¶
The OIDC client ID.
- confirm.certbob.settings.OIDC_CLIENT_SECRET = None¶
The OIDC client secret.
- confirm.certbob.settings.OIDC_GROUPS_CLAIM = 'groups'¶
⭕ The ID token claim containing the user’s groups.
- confirm.certbob.settings.OIDC_ISSUER_URL = None¶
The OIDC issuer URL (e.g.
https://sso.example.com/realms/example).Hint
The OIDC configuration is discovered via
<issuer>/.well-known/openid-configuration, and the issuer of the ID tokens is verified.
- confirm.certbob.settings.OIDC_SCOPE = 'openid email'¶
⭕ The OIDC scope requested on login.
Hint
Add the scope your IdP requires to include the groups in the ID token (e.g.
groups).
- confirm.certbob.settings.PKCS12_PASSWORD = None¶
The password / passphrase for the PKCS12 certificate.
Hint
When unset, a random password is generated and shown to the user — once per browser session, or once per chat request.
- confirm.certbob.settings.PROVISIONER_NAME = 'certbob'¶
⭕ The provisioner name to issue the certificate.
See also
Check out CA provisioner on how to create a new provisioner in the CA.
- confirm.certbob.settings.PROVISIONER_PASSWORD = None¶
🔴 The provisioner password to issue the certificate.
See also
Check out CA provisioner on how to create a new provisioner in the CA.
- confirm.certbob.settings.SERVICES_FILE = '/data/services.json'¶
⭕ The path to the service requests file.
- confirm.certbob.settings.SERVICES_RETENTION_DAYS = 30¶
⭕ The number of days after which stale service requests are removed, i.e. pending requests (since they were requested), and rejected or revoked services (since they were rejected or revoked). Approved services are never removed (
0disables it).
- confirm.certbob.settings.SERVICES_SECRET = None¶
The shared secret services use to authenticate against the services API (sent as
Authorization: Bearer <secret>). When set, the services API is enabled.
- confirm.certbob.settings.SMTP_AUTO_APPEND_DOMAIN = None¶
Domain which should automatically be appended to the username when the email is missing (optional).
- confirm.certbob.settings.SMTP_FROM = None¶
The sender email address.
Hint
This is required when
SMTP_HOSTis set.
- confirm.certbob.settings.SMTP_HOST = None¶
The hostname of the SMTP server (only required in case email should be activated).
- confirm.certbob.settings.SMTP_PASSWORD = None¶
Password to authenticate on the SMTP server (optional).
- confirm.certbob.settings.SMTP_PORT = 465¶
The port of the SMTP server (defaults to
465, which issmtps).
- confirm.certbob.settings.SMTP_SECURITY = 'ssl'¶
ssl(implicit TLS, default, port 465),starttls(explicit TLS, port 587), ornone(plain, port 25).- Type:
SMTP security mode
- confirm.certbob.settings.SMTP_USERNAME = None¶
Username to authenticate on the SMTP server (optional).
- confirm.certbob.settings.USE_OPENSSL = False¶
Use OpenSSL instead of the
stepCLI to generate the PKCS12 cert (see 🔐 PKCS #12).
- confirm.certbob.settings.parse_htpasswd(value)¶
Parse users in htpasswd format (
user:bcrypt_hash, one per line) into a dict.- Parameters:
value (str | None)
- Return type:
dict[str, str]
- confirm.certbob.settings.sanity_checks()¶
Run sanity checks of the settings module.