Skip to content

Commit 1b5b38e

Browse files
authored
Use different passwords for development environment dependencies (stack-auth#359)
1 parent 0e9b473 commit 1b5b38e

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

.github/workflows/publish-docs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ jobs:
2121
STACK_EMAIL_PASSWORD: none
2222
STACK_EMAIL_SENDER: noreply@test.com
2323

24-
STACK_DATABASE_CONNECTION_STRING: postgres://postgres:password@localhost:5432/stackframe
25-
STACK_DIRECT_DATABASE_CONNECTION_STRING: postgres://postgres:password@localhost:5432/stackframe
24+
STACK_DATABASE_CONNECTION_STRING: postgres://postgres:PASSWORD-PLACEHOLDER--uqfEC1hmmv@localhost:5432/stackframe
25+
STACK_DIRECT_DATABASE_CONNECTION_STRING: postgres://postgres:PASSWORD-PLACEHOLDER--uqfEC1hmmv@localhost:5432/stackframe
2626

2727
permissions: write-all
2828

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ If you think Stack Auth is a good fit for you, follow these steps:
2424
2. [Use Stack Auth](https://docs.stack-auth.com/getting-started/setup). The best way to understand the project is to use it. Build an application on top of Stack Auth, and post it on GitHub or write a blog post about how you built it. This also lets us assess your skills and understand where you could best help the project.
2525
3. Give us feedback on Discord or GitHub; let us know where you got stuck, and which things you wish were easier. (We appreciate contributions most when they solve problems the authors encountered themselves in real usage.)
2626
4. Contribute to the [documentation](https://docs.stack-auth.com) and create examples & guides. This way, you can share your knowledge and expertise with everyone else who's just getting started.
27-
5. Only then, start contributing to the codebase. Coordinate with us on Discord beforehand to ensure we are not working on the same thing already, and to make sure a task is not more difficult than it seems.
27+
5. Only then, start [contributing to the codebase](README.md#-development--contribution). Coordinate with us on Discord beforehand to ensure we are not working on the same thing already, and to make sure a task is not more difficult than it seems.
2828

2929

3030
## Security & bug bounties

apps/backend/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ STACK_EMAIL_SENDER=# for local inbucket: noreply@test.com
4141

4242
# Database
4343
# For local development: `docker run -it --rm -e POSTGRES_PASSWORD=password -p "5432:5432" postgres`
44-
STACK_DATABASE_CONNECTION_STRING=# enter your connection string here. For local development: `postgres://postgres:password@localhost:5432/stackframe`
44+
STACK_DATABASE_CONNECTION_STRING=# enter your connection string here. For local development: `postgres://postgres:PASSWORD-PLACEHOLDER--uqfEC1hmmv@localhost:5432/stackframe`
4545
STACK_DIRECT_DATABASE_CONNECTION_STRING=# enter your direct (unpooled or session mode) database connection string here. For local development: same as above
4646

4747
# Webhooks

apps/backend/.env.development

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ STACK_MICROSOFT_CLIENT_SECRET=MOCK
2323
STACK_SPOTIFY_CLIENT_ID=MOCK
2424
STACK_SPOTIFY_CLIENT_SECRET=MOCK
2525

26-
STACK_DATABASE_CONNECTION_STRING=postgres://postgres:password@localhost:5432/stackframe
27-
STACK_DIRECT_DATABASE_CONNECTION_STRING=postgres://postgres:password@localhost:5432/stackframe
26+
STACK_DATABASE_CONNECTION_STRING=postgres://postgres:PASSWORD-PLACEHOLDER--uqfEC1hmmv@localhost:5432/stackframe
27+
STACK_DIRECT_DATABASE_CONNECTION_STRING=postgres://postgres:PASSWORD-PLACEHOLDER--uqfEC1hmmv@localhost:5432/stackframe
2828

2929
STACK_EMAIL_HOST=127.0.0.1
3030
STACK_EMAIL_PORT=2500

dependencies.compose.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services:
66
image: postgres:latest
77
environment:
88
POSTGRES_USER: postgres
9-
POSTGRES_PASSWORD: password
9+
POSTGRES_PASSWORD: PASSWORD-PLACEHOLDER--uqfEC1hmmv
1010
POSTGRES_DB: stackframe
1111
POSTGRES_DELAY_MS: ${POSTGRES_DELAY_MS:-0}
1212
ports:
@@ -50,23 +50,23 @@ services:
5050
image: postgres:latest
5151
environment:
5252
POSTGRES_USER: postgres
53-
POSTGRES_PASSWORD: password
53+
POSTGRES_PASSWORD: PASSWORD-PLACEHOLDER--KsoIMcchtp
5454
POSTGRES_DB: svix
5555
volumes:
5656
- svix-postgres-data:/var/lib/postgresql/data
5757

5858
svix-redis:
5959
image: docker.io/redis:7-alpine
60-
command: --save 60 500 --appendonly yes --appendfsync everysec
60+
command: --save 60 500 --appendonly yes --appendfsync everysec --requirepass PASSWORD-PLACEHOLDER--oVn8GSD6b9
6161
volumes:
6262
- svix-redis-data:/data
6363

6464
svix-server:
6565
image: svix/svix-server
6666
environment:
6767
WAIT_FOR: 'true'
68-
SVIX_REDIS_DSN: redis://svix-redis:6379
69-
SVIX_DB_DSN: postgres://postgres:password@svix-db:5432/svix
68+
SVIX_REDIS_DSN: redis://placeholder-username:PASSWORD-PLACEHOLDER--oVn8GSD6b9@svix-redis:6379
69+
SVIX_DB_DSN: postgres://postgres:PASSWORD-PLACEHOLDER--KsoIMcchtp@svix-db:5432/svix
7070
SVIX_CACHE_TYPE: memory
7171
SVIX_JWT_SECRET: secret
7272
SVIX_LOG_LEVEL: trace

docker/server/.env.example

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
NEXT_PUBLIC_STACK_API_URL=http://localhost:8102
22
NEXT_PUBLIC_STACK_DASHBOARD_URL=http://localhost:8101
33

4-
STACK_DATABASE_CONNECTION_STRING=postgres://postgres:password@host.docker.internal:5432/stackframe
5-
STACK_DIRECT_DATABASE_CONNECTION_STRING=postgres://postgres:password@host.docker.internal:5432/stackframe
4+
STACK_DATABASE_CONNECTION_STRING=postgres://postgres:PASSWORD-PLACEHOLDER--uqfEC1hmmv@host.docker.internal:5432/stackframe
5+
STACK_DIRECT_DATABASE_CONNECTION_STRING=postgres://postgres:PASSWORD-PLACEHOLDER--uqfEC1hmmv@host.docker.internal:5432/stackframe
66

77
STACK_SEED_INTERNAL_PROJECT_PUBLISHABLE_CLIENT_KEY=this-publishable-client-key-is-for-local-development-only
88
STACK_SEED_INTERNAL_PROJECT_SECRET_SERVER_KEY=this-secret-server-key-is-for-local-development-only

0 commit comments

Comments
 (0)