bunkerity / bunkerity/bunkerweb

[FEATURE] Add Database Target and SSL Debug Logs for Scheduler Startup

Open
#3,361 2 comments 0 reactions 1 assignee Claimed by @TheophileDiot View on GitHub
enhancement scheduler
Dominant language
Python
Stars
10.9k
Forks
643
Avg merge
1d 10h
Merged PRs (30d)
42

Description

### What's needed and why?

Add richer startup logging so operators can immediately see which database target the scheduler is using and why DB connection checks fail.

### Log parsed DB target details at scheduler startup

- In scheduler startup paths, parse DATABASE_URI and log:
-- type
-- database
--- host
-- user
- Do not log raw URI with password.

### Log SSL diagnostics

- Print whether SSL is enabled for the DB URI.
- Print whether a PEM/CA path is configured.
- If PEM path is configured, test readability by scheduler runtime context and log pass/fail.

### Improve connection error messages

- When DB connection retries/errors happen, include:
-- original exception message
-- masked DB target context (no password)
- Keep logs actionable for troubleshooting (“what failed” + “where we were connecting”).

### Implementations ideas (optional)

- Never print DB password in logs.
- Any URI shown must be masked or replaced by structured fields.

### Code of Conduct

- [x] I agree to follow this project's Code of Conduct

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.