-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: jwt oversized + undefined errors + many things (#2455)
https://www.notion.so/fabnummas/27-02-2025-Erreurs-d-authentifications-sur-EgaPro-1a8653b7be07806fbd22f12c9ba9a3a4 * fix: logger error * fix: proconnect url in env vars * fix: split urls and add scope plus client id * fix: manage org url * fix: multiple organisations * personal information * add prod configmap * update preprod/dev configmap * fix typo * remove client id * configmap ref * fix: use system ca * fix: use system ca * fix: use system ca * fix(dev): update dev setup to allow proconnect on local run * fix: use system ca * fix: use system ca * feat: use fabriqueKeycloak provider on charon * fix: kontinuous * fix: client id keycloak client * fix: remove oci helm image of kontinuous dependencies * chore: wip * fix: add redis chart & rebase !2459 * fix: replace argon2 by deterministic hash * fix: maxTtl * fix: redis prefix * fix: add redis-auth secret * fix: mount redis creds * fix: remove keyPrefix * fix: redis host and fullnameOverride * fix: app needs redis * fix: redis * fix: type * fix: types * fix: types * fix: don't use passwordFile in redis * fix: don't use passwordFile in redis * fix: log redis error properly * fix: log redis error properly * fix: disable redis restart on deploy * fix: redis svc lookup * fix: annotations * fix: log next auth error properly * fix: log jwt trigger * fix: log jwt trigger * fix: add logs * fix: run in dev mode to allow debug server * fix: lsiedfuvgnhbsiugnoqi"bgyfceuiy * fix: redis disable restart * chore: debugging the hard way * fix: catch errors * fix: restore dockerfile * fix: filter * fix: siret/siren * fix: found main issues and draft plan to correct * fix: last issues fixed & cleanup before deploy * fix: docker build * fix: docker build * fix: cleanup --------- Co-authored-by: fjeannot <[email protected]> Co-authored-by: Kévin Sztern <[email protected]> Co-authored-by: devthejo <[email protected]>
- Loading branch information
1 parent
06e3dc5
commit 2d9f79c
Showing
36 changed files
with
569 additions
and
272 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
dependencies: | ||
- name: redis | ||
repository: oci://registry-1.docker.io/bitnamicharts | ||
version: 20.10.1 | ||
condition: "redis.enabled" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,3 @@ | ||
projectName: egapro | ||
ciNamespace: ci-egapro | ||
repositoryName: egapro | ||
|
||
dependencies: | ||
fabrique: | ||
extends: | ||
- name: ovh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../preprod/templates/egapro.configmap.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../preprod/templates/redis-auth.sealedsecret.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,7 @@ app: | |
MAILER_SMTP_SSL: "False" | ||
|
||
maildev: {} | ||
pgweb: {} | ||
pgweb: {} | ||
|
||
redis: | ||
architecture: standalone |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
kind: ConfigMap | ||
apiVersion: v1 | ||
metadata: | ||
name: egapro | ||
data: | ||
EGAPRO_PROCONNECT_SCOPE: "openid email profile" | ||
EGAPRO_PROCONNECT_DISCOVERY_URL: https://keycloak.undercloud.fabrique.social.gouv.fr/realms/atlas | ||
EGAPRO_PROCONNECT_SIGN_IN_URL: https://keycloak.undercloud.fabrique.social.gouv.fr/realms/atlas/control-plane-egapro-preprod | ||
EGAPRO_PROCONNECT_MANAGE_ORGANISATIONS_URL: https://keycloak.undercloud.fabrique.social.gouv.fr/realms/atlas/account | ||
EGAPRO_PROCONNECT_PERSONAL_INFORMATION_URL: https://keycloak.undercloud.fabrique.social.gouv.fr/realms/atlas/account |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
.kontinuous/env/preprod/templates/redis-auth.sealedsecret.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apiVersion: bitnami.com/v1alpha1 | ||
kind: SealedSecret | ||
metadata: | ||
annotations: | ||
sealedsecrets.bitnami.com/cluster-wide: 'true' | ||
name: redis-auth | ||
spec: | ||
encryptedData: | ||
REDIS_PASSWORD: AgAa9HeRViyTc4lbQrdG5+8mUUz+2XQAevYQdlLqjny6VvxtGccsPn43cccGX8ljfuKOMwWdmWIYtojoJHbSF1Aje+ZNufnU45dzfgRib/lmjs1dDDa/vL9x5l5Ap/4LHkRZF0GU+H9fRGmWvBQf1fwAurqRFuCRVC9RMA1aKaZxnyrWniM+nx35cs+idjVdgNcy8v1Z5bxVaCX+RS8xzwjkw5FRZNUKJ1OB4C6Rf/XbijfreLUruW/MSM9vxBj4GP9whXTWD3rnMvUn9/MollOFYqx0GXPif6Nd0qVSlRTbWpU0JaYZYXFM2PTCWFg0XrCQSDWf/TCqH2TEz5JMtN/6Qe55aULYJSS0ceTLgUw/mlC7WdosIWERaXqWWi2juOudWR6wKKPKSGVKCVImBA5GN0Ntkrp61iFQNsTfN+rbUYkWDNs4/E3B9GFc3iAluqJglTBVSnsUvkUNGOG2Fud5me8+SXWWcMlymg74Wj88TRep3I84yDd/wXIUdY0m9lsvH352XuU7R9it7ybk7nUI0p+1WP347anEXxxGz3NmFH/RxsgxW1Sz5UkeiNp2XZADQllXOA0MyqxhcaoISrT6xZ9saNaayuBiQC/b4WNfPmHHFJDytva8dbuVw20nDK/5DsQP+bxgHm3WLS3PSKSqOiAMc/JfiSlCmX9QCsNzMDGzFtcDYAc6cWXkPFJVjRiO5yxZ/Eq01gL1NP706M5g | ||
template: | ||
metadata: | ||
annotations: | ||
sealedsecrets.bitnami.com/cluster-wide: 'true' | ||
name: redis-auth | ||
type: Opaque |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,4 +31,8 @@ app: | |
memory: 1G | ||
|
||
maildev: {} | ||
pgweb: {} | ||
pgweb: {} | ||
|
||
redis: | ||
sentinel: | ||
enabled: true |
16 changes: 16 additions & 0 deletions
16
.kontinuous/env/prod/templates/redis-auth.sealedsecret.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
apiVersion: bitnami.com/v1alpha1 | ||
kind: SealedSecret | ||
metadata: | ||
annotations: | ||
sealedsecrets.bitnami.com/namespace-wide: 'true' | ||
name: redis-auth | ||
namespace: egapro | ||
spec: | ||
encryptedData: | ||
REDIS_PASSWORD: AgBncuzYLOZzxnCjkehUxFZupFYIuVTmJzIeyb+5ZOpYpZUudNatQBn1SGOxM5WelgrxHiOeSU91IIFGCMbxOV32dY3VNRO+kgjhDVCcJJv5T0S9QBzRASmU/Dh0HBYydQ7zUbHeb1XfNhTVroI53JbjTX5Q5gw/Pf8tc7gkp1latKlwsbCJJon4ueiHQJmJOVVeq8m00vGcmz48jFLJmUR4eCFpO1Zr4+IOkva8iperUOIydXmQxG7j8MVjW+pNQWYQN5aVuzFnja0b7VCCuuKiZCQlwgtghFcPMNV+T5ERSP9nNDRxLMXpnLz1j41wtPydfNK+BNHgB+Oc6+hqHubyC+ET0FUbCUGx2mIkLN4iJLhbifWqCxLfN8tf35eyEOB7smkV2r5UBHZ+q1EuUCSFapJWiOwWsGXX/UeBTq674cst7hRqOr+pNDR55By3Bfco64qAq98dG8sbLw6bObEtjoTPN8m6RnoSYrBAusjz//8cG3XNixINGpfvRDS6PVHgu6TWDQ2t79Sm7+HIoNHAHj07dCFIW2HHPoUP+fC43hzGgIdHN+pTg/fGkQDPN3CbR3meemwtAz19tR9+T6jS8fN0YkNy0YVRlZyVnAJeTZmxmZ065fUNRMZ7oLrd9QgXM7n7oNGzZqkBqs6HXMTIwPL+ILFeaqhN/qz9C6hTFekCrRDh7eJq1fcThGyZeZhHxB8KgjLzjW8JMgvH1t/N | ||
template: | ||
metadata: | ||
annotations: | ||
sealedsecrets.bitnami.com/namespace-wide: 'true' | ||
name: redis-auth | ||
type: Opaque |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,3 +69,6 @@ nginx: | |
cpu: 2 | ||
memory: 2G | ||
|
||
redis: | ||
sentinel: | ||
enabled: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module.exports = async (manifests, _options, context) => { | ||
for (const manifest of manifests) { | ||
if(manifest.kind==="StatefulSet" && manifest.metadata?.labels?.["app.kubernetes.io/name"] === "redis"){ | ||
if(!manifest.metadata.annotations){ | ||
manifest.metadata.annotations = {} | ||
} | ||
manifest.metadata.annotations["kontinuous/plugin.forceRestart"] = "false" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
kind: ConfigMap | ||
apiVersion: v1 | ||
metadata: | ||
name: egapro | ||
data: | ||
EGAPRO_PROCONNECT_SCOPE: "openid email profile organizations phone" | ||
EGAPRO_PROCONNECT_DISCOVERY_URL: "https://identite.proconnect.gouv.fr" | ||
EGAPRO_PROCONNECT_SIGN_IN_URL: "https://identite.proconnect.gouv.fr/users/start-sign-in" | ||
EGAPRO_PROCONNECT_MANAGE_ORGANISATIONS_URL: "https://identite.proconnect.gouv.fr/manage-organizations" | ||
EGAPRO_PROCONNECT_PERSONAL_INFORMATION_URL: "https://identite.proconnect.gouv.fr/personal-information" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
nodejs 20.18.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.