Skip to content

MISC - MS notificaciones: informar bajas del servicio#242

Open
aldoEMatamala wants to merge 1 commit intomasterfrom
MISC-430
Open

MISC - MS notificaciones: informar bajas del servicio#242
aldoEMatamala wants to merge 1 commit intomasterfrom
MISC-430

Conversation

@aldoEMatamala
Copy link
Contributor

@aldoEMatamala aldoEMatamala commented Feb 27, 2026

Requerimiento

Funcionalidad desarrollada

  1. Se implementó la lógica para procesar los eventos del webhook (disconnected, authenticated, qr, ready) y disparar el envío de correos electrónicos informativos.

  2. Se creó componente mail.ts para gestionar el envío de correos usando nodemailer y la configuración del microservicio.

  3. Se agregó seguridad a la ruta /webhook mediante validación de firma HMAC-SHA256 (header X-Webhook-Signature)

  4. Se agregan WEBHOOK_SECRET y WaApiKey al config.private no incluido en el PR

UserStory llegó a completarse

  • Si
  • No
  • No corresponde

Requiere actualizaciones en la base de datos

  • Si
  • No

Requiere actualizaciones en la API

  • Si
  • No

Simulación de evento con codificación de clave en header a traves de script en postman

image image image

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant