dmarc2logstash

by joaquinito2051

Helm chartv1.2.0App 1.0.3

Provides a POP3-polled DMARC XML report injector into Elasticsearch via Logstash and Filebeat

About this chart

dmarc2logstash Helm Chart

dmarc2logstash: A POP3 polling service that converts Domain-based Message Authentication, Reporting, and Complicane (DMARC) reports into a logstash feed. More information about the DMARC organization and RFC 7489 standards can be found at https://dmarc.org. An accompanying dashboard is available for import into Grafana.

Installing the Chart

To install the chart with the release name my-release:

helm install --name my-release <helm-repo>/dmarc2logstash

helm install --name my-release stable/dmarc2logstash The command deploys dmarc2logstash on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation. The secrets section lists the required Kubernetes secrets.

Uninstalling the Chart

To uninstall/delete the my-release deployment:

helm delete my-release --purge

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

settingdescriptiondefault
dmarc2logstash.image.repositorydmarc2logstash Docker image repositoryjertel/dmarc2logstash
dmarc2logstash.image.tagdmarc2logstash image tag, typically the version, of the Docker image1.0.3
dmarc2logstash.image.pullPolicydmarc2logstash Kubernetes image pull policyIfNotPresent
delete_messagesSet to 1 to delete messages or 0 to preserve messages (useful for debugging)1
filebeat.image.repositoryElastic filebeat Docker image repositorydocker.elastic.co/beats/filebeat
filebeat.image.tagElastic filebeat tag, typically the version, of the Docker image6.6.0
filebeat.image.pullPolicyElastic filebeat Kubernetes image pull policyIfNotPresent
filebeat.logstash.hostLogstash service host; ex: logstash (this value must be provided)""
filebeat.logstash.portLogstash service port5000
filebeat.logstash.sourceTypeLogstash source type will allow custom filtering via the Logstash configurationjson-logs
filebeat.logstash.indexElasticsearch index that will contain the new DMARC data (index will be created on-the-fly if doesn't exist)dmarc
filebeat.logstash.timeoutSeconds to wait before timing out the connection to logstash15

Secrets

The following dmarc2logstash-secrets are required to be present in order for this chart to deploy:

variablerequireddescription
pop3_servertrueThe POP3 server hostname or IP address (must support TLS)
pop3_usernametruePOP3 account username
pop3_passwordtruePOP3 account password

Below is a sample secrets.yaml file that can be used as a template. Remember that all secrets must be base64-encoded.

apiVersion: v1
kind: Secret
metadata:
  name: dmarc2logstash-secrets
type: Opaque
data:
  pop3_server: ""
  pop3_username: ""
  pop3_password: ""

Once you have provided the base64-encoded secret values, apply the file to your Kubernetes cluster as follows:

kubectl apply -f secrets.yaml

Deploy dmarc2logstash with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has dmarc2logstash on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartdmarc2logstash is pinned at v1.2.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply