hapi db bootstrap creates the database and roles
#75
Notifications
Due Date
No due date set.
Reference: bobby/hapi#75
Reference in new issue
Block a user
Part of #73 (spec: #72)
What to build
The Owner can run
hapi db bootstrapto create thehapidatabase and thehapi_migrator,hapi_app, andhapi_backuproles from mounted password files, with the admin password pasted in at run time. Running it twice changes nothing. Local dev gets Postgres 18 in Docker Compose. Config is pydantic-settings with theHAPI_prefix, reads secrets fromsecrets_dir(never env vars), and fails fast on startup when misconfigured.Acceptance criteria
hapi db bootstrapcreates the database and the three roles with the documented privileges (hapi_appDML only,hapi_migratorowner,hapi_backupread-onlyBYPASSRLS)just devbrings up Postgres 18 in Docker Compose