Skip to content

feat(backend): allow super-admin-domifa creation for allowed email domains - #4344

Merged
pYassine merged 1 commit into
masterfrom
feat-add-domain-admin-account
Oct 27, 2026
Merged

pYassine merged 1 commit into
masterfrom
feat-add-domain-admin-account

Conversation

@abdelazizsakhi

Copy link
Copy Markdown
Contributor

No description provided.

@abdelazizsakhi abdelazizsakhi self-assigned this Oct 27, 2026
@sonarqubecloud

Copy link
Copy Markdown

@iterion-forge-domifa iterion-forge-domifa Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Revi — aucun problème détecté dans le périmètre revu.

À confirmer

  • Should plain social.gouv.fr be in SUPER_ADMIN_EMAIL_DOMAINS? It newly allows ANY @social.gouv.fr mailbox to hold a super-admin-domifa account, whereas the pre-existing UI allow-list covered only fabrique.social.gouv.fr and externes.sg.social.gouv.fr — if unintended, drop it from packages/common/src/users/user-supervisor/constants/SUPER_ADMIN_EMAIL_DOMAINS.const.ts.
Détails du run IA · Iterion

Run : 01a17e79-70dd-735f-a793-10f81020efe4

Tokens du run au moment de publier : 48 205.

Périmètre revu : correctness+security: packages/backend/src/modules/portail-admin/dto/register-user-supervisor.dto.ts (new @isin(USER_SUPERVISOR_ROLES) + @IsValidSuperAdminEmail cross-field check) ; security: packages/backend/src/modules/portail-admin/decorators/isSuperAdminEmailDecorator.ts (role-conditioned validation, bypass via missing role) ; security: packages/common/src/users/user-supervisor/constants/SUPER_ADMIN_EMAIL_DOMAINS.const.ts (exact-suffix, case-insensitive match; subdomain/suffix-spoof attempts) ; integration: patch-user-supervisor.dto.ts and admin-users.controller.ts guards (email immutable post-creation; register endpoint restricted to super-admin-domifa) ; tests: packages/backend/src/modules/portail-admin/dto/tests/register-user-supervisor.dto.spec.ts (accept/reject matrix incl. evil-suffix and subdomain cases) ; frontend: packages/portail-admins/src/app/modules/manage-users/components/register-user-supervisor/register-user-supervisor.component.ts + template (shared constant, validator re-run on role change, error message domain list) ; exports: packages/common/src/users/user-supervisor/constants/index.ts re-export chain to @domifa/common root

Revue mono (single model family).

Étape Modèle Harness Effort demandé Tokens
Revue GLM glm-5.3 claude_code max 40 849
Synthèse · GLM glm-5.3 claude_code medium 7 356

Tokens cumulés des appels IA, pas la taille du contexte. L’effort indiqué est le réglage demandé au modèle.

@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 63.82%. Comparing base (f7bcb12) to head (de8dede).
⚠️ Report is 1 commits behind head on master.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4344      +/-   ##
==========================================
+ Coverage   63.80%   63.82%   +0.02%     
==========================================
  Files        1072     1073       +1     
  Lines       22777    22790      +13     
  Branches     4545     4546       +1     
==========================================
+ Hits        14532    14545      +13     
- Misses       7951     8166     +215     
+ Partials      294       79     -215     
Files with missing lines Coverage Δ
...onstants/USER_SUPERVISOR_ASSIGNABLE_ROLES.const.ts 100.00% <ø> (ø)
...kend/src/modules/portail-admin/decorators/index.ts 100.00% <100.00%> (ø)
...ail-admin/decorators/isSuperAdminEmailDecorator.ts 100.00% <100.00%> (ø)
.../portail-admin/dto/register-user-supervisor.dto.ts 100.00% <100.00%> (ø)

... and 82 files with indirect coverage changes


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d4e3fcd...de8dede. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@pYassine
pYassine merged commit 6fd25b3 into master Oct 27, 2026
20 of 21 checks passed
@pYassine
pYassine deleted the feat-add-domain-admin-account branch October 27, 2026 21:38
@tokenbureau

tokenbureau Bot commented Oct 27, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 2.289.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@tokenbureau tokenbureau Bot added the released label Oct 27, 2026

This branch had an error being deployed

1 failed and 1 inactive deployments
build-review-auto — de8dedea Deployed Oct 27, 2026 by abdelazizsakhi via build-portail-admins #2585
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants