package
0.97.3
Repository: https://github.com/chainloop-dev/chainloop.git
Documentation: pkg.go.dev

# README

SMTP Fan-out Plugin

With this plugin, you can send an email for every workflow run and attestation.

How to use it

In the following example, we will use the AWS SES service.

  1. To get started, you need to register the plugin in your Chainloop organization.
chainloop integration registered add smtp --opt user=AHDHSYEE7e73 --opt password=kjsdfda8asd**** --opt host=email-smtp.us-east-1.amazonaws.com --opt port=587 --opt [email protected] --opt [email protected]
  1. When attaching the integration to your workflow, you have the option to specify CC:
chainloop integration attached add --workflow $WID --integration $IID --opt [email protected]

cc is optional:

chainloop workflow integration attach --workflow $WID --integration $IID

Starting now, every time a workflow run occurs, an email notification will be sent containing the details of the run and attestation.

Registration Input Schema

FieldTypeRequiredDescription
fromstring (email)yesThe email address of the sender.
hoststringyesThe host to use for the SMTP authentication.
passwordstringyesThe password to use for the SMTP authentication.
portstringyesThe port to use for the SMTP authentication
tostring (email)yesThe email address to send the email to.
userstringyesThe username to use for the SMTP authentication.
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://github.com/chainloop-dev/chainloop/app/controlplane/plugins/core/smtp/v1/registration-request",
  "properties": {
    "to": {
      "type": "string",
      "format": "email",
      "description": "The email address to send the email to."
    },
    "from": {
      "type": "string",
      "format": "email",
      "description": "The email address of the sender."
    },
    "user": {
      "type": "string",
      "minLength": 1,
      "description": "The username to use for the SMTP authentication."
    },
    "password": {
      "type": "string",
      "description": "The password to use for the SMTP authentication."
    },
    "host": {
      "type": "string",
      "description": "The host to use for the SMTP authentication."
    },
    "port": {
      "type": "string",
      "description": "The port to use for the SMTP authentication"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "to",
    "from",
    "user",
    "password",
    "host",
    "port"
  ]
}

Attachment Input Schema

FieldTypeRequiredDescription
ccstring (email)noThe email address of the carbon copy recipient.
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://github.com/chainloop-dev/chainloop/app/controlplane/plugins/core/smtp/v1/attachment-request",
  "properties": {
    "cc": {
      "type": "string",
      "format": "email",
      "description": "The email address of the carbon copy recipient."
    }
  },
  "additionalProperties": false,
  "type": "object"
}

# Packages

No description provided by the author

# Functions

No description provided by the author

# Structs

No description provided by the author