Skip to main content

TeleportSAMLConnector

Report an IssueView as Markdown

This guide is a comprehensive reference to the fields in the TeleportSAMLConnector resource, which you can apply after installing the Teleport Kubernetes operator.

resources.teleport.dev/v2

apiVersion: resources.teleport.dev/v2

FieldTypeDescription
apiVersionstringAPIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
kindstringKind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
metadataobject
specobjectSAMLConnector resource definition v2 from Teleport

spec

FieldTypeDescription
acsstringAssertionConsumerService is a URL for assertion consumer service on the service provider (Teleport's side).
allow_idp_initiatedbooleanAllowIDPInitiated is a flag that indicates if the connector can be used for IdP-initiated logins.
assertion_key_pairobjectEncryptionKeyPair is a key pair used for decrypting SAML assertions.
attributes_to_roles[]objectAttributesToRoles is a list of mappings of attribute statements to roles.
audiencestringAudience uniquely identifies our service provider.
certstringCert is the identity provider certificate PEM. IDP signs <Response> responses using this certificate.
client_redirect_settingsobjectClientRedirectSettings defines which client redirect URLs are allowed for non-browser SSO logins other than the standard localhost ones.
credentialsobjectSAMLConnectorCredentials configures authentication for the connector to authenticate against the identity provider for performing ancillary operations, e.g. for standalone Entra SAML connectors to authenticate against MS Graph API.
displaystringDisplay controls how this connector is displayed.
entity_descriptorstringEntityDescriptor is XML with descriptor. It can be used to supply configuration parameters in one XML file rather than supplying them in the individual elements.
entity_descriptor_urlstringEntityDescriptorURL is a URL that supplies a configuration XML.
entra_id_groups_providerobjectEntraIDGroupsProvider configures out-of-band user groups provider. It works by following through the "groups.link" SAML assertion attribute, which is sent instead of the "groups" attribute, when the user's group membership exceeds 150 max item limit.
force_authnstring or integerForceAuthn specified whether re-authentication should be forced on login. UNSPECIFIED is treated as NO. Can be either the string or the integer representation of each option.
include_subjectbooleanIncludeSubject is a flag that indicates whether the Subject element is included in the SAML authentication request. Defaults to false. Note: Some IdPs will reject requests that contain a Subject.
issuerstringIssuer is the identity provider issuer.
mfaobjectMFASettings contains settings to enable SSO MFA checks through this auth connector.
preferred_request_bindingstringPreferredRequestBinding is a preferred SAML request binding method. Value must be either "http-post" or "http-redirect". In general, the SAML identity provider lists request binding methods it supports. And the SAML service provider uses one of the IdP supported request binding method that it prefers. But we never honored request binding value provided by the IdP and always used http-redirect binding as a default. Setting up PreferredRequestBinding value lets us preserve existing auth connector behavior and only use http-post binding if it is explicitly configured.
providerstringProvider is the external identity provider.
service_provider_issuerstringServiceProviderIssuer is the issuer of the service provider (Teleport).
signing_key_pairobjectSigningKeyPair is an x509 key pair used to sign AuthnRequest.
single_logout_urlstringSingleLogoutURL is the SAML Single log-out URL to initiate SAML SLO (single log-out). If this is not provided, SLO is disabled.
ssostringSSO is the URL of the identity provider's SSO service.
user_matchers[]stringUserMatchers is a set of glob patterns to narrow down which username(s) this auth connector should match for identifier-first login.

spec.assertion_key_pair

FieldTypeDescription
certstringCert is a PEM-encoded x509 certificate.
private_keystringPrivateKey is a PEM encoded x509 private key.

spec.attributes_to_roles items

FieldTypeDescription
namestringName is an attribute statement name.
roles[]stringRoles is a list of static teleport roles to map to.
valuestringValue is an attribute statement value to match.

spec.client_redirect_settings

FieldTypeDescription
allowed_https_hostnames[]stringa list of hostnames allowed for https client redirect URLs
insecure_allowed_cidr_ranges[]stringa list of CIDRs allowed for HTTP or HTTPS client redirect URLs

spec.credentials

FieldTypeDescription
oauthobjectOAuthClientCredentials holds the credentials to use for OAuth client credentials grant.

spec.credentials.oauth

FieldTypeDescription
client_idstringClientID is the client ID to use for OAuth client credentials grant.
client_secretstringClientSecret is the client secret to use for OAuth client credentials grant.

spec.entra_id_groups_provider

FieldTypeDescription
disabledbooleanDisabled specifies that the groups provider should be disabled even when Entra ID responds with a groups claim source. User may choose to disable it if they are using integrations such as SCIM or similar groups importer as connector based role mapping may be not needed in such a scenario.
graph_endpointstringGraphEndpoint is a Microsoft Graph API endpoint. The groups claim source endpoint provided by Entra ID points to the now-retired Azure AD Graph endpoint ("https://graph.windows.net"). To convert it to the newer Microsoft Graph API endpoint, Teleport defaults to the Microsoft Graph global service endpoint ("https://graph.microsoft.com"). Update GraphEndpoint to point to a different Microsoft Graph national cloud deployment endpoint.
group_typestringGroupType is a user group type filter. Defaults to "security-groups". Value can be "security-groups", "directory-roles", "all-groups".

spec.mfa

FieldTypeDescription
certstringCert is the identity provider certificate PEM. IDP signs <Response> responses using this certificate.
enabledbooleanEnabled specified whether this SAML connector supports MFA checks. Defaults to false.
entity_descriptorstringEntityDescriptor is XML with descriptor. It can be used to supply configuration parameters in one XML file rather than supplying them in the individual elements. Usually set from EntityDescriptorUrl.
entity_descriptor_urlstringEntityDescriptorUrl is a URL that supplies a configuration XML.
force_authnstring or integerForceAuthn specified whether re-authentication should be forced for MFA checks. UNSPECIFIED is treated as YES to always re-authentication for MFA checks. This should only be set to NO if the IdP is setup to perform MFA checks on top of active user sessions. Can be either the string or the integer representation of each option.
issuerstringIssuer is the identity provider issuer. Usually set from EntityDescriptor.
ssostringSSO is the URL of the identity provider's SSO service. Usually set from EntityDescriptor.

spec.signing_key_pair

FieldTypeDescription
certstringCert is a PEM-encoded x509 certificate.
private_keystringPrivateKey is a PEM encoded x509 private key.