Skip to content

Commit fed35b0

Browse files
committed
Don't allow to configure hardcoded user name
1 parent 59fc94e commit fed35b0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

djangoproject/settings/docker.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"trac": {
1313
"ENGINE": "django.db.backends.postgresql",
1414
"NAME": os.environ["TRAC_DATABASE"],
15-
"USER": os.environ["TRAC_USER"],
15+
# "code.djangoproject" value is hardcoded in trac.sql
16+
"USER": "code.djangoproject",
1617
"PASSWORD": os.environ["TRAC_PASSWORD"],
1718
"HOST": os.environ["TRAC_HOST"],
1819
"PORT": os.environ["TRAC_PORT"],

docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ services:
2323
- SQL_HOST=db
2424
- SQL_PORT=5432
2525
- TRAC_DATABASE=code.djangoproject
26-
- TRAC_USER=code.djangoproject
26+
# "code.djangoproject" value is hardcoded in trac.sql, we can't change it here.
27+
# - TRAC_USER=code.djangoproject
2728
- TRAC_PASSWORD=secret
2829
- TRAC_HOST=db
2930
- TRAC_PORT=5432

0 commit comments

Comments
 (0)