Skip to content

Commit 9550b40

Browse files
committed
[DOP-23743] All hardcoded passwords in this repo are used ONLY for tests
1 parent df0979c commit 9550b40

File tree

3 files changed

+13
-17
lines changed

3 files changed

+13
-17
lines changed

.env.docker

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,6 @@
1-
# Postgres
2-
POSTGRES_DB=horizon
3-
POSTGRES_USER=horizon
4-
POSTGRES_PASSWORD=I8p4E2mULz6v
5-
6-
# Horizon
7-
HORIZON__DATABASE__URL=postgresql+asyncpg://horizon:I8p4E2mULz6v@db:5432/horizon
8-
HORIZON__AUTH__ACCESS_TOKEN__SECRET_KEY=bae1thahr8Iyaisai0kohvoh1aeg5quu
9-
HORIZON__AUTH__PROVIDER=horizon.backend.providers.auth.dummy.DummyAuthProvider
10-
HORIZON__SERVER__LOGGING__PRESET=colored
11-
HORIZON__SERVER__DEBUG=false
12-
131
# envs for Horizon integration tests
142
HORIZON_HOST=horizon
153
HORIZON_PORT=8000
164
HORIZON_USER=horizon
17-
HORIZON_PASSWORD=password
5+
HORIZON_PASSWORD=345UsedForTestOnly
186
HORIZON_NAMESPACE=namespace

.env.local

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Horizon
1+
# envs for Horizon integration tests
22
export HORIZON_HOST=localhost
33
export HORIZON_PORT=8000
44
export HORIZON_USER=horizon
5-
export HORIZON_PASSWORD=password
5+
export HORIZON_PASSWORD=345UsedForTestOnly
66
export HORIZON_NAMESPACE=namespace

docker-compose.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ services:
33
db:
44
image: postgres:15-alpine
55
restart: unless-stopped
6-
env_file: .env.docker
6+
environment:
7+
POSTGRES_DB: horizon
8+
POSTGRES_USER: horizon
9+
POSTGRES_PASSWORD: 123UsedForTestOnly
710
ports:
811
- 5432:5432
912
volumes:
@@ -18,7 +21,12 @@ services:
1821
backend:
1922
image: mtsrus/horizon-backend:latest
2023
restart: unless-stopped
21-
env_file: .env.docker
24+
environment:
25+
HORIZON__DATABASE__URL: postgresql+asyncpg://horizon:123UsedForTestOnly@db:5432/horizon
26+
HORIZON__AUTH__ACCESS_TOKEN__SECRET_KEY: 234UsedForTestOnly
27+
HORIZON__AUTH__PROVIDER: horizon.backend.providers.auth.dummy.DummyAuthProvider
28+
HORIZON__SERVER__LOGGING__PRESET: colored
29+
HORIZON__SERVER__DEBUG: 'false'
2230
ports:
2331
- 8000:8000
2432
depends_on:

0 commit comments

Comments
 (0)