Skip to content

Commit 2f477d7

Browse files
committed
feat(postgraphile)!: use ecdsa key
1 parent b45332f commit 2f477d7

File tree

6 files changed

+9
-18
lines changed

6 files changed

+9
-18
lines changed

src/development/postgraphile/compose.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ services:
4646
target: /run/environment-variables/POSTGRAPHILE_OWNER_CONNECTION
4747
volumes:
4848
- ../../../../postgraphile/:/srv/app/ # dargstack:dev-only
49-
- ../../production/postgraphile/configurations/jwtRS256.key.pub:/run/environment-variables/POSTGRAPHILE_JWT_PUBLIC_KEY:ro
49+
- ./configurations/jwtES256.key.pub:/run/environment-variables/POSTGRAPHILE_JWT_PUBLIC_KEY:ro
5050
- pnpm-data:/srv/.pnpm-store/ # dargstack:dev-only
5151
- postgraphile-data:/srv/app/node_modules # dargstack:dev-only
5252
volumes:
@@ -60,6 +60,7 @@ x-dargstack:
6060
template: postgres://{{secret:postgres-role-service-postgraphile-username}}:{{secret:postgres-role-service-postgraphile-password}}@postgres:5432/{{secret:postgres-db}}
6161
postgraphile-jwt-secret:
6262
type: private_key
63+
key_type: ecdsa
6364
postgraphile-owner-connection:
6465
type: template
6566
template: postgres://{{secret:postgres-user}}:{{secret:postgres-password}}@postgres:5432/{{secret:postgres-db}}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
-----BEGIN PUBLIC KEY-----
2+
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEgIYyEMm+hZzEnXhJLGUx9lwr3cKs
3+
W2uJ+zLvei380CrUEPARnWQNR/V0usS0EFypTQllniuCpbLG6un87kxh6w==
4+
-----END PUBLIC KEY-----

src/development/postgraphile/configurations/jwtRS256.key.pub

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/development/reccoom/compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ services:
3333
- reccoom-openai-api-key
3434
volumes:
3535
- ../../../../reccoom/:/srv/app/ # dargstack:dev-only
36-
- ../../production/postgraphile/configurations/jwtRS256.key.pub:/run/configurations/jwtRS256.key.pub:ro
36+
- ./configurations/jwtES256.key.pub:/run/configurations/jwtES256.key.pub:ro
3737
reccoom_postgres:
3838
# You can access reccoom's database via `adminer`.
3939
deploy:

src/development/vibetype/compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ services:
7272
- ../../../artifacts/certificates/:/srv/certificates/ # dargstack:dev-only
7373
- ../../../../vibetype/:/srv/app/ # dargstack:dev-only
7474
- vibetype-data:/srv/app/node_modules # dargstack:dev-only
75-
- ../postgraphile/configurations/jwtRS256.key.pub:/run/environment-variables/NUXT_PUBLIC_VIO_AUTH_JWT_PUBLIC_KEY:ro
75+
- ../postgraphile/configurations/jwtES256.key.pub:/run/environment-variables/NUXT_PUBLIC_VIO_AUTH_JWT_PUBLIC_KEY:ro
7676
volumes:
7777
vibetype-data:
7878
# The frontend's data.

src/production/vibetype/compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ services:
4848
# - source: postgres-role-service-vibetype-username
4949
# target: /run/environment-variables/PGUSER
5050
# volumes:
51-
# - ./configurations/postgraphile/jwtRS256.key.pub:/run/environment-variables/NUXT_PUBLIC_VIO_AUTH_JWT_PUBLIC_KEY:ro
51+
# - ./configurations/postgraphile/jwtES256.key.pub:/run/environment-variables/NUXT_PUBLIC_VIO_AUTH_JWT_PUBLIC_KEY:ro
5252
volumes:
5353
vibetype_data: (( prune ))

0 commit comments

Comments
 (0)