Teleport
Connect Teleport to Ploy to see every user in your Teleport Cloud tenant and the Teleport roles each one holds. Ploy can also create local users, give and remove roles one at a time, change a user's role, and delete users.
This integration is in beta
The Teleport integration is in beta. It was built from Teleport's documentation and has not yet been run against a real Teleport tenant, so the Ploy team watches the first connections closely. Beta does not limit what the integration can do.
The first step of setup is a consent checkbox. Ticking it lets Ploy capture redacted error data when a request to Teleport fails: the error response Teleport sends back, with names, emails, tokens and other secrets removed. Ploy uses it only to fix problems with this integration. You must tick the box to continue.
During the beta, the Ploy team will help you create the token Ploy connects with. Contact your Ploy contact before you start.
What Ploy shows
Every Teleport user: local users, users who sign in through single sign-on, users synchronised from your identity provider, and bots.
Each user's roles, such as access, editor or auditor, and your own custom roles. A user can hold several.
Every role defined in your tenant, so a role nobody holds yet can still be given from Ploy.
Users blocked by a lock show as blocked, with their access removed.
Teleport has no email field. Ploy matches a Teleport user to a person by email only when their username is an email address.
Users who sign in through single sign-on exist in Teleport only for up to 30 hours after each sign-in. When their record expires, Ploy shows their access as ended until they sign in again.
Ploy does not show roles held for a limited time through an access request, Access List membership, sign-in times, or which servers, databases and Kubernetes clusters a role reaches.
What Ploy can change
Create a user. The username is the person's email address and the flow chooses their first role. Teleport does not let anyone set a password for another user, so Ploy returns a one-time link, valid for 24 hours, that the person opens to set their own password and second factor. Someone who already has that username counts as done.
Give or remove a role from the Teleport app's page in Ploy. Teleport needs every user to hold at least one role, so Ploy will not remove a user's last role.
Change a user's role in a flow. The user ends up holding only the chosen role.
Remove a user. This deletes a local user. Users who sign in through single sign-on or are synchronised from your identity provider come back when they next sign in or sync, so remove them there. Removing someone who is already gone counts as done.
Ploy cannot lock or unlock users.
Before you start
You need a Teleport Cloud tenant, the address you sign in at, for example
acme.teleport.sh. Self-hosted Teleport clusters are not supported.Create a dedicated Teleport user for Ploy rather than using a person's account. Its changes are then easy to find in Teleport's audit log.
Give that user a dedicated role, not the broad preset roles. The role needs these rules:
kind: role
version: v7
metadata:
name: ploy-governance
spec:
allow:
rules:
- resources: [user]
verbs: [list, read, create, update, delete]
- resources: [role]
verbs: [list, read]If you only want Ploy to read, leave out create, update and delete.
Connect Teleport in Ploy
In Ploy, open Integrations and choose Teleport.
Tick the beta consent box.
Enter your Teleport Cloud address, for example
acme.teleport.sh.Paste the token for Ploy's Teleport user.
Save. Ploy tests the connection by listing your Teleport users.
If the test fails with a message about the token, check it was copied in full and has not expired. If it says the token cannot list users, check the role above is assigned to Ploy's Teleport user.
Create a user from a flow
Add the Create user in integration step, choose your Teleport connection, and enter the Role exactly as it is named in Teleport, for example access. The step's result includes the one-time enrolment link to send to the new user.