Skip to content

Commit 15b4631

Browse files
authored
feat: mise à jour du password de l'admin en dev (#1523)
* feat: mise à jour du password de l'admin en dev * fix: attendre le démarrage de la db avant de lancer hasura
1 parent a6e9482 commit 15b4631

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.kontinuous/env/dev/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ jobs:
55
buildArgs:
66
NEXT_PUBLIC_BASE_PATH: https://www-{{.Values.global.host}}
77
post-restore:
8-
~needs: [pg, hasura]
8+
~needs: [ pg, hasura ]
99
use: psql
1010
with:
1111
sqlFile: .kontinuous/sql/post-restore.sql
1212
pgSecretRefName: pg-app
1313

1414
hasura:
1515
imagePackage: hasura
16-
~needs: [build-hasura]
16+
~needs: [ build-hasura, pg ]
1717
~preDeploy.cleaner:
1818
match:
1919
kind: Deployment

.kontinuous/env/preprod/values.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,25 @@ jobs:
55
buildArgs:
66
NEXT_PUBLIC_BASE_PATH: https://cdtn-admin-preprod.ovh.fabrique.social.gouv.fr
77
post-restore:
8-
~needs: [pg, hasura]
8+
~needs: [ pg, hasura ]
99
use: psql
1010
with:
1111
sqlFile: .kontinuous/sql/post-restore.sql
1212
pgSecretRefName: pg-app
1313
job-ingester:
14-
~needs: [hasura]
14+
~needs: [ hasura ]
1515
use: trigger-cronjob
1616
with:
1717
cronJobName: cron-ingester
1818
job-alert:
19-
~needs: [job-ingester]
19+
~needs: [ job-ingester ]
2020
use: trigger-cronjob
2121
with:
2222
cronJobName: cron-alert
2323

2424
hasura:
2525
imagePackage: hasura
26-
~needs: [build-hasura]
26+
~needs: [ build-hasura, pg ]
2727
~preDeploy.cleaner:
2828
match:
2929
kind: Deployment

.kontinuous/sql/post-restore.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
-- Anonymize users
22
UPDATE auth.users as u
3-
SET
4-
password = '$argon2id$v=19$m=65536,t=3,p=4$mId827NijFQET4RdT+sIMA$FVZz/GH6E4Y4PeDbG+823fyXFCcokEtEdE++ZOMbP3I',
3+
SET
4+
password = '$argon2id$v=19$m=65536,t=3,p=4$dTv43/xyuOUbJbECo+ftnQ$aC5yr+zCJalCLMLwzuJYi9kQ2OPCWoGRagfGR9BMpj8',
55
email = u.id || '@travail.gouv.fr',
66
name = CONCAT(
77
UPPER(SUBSTRING(name FROM 1 FOR 1)),
@@ -15,7 +15,7 @@ SET
1515
INSERT INTO auth.users (email, password, name, role, is_active, id)
1616
VALUES (
1717
'codedutravailnumerique@travail.gouv.fr',
18-
'$argon2id$v=19$m=65536,t=3,p=4$mId827NijFQET4RdT+sIMA$FVZz/GH6E4Y4PeDbG+823fyXFCcokEtEdE++ZOMbP3I',
18+
'$argon2id$v=19$m=65536,t=3,p=4$dTv43/xyuOUbJbECo+ftnQ$aC5yr+zCJalCLMLwzuJYi9kQ2OPCWoGRagfGR9BMpj8',
1919
'Administrateur',
2020
'super',
2121
TRUE,

0 commit comments

Comments
 (0)