fix(fireflyiii): respect user-configured DB credentials when using mariadb_addon

When DB_CONNECTION is set to mariadb_addon, the script now checks if the user
has explicitly configured DB_USERNAME, DB_PASSWORD, or DB_DATABASE in addon
options. If set, those values are used instead of the MariaDB addon service
discovery credentials. This fixes authentication failures when the service
account doesn't have proper access.

Fixes: Firefly III access denied for user 'service' issue

Agent-Logs-Url: https://github.com/alexbelgium/hassio-addons/sessions/7cacda5b-d03e-47c5-b4fc-4cfb4ef2a3dc

Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-04-20 09:09:20 +00:00
committed by GitHub
parent f607a1a0d6
commit 547f1214b4
3 changed files with 25 additions and 7 deletions

View File

@@ -51,9 +51,9 @@ Configurations can be done through the app webUI, except for the following optio
| `DB_CONNECTION` | list | `sqlite_internal` | Database type (sqlite_internal/mariadb_addon/mysql/pgsql) |
| `DB_HOST` | str | | Database host (for external databases) |
| `DB_PORT` | str | | Database port (for external databases) |
| `DB_DATABASE` | str | | Database name (for external databases) |
| `DB_USERNAME` | str | | Database username (for external databases) |
| `DB_PASSWORD` | str | | Database password (for external databases) |
| `DB_DATABASE` | str | | Database name (defaults to `firefly` for mariadb_addon) |
| `DB_USERNAME` | str | | Database username (overrides MariaDB addon service discovery if set) |
| `DB_PASSWORD` | str | | Database password (overrides MariaDB addon service discovery if set) |
| `Updates` | list | | Automatic update schedule (hourly/daily/weekly) |
| `silent` | bool | `true` | Silent mode - set to false for debug info |