teleport-plugin-ms-teams

by jlucidar

Helm chartv11.0.0-hugoteamsApp 11.0.0-hugoteams

A Helm chart for the Teleport MsTeams Plugin

About this chart

Teleport Access Request MsTeams Plugin

This chart sets up and configures a Deployment for the Access Request MsTeams plugin.

Installation

Prerequisites

As the MsTeams setup requires to download the plugin locally to generate assets to load in MsTeams, you must follow the MsTeams access request guide. When generating the identity file, choose the "proxy" solution that generates a single file auth.pem.

Once the guide in finished, you should have a working teleport-ms-teams.toml configuration file.

Recover the following values from it:

  • msapi.appID
  • msapi.appSecret
  • msapi.teamsAppID
  • msapi.tenantID
  • teleport.addr

Recover also the auth.pem identity file generated during the guide.

Add the Teleport Helm repo

Run the command:

helm repo add teleport https://charts.releases.teleport.dev/

Creating the identity secret

The identity file is not provided through the Helm chart, it should be already existing present in the cluster.

Run the following command to create the secret from the auth.pem file recovered earlier:

export NAMESPACE="your-namespace" #The namespace should already exist
kubectl create -n "$NAMESPACE" secret generic teleport-plugin-ms-teams-identity --from-file=auth_id=./auth.pem

Installing the chart

Create the value file teleport-plugin-ms-teams-values.yaml with the following content:

teleport:
  address: "YOUR-TELEPORT-ADDRESS"
  identitySecretName: "teleport-plugin-ms-teams-identity"

msTeams:
  appID: "YOUR-APPID"
  appSecret: "YOUR-APP-SECRET"
  tenantID: "YOUR-TENANT"
  teamsAppID: "YOUR-TEAMS-APP-ID"

roleToRecipients:
  "*": "[email protected]"
  "editor": ["[email protected]", "https://CHANNEL URL"]

Replace the placeholders by the values you recovered during the guide. The roleToRecipient map controls which channels and users will be notified if a role is requested.

Finally, create a release from the Helm chart with the values:

helm install teleport-plugin-ms-teams teleport/teleport-plugin-ms-teams --values teleport-plugin-ms-teams-values.yaml -n "$NAMESPACE"

Deploy teleport-plugin-ms-teams with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has teleport-plugin-ms-teams 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 chartteleport-plugin-ms-teams is pinned at v11.0.0-hugoteams 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