Skip to content

chore: offload projects to nestjs - #2376

Open
shikanime wants to merge 2 commits into
mainfrom
shikanime/push-wloolnyrrswx
Open

chore: offload projects to nestjs#2376
shikanime wants to merge 2 commits into
mainfrom
shikanime/push-wloolnyrrswx

Conversation

@shikanime

@shikanime shikanime commented Jul 28, 2026

Copy link
Copy Markdown
Member

Signed-off-by: William Phetsinorath william.phetsinorath-open@interieur.gouv.fr
Change-Id: I6f501bd1633ceb14edaa9bf2a324ea026a6a6964

Issues liées

Issues numéro: #2330 #2153


Quel est le comportement actuel ?

Quel est le nouveau comportement ?

Cette PR introduit-elle un breaking change ?

Autres informations

@github-actions github-actions Bot added the built label Jul 28, 2026
@shikanime shikanime changed the title refactor: configuration to nestjs system chore: offload projects to nestjs Jul 28, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🤖 Hey !

The security scan report for the current pull request is available here.

@shikanime
shikanime force-pushed the shikanime/push-wloolnyrrswx branch 2 times, most recently from 87c5620 to 6ff0d1e Compare July 28, 2026 09:48
@github-actions

Copy link
Copy Markdown
Contributor

🤖 Hey !

The security scan report for the current pull request is available here.

1 similar comment
@github-actions

Copy link
Copy Markdown
Contributor

🤖 Hey !

The security scan report for the current pull request is available here.

@shikanime
shikanime force-pushed the shikanime/push-wloolnyrrswx branch 2 times, most recently from fe8ccc9 to ee68675 Compare July 28, 2026 09:56
@github-actions

Copy link
Copy Markdown
Contributor

🤖 Hey !

The security scan report for the current pull request is available here.

1 similar comment
@github-actions

Copy link
Copy Markdown
Contributor

🤖 Hey !

The security scan report for the current pull request is available here.

@shikanime
shikanime force-pushed the shikanime/push-wloolnyrrswx branch 2 times, most recently from 20efae7 to adee401 Compare July 28, 2026 10:06
@shikanime shikanime self-assigned this Jul 28, 2026
@shikanime shikanime added this to the 9.23.0 milestone Jul 28, 2026
@shikanime shikanime added the preview Deploy preview app with Argo-cd label Jul 28, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🤖 Hey !

A preview of the application is available at : https://console-pr-2376.dso.cpin-hp.numerique-interieur.fr

Please be patient, deployment may take a few minutes.

@github-actions

Copy link
Copy Markdown
Contributor

🤖 Hey !

The security scan report for the current pull request is available here.

1 similar comment
@github-actions

Copy link
Copy Markdown
Contributor

🤖 Hey !

The security scan report for the current pull request is available here.

@github-actions

Copy link
Copy Markdown
Contributor

🤖 Hey !

The security scan report for the current pull request is available here.

shikanime added a commit that referenced this pull request Jul 28, 2026
Align keycloak and opencds feature-config schemas with the legacy env
contract: the preview (ArgoCD) injects only legacy-required vars, so
KEYCLOAK_CLIENT_ID/SECRET/ADMIN/ADMIN_PASSWORD/REDIRECT_URI and
OPENCDS_URL/API_TOKEN are legitimately absent. Previously these were
mandatory (z.string().min(1)/.url()), causing config parse to throw at
bootstrap and the container to be marked unhealthy (502 on all nestjs
routes).

Default the optional vars to empty string and guard the opencds probeUrl
transform against absent URLs so config parse no longer crashes boot.

Fixes: unblocks PR #2376 UAT (issue #2379)
Signed-off-by: shikanime <shikanime@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown
Contributor

🤖 Hey !

The security scan report for the current pull request is available here.

1 similar comment
@github-actions

Copy link
Copy Markdown
Contributor

🤖 Hey !

The security scan report for the current pull request is available here.

shikanime added a commit that referenced this pull request Jul 28, 2026
The deployment contract is nginx-strangler upstreaming server-nestjs:3001
over the container network. Defaulting SERVER_HOST to 'localhost' and
SERVER_PORT to '0' made the app bind a random localhost-only port that the
:3001 upstream could not reach, so the pod was marked unhealthy and every
nestjs route returned 502. The .env.docker-example already sets these to
0.0.0.0/3001; make that the safe default so the preview is reachable even
when the injected env omits them.

Completes the startup-crash fix for PR #2376 (issue #2379).

Signed-off-by: shikanime <shikanime@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown
Contributor

🤖 Hey !

The security scan report for the current pull request is available here.

@shikanime
shikanime force-pushed the shikanime/push-wloolnyrrswx branch 2 times, most recently from 39baf47 to 83ba753 Compare July 28, 2026 11:59
@github-actions

Copy link
Copy Markdown
Contributor

🤖 Hey !

The security scan report for the current pull request is available here.

@github-actions

Copy link
Copy Markdown
Contributor

🤖 Hey !

The security scan report for the current pull request is available here.

@shikanime
shikanime force-pushed the shikanime/push-wloolnyrrswx branch 2 times, most recently from 648233d to ced0dfe Compare July 28, 2026 20:12
@github-actions

Copy link
Copy Markdown
Contributor

🤖 Hey !

The security scan report for the current pull request is available here.

@shikanime
shikanime force-pushed the shikanime/push-wloolnyrrswx branch 3 times, most recently from 519a74c to b4b99ad Compare July 29, 2026 09:08
@github-actions

Copy link
Copy Markdown
Contributor

🤖 Hey !

The security scan report for the current pull request is available here.

1 similar comment
@github-actions

Copy link
Copy Markdown
Contributor

🤖 Hey !

The security scan report for the current pull request is available here.

@shikanime
shikanime force-pushed the shikanime/push-wloolnyrrswx branch from b4b99ad to 74559a0 Compare July 29, 2026 09:22
@github-actions

Copy link
Copy Markdown
Contributor

🤖 Hey !

The security scan report for the current pull request is available here.

@shikanime
shikanime force-pushed the shikanime/push-wloolnyrrswx branch 2 times, most recently from 02607b2 to 71a2fb9 Compare July 29, 2026 09:24
@StephaneTrebel
StephaneTrebel requested a review from a team July 29, 2026 09:33
@github-actions

Copy link
Copy Markdown
Contributor

🤖 Hey !

The security scan report for the current pull request is available here.

2 similar comments
@github-actions

Copy link
Copy Markdown
Contributor

🤖 Hey !

The security scan report for the current pull request is available here.

@github-actions

Copy link
Copy Markdown
Contributor

🤖 Hey !

The security scan report for the current pull request is available here.

Comment thread apps/server-nestjs/src/config/config-testing.utils.ts

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue: Alors, j'aime bien l'idée de s'éviter une dépendance et de générer uniquement ce dont on a besoin (surtout pour contrôler des crons), mais il va falloir une palanquée de tests unitaires pour valider et maintenir tout ça 😉

Comment thread apps/server-nestjs/src/config/gitlab.config.spec.ts Outdated
@shikanime
shikanime force-pushed the shikanime/push-wloolnyrrswx branch 2 times, most recently from 14076fe to 53ca47e Compare July 29, 2026 10:02
@github-actions

Copy link
Copy Markdown
Contributor

🤖 Hey !

The security scan report for the current pull request is available here.

@shikanime
shikanime force-pushed the shikanime/push-wloolnyrrswx branch 2 times, most recently from dae1f5e to aeeeaff Compare July 29, 2026 12:42
Comment thread apps/server-nestjs/src/main.module.ts Fixed
Comment thread apps/server-nestjs/src/config/gitlab.config.ts Fixed
Comment thread apps/server-nestjs/src/config/harbor.config.ts Fixed
Comment thread apps/server-nestjs/src/config/nexus.config.ts Fixed
Comment thread apps/server-nestjs/src/config/sonarqube.config.ts Fixed
Comment thread apps/server-nestjs/src/config/vault.config.ts Fixed
Comment thread apps/server-nestjs/src/modules/plugin/plugin.module.spec.ts Fixed
Comment thread apps/server-nestjs/src/modules/plugin/plugin.module.spec.ts Fixed
Comment thread apps/server-nestjs/src/modules/plugin/plugin.module.spec.ts Fixed
shikanime and others added 2 commits July 30, 2026 21:18
Signed-off-by: William Phetsinorath <william.phetsinorath-open@interieur.gouv.fr>
Change-Id: I6f501bd1633ceb14edaa9bf2a324ea026a6a6964
Signed-off-by: William Phetsinorath <william.phetsinorath-open@interieur.gouv.fr>
Change-Id: I3ebbec188732c0b9b3a9d088d2cca9e26a6a6964
@cloud-pi-native-sonarqube

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

built preview Deploy preview app with Argo-cd

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants