Skip to content

Commit

Permalink
[DOP-23743] All hardcoded passwords in this repo are used ONLY for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dolfinus committed Feb 6, 2025
1 parent a059322 commit 5068c51
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 12 deletions.
16 changes: 8 additions & 8 deletions .env.docker
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Init Postgres database
POSTGRES_DB=horizon
POSTGRES_USER=horizon
POSTGRES_PASSWORD=Aeviphai6juo3ooY7iecaivieX5OoMai

# See Backend -> Configuration documentation
HORIZON__DATABASE__URL=postgresql+asyncpg://horizon:Aeviphai6juo3ooY7iecaivieX5OoMai@db:5432/horizon
HORIZON__AUTH__ACCESS_TOKEN__SECRET_KEY=bae1thahr8Iyaisai0kohvoh1aeg5quu
HORIZON__DATABASE__URL=postgresql+asyncpg://horizon:123UsedForTestOnly@db:5432/horizon
HORIZON__AUTH__PROVIDER=horizon.backend.providers.auth.dummy.DummyAuthProvider
HORIZON__AUTH__ACCESS_TOKEN__SECRET_KEY=234UsedForTestOnly
HORIZON__AUTH__LDAP__URL=ldap://ldap:389
HORIZON__AUTH__LDAP__BASE_DN=ou=people,dc=ldapmock,dc=local
HORIZON__AUTH__LDAP__LOOKUP__CREDENTIALS__USER=uid=adminuser1,ou=people,dc=ldapmock,dc=local
HORIZON__AUTH__LDAP__LOOKUP__CREDENTIALS__PASSWORD=password
HORIZON__SERVER__DEBUG=true
HORIZON__SERVER__LOGGING__PRESET=colored
HORIZON__SERVER__DEBUG=false
HORIZON_TEST_SERVER_URL=http://backend:8000
4 changes: 2 additions & 2 deletions .env.local
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export HORIZON__DATABASE__URL=postgresql+asyncpg://horizon:Aeviphai6juo3ooY7iecaivieX5OoMai@127.0.0.1:5432/horizon
export HORIZON__DATABASE__URL=postgresql+asyncpg://horizon:123UsedForTestOnly@127.0.0.1:5432/horizon
export HORIZON__AUTH__PROVIDER=horizon.backend.providers.auth.dummy.DummyAuthProvider
export HORIZON__AUTH__ACCESS_TOKEN__SECRET_KEY=bae1thahr8Iyaisai0kohvoh1aeg5quu
export HORIZON__AUTH__ACCESS_TOKEN__SECRET_KEY=234UsedForTestOnly
export HORIZON__AUTH__LDAP__URL=ldap://localhost:389
export HORIZON__AUTH__LDAP__BASE_DN=ou=people,dc=ldapmock,dc=local
export HORIZON__AUTH__LDAP__LOOKUP__CREDENTIALS__USER=uid=adminuser1,ou=people,dc=ldapmock,dc=local
Expand Down
5 changes: 4 additions & 1 deletion docker-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ services:
db:
image: postgres:alpine
restart: unless-stopped
env_file: .env.docker
environment:
POSTGRES_DB: horizon
POSTGRES_USER: horizon
POSTGRES_PASSWORD: 123UsedForTestOnly
ports:
- 5432:5432
volumes:
Expand Down
5 changes: 4 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ services:
db:
image: postgres:alpine
restart: unless-stopped
env_file: .env.docker
environment:
POSTGRES_DB: horizon
POSTGRES_USER: horizon
POSTGRES_PASSWORD: 123UsedForTestOnly
ports:
- 5432:5432
volumes:
Expand Down

0 comments on commit 5068c51

Please sign in to comment.