feat: use different creds for api and consumer with restrictive rights

This commit is contained in:
Alexis Fourmaux 2026-05-13 18:25:23 +02:00
parent 611600c2d8
commit 11b7c14dc7
7 changed files with 16 additions and 1 deletions

View file

@ -15,7 +15,7 @@ log = logging.getLogger(__name__)
_MIN_CONN = 1
_MAX_CONN = 10
DB_URI = os.getenv("DATABASE_URI", "postgresql://simugaz:simugaz@db/simugaz")
DB_URI = os.getenv("DATABASE_URI", "postgresql://user:password@db/simugaz")
@lru_cache(maxsize=1)