fix: make ApplicationInitializer robust and testable #9

Merged
robinp2000 merged 1 commit from fix/application-initializer into main 2026-10-03 10:55:47 +02:00
Owner
  • Close all streams; treat an empty application.yml as empty config instead of failing
    with a NullPointerException; reject invalid YAML and non-mapping roots with a clear message.
  • Write the file atomically (temp file + move) so a crash cannot leave a truncated file
    with half of the generated secrets. New files are readable by the owner only; the
    permissions of an existing file are kept.
  • Add a package-private constructor with base directory and template source so the
    three bootstrap steps (copy, migrate, generate) can be tested in a temp directory.
- Close all streams; treat an empty application.yml as empty config instead of failing with a NullPointerException; reject invalid YAML and non-mapping roots with a clear message. - Write the file atomically (temp file + move) so a crash cannot leave a truncated file with half of the generated secrets. New files are readable by the owner only; the permissions of an existing file are kept. - Add a package-private constructor with base directory and template source so the three bootstrap steps (copy, migrate, generate) can be tested in a temp directory.
fix: make ApplicationInitializer robust and testable
All checks were successful
CI / build (pull_request) Successful in 2m2s
b6bc3ab6ef
- Close all streams; treat an empty application.yml as empty config instead of failing
  with a NullPointerException; reject invalid YAML and non-mapping roots with a clear message.
- Write the file atomically (temp file + move) so a crash cannot leave a truncated file
  with half of the generated secrets. New files are readable by the owner only; the
  permissions of an existing file are kept.
- Add a package-private constructor with base directory and template source so the
  three bootstrap steps (copy, migrate, generate) can be tested in a temp directory.
robinp2000 deleted branch fix/application-initializer 2026-10-03 10:55:47 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
robinp2000/dachshund-auth-provider!9
No description provided.