Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Commit

Permalink
Release 15.3.1 (#1066)
Browse files Browse the repository at this point in the history
* Release 15.3.1

* access/email: Embed example TOML file

The teleport repo changed to remove the exported `email.ExampleConfig`
variable, but we depend on it here. Add the example config as a file and
embed it in main.

This plugin is on its last days as it gets migrated to the teleport
repo, so duplicating this example config here for a short time will not
become a maintenance issue.
  • Loading branch information
camscale authored May 8, 2024
1 parent 7df001e commit 819f62a
Show file tree
Hide file tree
Showing 37 changed files with 175 additions and 127 deletions.
2 changes: 1 addition & 1 deletion access/discord/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION?=15.3.0
VERSION?=15.3.1
GO_VERSION=1.21.9

BUILDDIR ?= build
Expand Down
2 changes: 1 addition & 1 deletion access/email/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION?=15.3.0
VERSION?=15.3.1
GO_VERSION=1.21.9

BUILDDIR ?= build
Expand Down
37 changes: 37 additions & 0 deletions access/email/example_config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Example email plugin configuration TOML file

[teleport]
addr = "0.0.0.0:3025" # Teleport Auth Server GRPC API address

# When using --format=file:
# identity = "/var/lib/teleport/plugins/email/auth_id" # Identity file
# refresh_identity = true # Refresh identity file on a periodic basis.
#
# When using --format=tls:
# client_key = "/var/lib/teleport/plugins/email/auth.key" # Teleport TLS secret key
# client_crt = "/var/lib/teleport/plugins/email/auth.crt" # Teleport TLS certificate
# root_cas = "/var/lib/teleport/plugins/email/auth.cas" # Teleport CA certs

[mailgun]
domain = "your-domain-name"
private_key = "xoxb-11xx"
# private_key_file = "/var/lib/teleport/plugins/email/mailgun_private_key"

[smtp]
host = "smtp.gmail.com"
port = 587
username = "[email protected]"
password = ""
# password_file = "/var/lib/teleport/plugins/email/smtp_password"
starttls_policy = "mandatory" # mandatory|opportunistic|disabled

[delivery]
sender = "[email protected]" # From: email address

[role_to_recipients]
"dev" = "[email protected]" # All requests to 'dev' role will be sent to this address
"*" = ["[email protected]", "[email protected]"] # These recipients will receive review requests not handled by the roles above

[log]
output = "stderr" # Logger output. Could be "stdout", "stderr" or "/var/lib/teleport/email.log"
severity = "INFO" # Logger severity. Could be "INFO", "ERROR", "DEBUG" or "WARN".
6 changes: 5 additions & 1 deletion access/email/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package main

import (
"context"
_ "embed"
"fmt"
"os"
"time"
Expand All @@ -29,6 +30,9 @@ import (
"github.com/gravitational/trace"
)

//go:embed example_config.toml
var exampleConfig string

func main() {
logger.Init()
app := kingpin.New("teleport-email", "Teleport plugin for access requests approval via E-mail.")
Expand All @@ -52,7 +56,7 @@ func main() {

switch selectedCmd {
case "configure":
fmt.Print(email.ExampleConfig)
fmt.Print(exampleConfig)
case "version":
lib.PrintVersion(app.Name, Version, Gitref)
case "start":
Expand Down
2 changes: 1 addition & 1 deletion access/jira/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION?=15.3.0
VERSION?=15.3.1
GO_VERSION=1.21.9

BUILDDIR ?= build
Expand Down
2 changes: 1 addition & 1 deletion access/mattermost/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION?=15.3.0
VERSION?=15.3.1
GO_VERSION=1.21.9

BUILDDIR ?= build
Expand Down
2 changes: 1 addition & 1 deletion access/msteams/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION?=15.3.0
VERSION?=15.3.1
GO_VERSION=1.21.9

BUILDDIR ?= build
Expand Down
2 changes: 1 addition & 1 deletion access/pagerduty/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION?=15.3.0
VERSION?=15.3.1
GO_VERSION=1.21.9

BUILDDIR ?= build
Expand Down
2 changes: 1 addition & 1 deletion access/slack/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION?=15.3.0
VERSION?=15.3.1
GO_VERSION=1.21.9

BUILDDIR ?= build
Expand Down
6 changes: 3 additions & 3 deletions charts/access/discord/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: "15.3.0"
version: "15.3.1"

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
version: "15.3.0"
version: "15.3.1"

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "15.3.0"
appVersion: "15.3.1"
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ should match the snapshot:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: teleport-plugin-discord
app.kubernetes.io/version: 15.3.0
helm.sh/chart: teleport-plugin-discord-15.3.0
app.kubernetes.io/version: 15.3.1
helm.sh/chart: teleport-plugin-discord-15.3.1
name: RELEASE-NAME-teleport-plugin-discord
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ should match the snapshot:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: teleport-plugin-discord
app.kubernetes.io/version: 15.3.0
helm.sh/chart: teleport-plugin-discord-15.3.0
app.kubernetes.io/version: 15.3.1
helm.sh/chart: teleport-plugin-discord-15.3.1
name: RELEASE-NAME-teleport-plugin-discord
spec:
replicas: 1
Expand All @@ -22,8 +22,8 @@ should match the snapshot:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: teleport-plugin-discord
app.kubernetes.io/version: 15.3.0
helm.sh/chart: teleport-plugin-discord-15.3.0
app.kubernetes.io/version: 15.3.1
helm.sh/chart: teleport-plugin-discord-15.3.1
spec:
containers:
- command:
Expand Down
4 changes: 2 additions & 2 deletions charts/access/email/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ description: A Helm chart for the Teleport Email Plugin
type: application

# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: "15.3.0"
version: "15.3.1"

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "15.3.0"
appVersion: "15.3.1"
24 changes: 12 additions & 12 deletions charts/access/email/tests/__snapshot__/configmap_test.yaml.snap
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ should match the snapshot (mailgun on):
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: teleport-plugin-email
app.kubernetes.io/version: 15.3.0
helm.sh/chart: teleport-plugin-email-15.3.0
app.kubernetes.io/version: 15.3.1
helm.sh/chart: teleport-plugin-email-15.3.1
name: RELEASE-NAME-teleport-plugin-email
should match the snapshot (smtp on):
1: |
Expand Down Expand Up @@ -59,8 +59,8 @@ should match the snapshot (smtp on):
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: teleport-plugin-email
app.kubernetes.io/version: 15.3.0
helm.sh/chart: teleport-plugin-email-15.3.0
app.kubernetes.io/version: 15.3.1
helm.sh/chart: teleport-plugin-email-15.3.1
name: RELEASE-NAME-teleport-plugin-email
should match the snapshot (smtp on, no starttls):
1: |
Expand Down Expand Up @@ -92,8 +92,8 @@ should match the snapshot (smtp on, no starttls):
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: teleport-plugin-email
app.kubernetes.io/version: 15.3.0
helm.sh/chart: teleport-plugin-email-15.3.0
app.kubernetes.io/version: 15.3.1
helm.sh/chart: teleport-plugin-email-15.3.1
name: RELEASE-NAME-teleport-plugin-email
should match the snapshot (smtp on, password file):
1: |
Expand Down Expand Up @@ -125,8 +125,8 @@ should match the snapshot (smtp on, password file):
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: teleport-plugin-email
app.kubernetes.io/version: 15.3.0
helm.sh/chart: teleport-plugin-email-15.3.0
app.kubernetes.io/version: 15.3.1
helm.sh/chart: teleport-plugin-email-15.3.1
name: RELEASE-NAME-teleport-plugin-email
should match the snapshot (smtp on, roleToRecipients set):
1: |
Expand Down Expand Up @@ -161,8 +161,8 @@ should match the snapshot (smtp on, roleToRecipients set):
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: teleport-plugin-email
app.kubernetes.io/version: 15.3.0
helm.sh/chart: teleport-plugin-email-15.3.0
app.kubernetes.io/version: 15.3.1
helm.sh/chart: teleport-plugin-email-15.3.1
name: RELEASE-NAME-teleport-plugin-email
should match the snapshot (smtp on, starttls disabled):
1: |
Expand Down Expand Up @@ -194,6 +194,6 @@ should match the snapshot (smtp on, starttls disabled):
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: teleport-plugin-email
app.kubernetes.io/version: 15.3.0
helm.sh/chart: teleport-plugin-email-15.3.0
app.kubernetes.io/version: 15.3.1
helm.sh/chart: teleport-plugin-email-15.3.1
name: RELEASE-NAME-teleport-plugin-email
Loading

0 comments on commit 819f62a

Please sign in to comment.