ConfigJanitor - Kubernetes unused ConfigMap and Secret cleaner
Deletes ConfigMaps and Secrets no pod references and reports the cleanup on Slack.
Monitor a shared mailbox for emails from unauthorized sender domains and alert Slack before a spoofed or unapproved sender goes unnoticed.
A shared mailbox - a support alias, a partner-intake address, a vendor-facing inbox - has no built-in way to flag mail from a domain nobody approved: a spoofed lookalike of a real partner, or simply an unexpected sender slipping past manual review. This blueprint listens to the mailbox in real time and alerts Slack the instant an email arrives from a domain outside a configured allowlist, without ever marking the message as read or touching the mailbox otherwise.
inbound_email_received (io.kestra.plugin.email.RealTimeTrigger) opens the configured IMAP folder read-only and starts one execution per arriving email, using IMAP IDLE for push-style delivery. Shipped disabled; point vars.imap_host/imap_port/imap_ssl/imap_folder at a real or local test mailbox and verify a manual trigger of the flow first.extract_sender_domain (io.kestra.plugin.core.debug.Return) pulls the domain out of trigger.from.evaluate_sender_compliance (io.kestra.plugin.core.flow.If) branches on whether that domain is present in allowed_sender_domains.then (HEALTHY): log_sender_compliant records the pass.else (UNAUTHORIZED_SENDER_DOMAIN_DETECTED): alert_unauthorized_sender reports the sender, subject, and domain to Slack.log_audit_complete always runs last, printing the sender, domain, and subject regardless of which branch fired.errors block alerts Slack separately if the flow itself fails outright - for example a From header the extraction logic cannot parse.READ_ONLY, so this gate can never itself mark a message read, move it, or delete it.io.kestra.plugin.email.RealTimeTrigger - a capability added to this plugin on October 1, 2026 - used for a security/governance compliance gate, with no prior blueprint coverage of this specific trigger for this purpose in this repository (one existing blueprint uses the same trigger for AI-driven sponsorship-email business triage, a different use case entirely).IMAP itself has no allowlist or domain-governance primitive - a mail server either accepts a message or it doesn't, with no per-domain policy hook exposed to a downstream workflow. Kestra supplies the real-time trigger, the HEALTHY/UNAUTHORIZED_SENDER_DOMAIN_DETECTED classification as a first-class branch, and an execution history showing exactly which emails were flagged and when.
vars.imap_host/imap_port/imap_ssl accordingly).Local testing: GreenMail's Docker image requires no account or license and is built specifically for this kind of integration testing, satisfying this blueprint's testability without any paid or enterprise-only service.
MAILBOX_USERNAME / MAILBOX_PASSWORD: credentials for io.kestra.plugin.email.RealTimeTrigger.SLACK_WEBHOOK_URL: Slack incoming webhook used by alert_unauthorized_sender and the errors block.SECRET_, base64-encoded - for example SECRET_MAILBOX_PASSWORD=$(echo -n '<your-password>' | base64) - and read back in flows with {{ secret('NAME') }}.allowed_sender_domains (STRING, must be replaced): comma-separated list of trusted sender domains.imap_host / imap_port / imap_ssl / imap_folder: IMAP connection details fed to the trigger, defaulted to GreenMail's local Docker IMAPS port for easy local testing.trigger.from / .subject / .to / .cc / .bcc / .date / .body / .messageId / .attachments: every field verified from the trigger's own MailService.EmailData output model.outputs.extract_sender_domain.value (String): the parsed sender domain used for classification.docker run -p 3993:3993 -p 3143:3143 greenmail/standalone:latest or the project's own documented Docker command) or point this at a real mailbox.MAILBOX_USERNAME, MAILBOX_PASSWORD, and SLACK_WEBHOOK_URL secrets, and set allowed_sender_domains.log_sender_compliant fires.alert_unauthorized_sender fires with the correct sender, subject, and domain.trigger.subject or trigger.body against a list of known phishing/scam keyword patterns, alongside the domain check this blueprint already performs.trigger.attachments against an allowed file-extension list, flagging executable or script attachments from any sender, not just unauthorized domains.from field being a raw string from the From header. Internationalized domains, unusual quoting, or multiple addresses in one From header can produce an unexpected result; this blueprint does not use a full RFC 5322 address parser.READ_ONLY folder behavior and the EmailData output fields are taken verbatim from the plugin's own source - but no Kestra engine was run to execute this flow end to end.