Skip to content

feat(nginx-strangler): cut over logs and system/plugins routes to server-nestjs - #2724

Draft
shikanime wants to merge 1 commit into
mainfrom
feat/strangler-v1-logs-system-config
Draft

feat(nginx-strangler): cut over logs and system/plugins routes to server-nestjs#2724
shikanime wants to merge 1 commit into
mainfrom
feat/strangler-v1-logs-system-config

Conversation

@shikanime

Copy link
Copy Markdown
Member

Issues liées

#1889 (suivi modularisation) ; #2208 (livraison system/config, clôturée)


Quel est le comportement actuel ?

/api/v1/logs et /api/v1/system/plugins sont servies par le backend Fastify legacy via le catch-all /api/ de nginx-strangler, alors que leurs modules NestJS (LogModule, SystemConfigModule) sont portés, enregistrés dans main.module.ts, avec parité de routes et de gardes (ListSystem/ManageSystem) et sans hook.* legacy à bridger.

Quel est le nouveau comportement ?

Ces deux routes sont basculées vers server-nestjs dans routing.conf (Vague 1) :

  • # [Vague 1 - log] 2026-09-11location /api/v1/logs vers server-nestjs
  • # [Vague 1 - system/config] 2026-09-11location /api/v1/system/plugins vers server-nestjs

Rollback selon le README : commenter le bloc (# ROLLBACK AAAA-MM-JJ) puis nginx -s reload.

Ne sont pas basculées, bloquées volontairement :

Cette PR introduit-elle un breaking change ?

Non.

Autres informations

Audit de parité pré-bascule : contrats partagés (@ts-rest) = parité structurelle des chemins ; statuts/réponses vérifiés (204 no-content sur POST plugins des deux côtés) ; guards comparés route par route contre les routers legacy.

…ver-nestjs

Route /api/v1/logs and /api/v1/system/plugins to the NestJS backend: both modules are ported with route and guard parity (ListSystem/ManageSystem) and carry no legacy hook.* to bridge. /api/v1/system/settings stays on legacy until its missing admin guard is fixed (#2722); /api/v1/admin/roles until the adminRole event bridge exists (#2723). Rollback per README: comment the block, then nginx -s reload.

Refs #2208 #1889

Co-authored-by: Automata <automata@shikanime.studio>
Signed-off-by: William Phetsinorath <william.phetsinorath-open@interieur.gouv.fr>
Change-Id: Ibf007517c18bea4d321131c0cee9938c6a6a6964
@shikanime shikanime added the enhancement New feature or request label Sep 11, 2026
@shikanime shikanime self-assigned this Sep 11, 2026
@shikanime shikanime added this to the 10.0.0 milestone Sep 11, 2026
@github-actions github-actions Bot added the built label Sep 11, 2026
@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 enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant