Diffuser un message admin (maintenance/indisponibilité) à tous les utilisateurs des instances#362
Merged
Merged
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Résumé
/admin/broadcast.ronan.lenouvel.meorchestre via un appel HTTP interne (BroadcastOrchestrator→POST /internal/broadcast) sur chaque autre instance, qui envoie ensuite ses propres emails localement.BROADCAST_SHARED_TOKEN), firewall dédiébroadcast_internal, hors du firewall JWTapi.ROLE_ADMINSymfony : garde applicativeBroadcastAdminChecker(whitelist par emailBROADCAST_ADMIN_EMAIL).Commits
BroadcastTargetProvider+BroadcastMailer— envoi local à tous les users d'une instance (guests inclus, email invalide skippé)BroadcastOrchestrator— orchestration multi-instances (ciblage, dry-run, échec partiel n'interrompt pas les autres)BroadcastInternalController— endpoint interne + firewall dédié + authenticator par tokenBroadcastSendCommand— déclenchement CLI (app:broadcast:send)BroadcastAdminWebController— interface admin web + lien de navigation conditionnelbin/deploy-all.sh,.env*,.claude/deploiement.md)Test plan
composer dev-checkpasséBroadcastTargetProviderTest,BroadcastMailerTest,BroadcastOrchestratorTest,BroadcastInternalControllerTest,BroadcastSendCommandTest,BroadcastAdminCheckerTest,BroadcastAdminWebControllerTestBROADCAST_SHARED_TOKEN_PRESET/BROADCAST_ADMIN_EMAIL_PRESETdans.secrets, redéployer les 7 instances, tester en dry-run ciblé sur une instance non critique avant un envoi à toutesCloses #283