{"token_count": 10867}

# TeleportScopedTokenV1

This guide lists the fields in the `TeleportScopedTokenV1` resource, which you can apply after installing the Teleport Kubernetes operator.

## resources.teleport.dev/v1

**apiVersion:** resources.teleport.dev/v1

| Field      | Type            | Description                                                                                                                                                                                                                                                                                          |
| ---------- | --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| apiVersion | string          | APIVersion 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>  |
| kind       | string          | Kind 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> |
| metadata   | object          |                                                                                                                                                                                                                                                                                                      |
| scope      | string          | Scope is the scope of the token resource.                                                                                                                                                                                                                                                            |
| spec       | [object](#spec) | ScopedToken resource definition v1 from Teleport                                                                                                                                                                                                                                                     |

### spec

| Field             | Type                            | Description                                                                                                                                                                                                                                                                   |
| ----------------- | ------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| assigned\_scope   | string                          | The scope to which this token is assigned. Must be equivalent or descendent to the scope of the token itself.                                                                                                                                                                 |
| aws               | [object](#specaws)              | The AWS-specific configuration used with the "ec2" and "iam" join methods.                                                                                                                                                                                                    |
| azure             | [object](#specazure)            | The Azure-specific configuration used with the "azure" join method.                                                                                                                                                                                                           |
| azure\_devops     | [object](#specazure_devops)     | The Azure Devops-specific configuration used with the "azure\_devops" join method.                                                                                                                                                                                            |
| bitbucket         | [object](#specbitbucket)        | Configuration specific to the "bitbucket" join method.                                                                                                                                                                                                                        |
| bot               | string                          | The bot associated with this join token, if any, as a scope-qualified name of the form `<scope>::<bot-name>` (e.g. "/staging/west::mybot"). The scope component must be a descendant of or equivalent to the token's resource scope. Mutually exclusive with assigned\_scope. |
| bound\_keypair    | [object](#specbound_keypair)    | Configuration specific to the "bound\_keypair" join method.                                                                                                                                                                                                                   |
| circleci          | [object](#speccircleci)         | Configuration specific to the "circleci" join method                                                                                                                                                                                                                          |
| env0              | [object](#specenv0)             | Configuration specific to the "env0" join method.                                                                                                                                                                                                                             |
| gcp               | [object](#specgcp)              | The GCP-specific configuration used with the "gcp" join method.                                                                                                                                                                                                               |
| generic\_oidc     | [object](#specgeneric_oidc)     | Configuration specific to the "generic\_oidc" join method.                                                                                                                                                                                                                    |
| github            | [object](#specgithub)           | Configuration specific to the "github" join method.                                                                                                                                                                                                                           |
| gitlab            | [object](#specgitlab)           | Configuration specific to the "gitlab" join method.                                                                                                                                                                                                                           |
| immutable\_labels | [object](#specimmutable_labels) | Immutable labels that should be applied to any resulting resources provisioned using this token.                                                                                                                                                                              |
| join\_method      | string                          | The joining method required in order to use this token. Note that not all join methods support joining with scoped tokens.                                                                                                                                                    |
| kubernetes        | [object](#speckubernetes)       | The Kubernetes-specific configuration used with the "kubernetes" join method.                                                                                                                                                                                                 |
| oracle            | [object](#specoracle)           | The Oracle-specific configuration used with the "oracle" join method.                                                                                                                                                                                                         |
| roles             | \[]string                       | The list of roles associated with the token. They will be converted to metadata in the SSH and X509 certificates issued to the user of the token.                                                                                                                             |
| spacelift         | [object](#specspacelift)        | Configuration specific to the "spacelift" join method.                                                                                                                                                                                                                        |
| terraform\_cloud  | [object](#specterraform_cloud)  | Configuration specific to the "terraform\_cloud" join method.                                                                                                                                                                                                                 |
| tpm               | [object](#spectpm)              | Configuration specific to the "tpm" join method.                                                                                                                                                                                                                              |
| usage\_mode       | string                          | The usage mode of the token. Can be "single\_use" or "unlimited". Single use tokens can only be used to provision a single resource. Unlimited tokens can be be used to provision any number of resources until it expires.                                                   |

### spec.aws

| Field       | Type                             | Description                                                                                                                                                    |
| ----------- | -------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| allow       | \[][object](#specawsallow-items) | A list of Rules for allowing use of this token. A node must match at least one allow rule in order to use this token.                                          |
| iid\_ttl    | string                           | The TTL to use for AWS EC2 Instance Identity Documents used to join the cluster with this token. This should be a duration string such as "8h" or "6mo".       |
| integration | string                           | Integration name which provides credentials for validating join attempts. Currently only in use for validating the AWS Organization ID in the IAM Join method. |

### spec.aws.allow items

| Field                 | Type      | Description                                                                                                   |
| --------------------- | --------- | ------------------------------------------------------------------------------------------------------------- |
| aws\_account          | string    | The AWS account ID.                                                                                           |
| aws\_arn              | string    | The ARN of the joining identity for use with the IAM join method. Supports wildcards "\*" and "?".            |
| aws\_organization\_id | string    | The organization ID that the joining AWS identity must belong to when using the IAM join method.              |
| aws\_regions          | \[]string | List of AWS regions a node is allowed to join from when using the EC2 join method.                            |
| aws\_role             | string    | The ARN of the role the Auth Service will assume in order to call the EC2 API when using the EC2 join method. |

### spec.azure

| Field | Type                               | Description                                                                                                           |
| ----- | ---------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
| allow | \[][object](#specazureallow-items) | A list of Rules for allowing use of this token. A node must match at least one allow rule in order to use this token. |

### spec.azure.allow items

| Field            | Type      | Description                                                       |
| ---------------- | --------- | ----------------------------------------------------------------- |
| resource\_groups | \[]string | A list of Azure resource groups the node is allowed to join from. |
| subscription     | string    | The Azure subscription.                                           |
| tenant           | string    | Tenant is the Azure Tenant ID.                                    |

### spec.azure\_devops

| Field            | Type                                      | Description                                                                                                                                                                              |
| ---------------- | ----------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| allow            | \[][object](#specazure_devopsallow-items) | A list of Rules for allowing use of this token. A node must match at least one allow rule in order to use this token.                                                                    |
| organization\_id | string                                    | The UUID of the Azure DevOps organization that this join token will grant access to. This is used to identify the correct issuer verification of the ID token. This is a required field. |

### spec.azure\_devops.allow items

| Field               | Type   | Description                                                                                                                                          |
| ------------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| definition\_id      | string | The ID of the AZDO pipeline definition. Example: `1` Mapped from the `def_id` claim.                                                                 |
| pipeline\_name      | string | The name of the AZDO pipeline. Example: `my-pipeline`. Mapped out of the `sub` claim.                                                                |
| project\_id         | string | The ID of the AZDO pipeline. Example: `271ef6f7-0000-0000-0000-4b54d9129990` Mapped from the `prj_id` claim.                                         |
| project\_name       | string | The name of the AZDO project. Example: `my-project`. Mapped out of the `sub` claim.                                                                  |
| repository\_ref     | string | The reference of the repository the pipeline is using. Example: `refs/heads/main`. Mapped from the `rpo_ref` claim.                                  |
| repository\_uri     | string | The URI of the repository the pipeline is using. Example: `https://github.com/gravitational/teleport.git`. Mapped from the `rpo_uri` claim.          |
| repository\_version | string | The individual commit of the repository the pipeline is using. Example: `e6b9eb29a288b27a3a82cc19c48b9d94b80aff36`. Mapped from the `rpo_ver` claim. |
| sub                 | string | The subject string that roughly uniquely identifies the workload. Example: `p://my-organization/my-project/my-pipeline` Mapped from the `sub` claim. |

### spec.bitbucket

| Field                   | Type                                   | Description                                                                                                                                                                                                                |
| ----------------------- | -------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| allow                   | \[][object](#specbitbucketallow-items) | A list of rules. Workloads trying to join must match at least one allow rule for the join attempt to be allowed.                                                                                                           |
| audience                | string                                 | The Bitbucket-specified audience value for this token. It is unique to each Bitbucket repository, and must be set to the value as written in the "Pipelines -> OpenID Connect" section of the repository settings.         |
| identity\_provider\_url | string                                 | A Bitbucket-specified issuer URL for the incoming OIDC tokens. It is unique to each Bitbucket repository, and must be set to the value as written in the "Pipelines -> OpenID Connect" section of the repository settings. |

### spec.bitbucket.allow items

| Field                         | Type   | Description                                                                                                                                                                                                                |
| ----------------------------- | ------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| branch\_name                  | string | The name of the branch on which this pipeline executed.                                                                                                                                                                    |
| deployment\_environment\_uuid | string | The UUID of the deployment environment targeted by this pipelines run, if any. These values may be found in the "Pipelines -> OpenID Connect -> Deployment environments" section of the repository settings.               |
| repository\_uuid              | string | The UUID of the repository for which this token was issued. Bitbucket UUIDs must begin and end with braces, e.g. `{...}`. This value may be found in the "Pipelines -> OpenID Connect" section of the repository settings. |
| workspace\_uuid               | string | The UUID of the workspace for which this token was issued. This value may be found in the "Pipelines -> OpenID Connect" section of the repository settings.                                                                |

### spec.bound\_keypair

| Field         | Type                                   | Description                                                                                                                                                                                                                                                                                                                                     |
| ------------- | -------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| onboarding    | [object](#specbound_keypaironboarding) | Parameters related to initial onboarding and keypair registration.                                                                                                                                                                                                                                                                              |
| recovery      | [object](#specbound_keypairrecovery)   | Parameters related to recovery after identity expiration, including the initial join.                                                                                                                                                                                                                                                           |
| rotate\_after | string                                 | An optional timestamp that forces clients to perform a keypair rotation on the next join or recovery attempt after the given date. If `LastRotatedAt` is unset or before this timestamp, a rotation will be requested. It is recommended to set this value to the current timestamp if a rotation should be triggered on the next join attempt. |

### spec.bound\_keypair.onboarding

| Field                  | Type   | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| ---------------------- | ------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| initial\_public\_key   | string | The initial public key is used to preregister a public key generated by `tbot keypair create`. When set, no initial join secret is generated or made available for use, and clients must have the associated private key available to join. If set, `initial_join_secret` and `must_register_before` are ignored. This value is written in SSH authorized\_keys format.                                                                                              |
| must\_register\_before | string | An optional time before which registration via registration join secret must be performed. Attempts to register using a registration secret after this timestamp will not be allowed. This may be modified after creation if necessary to allow the initial registration to take place. This value is ignored if `initial_public_key` is set.                                                                                                                        |
| registration\_secret   | string | A secret that joining clients may use to register their public key on first join, which may be used instead of preregistering a public key with `initial_public_key`. If `initial_public_key` is set, this value is ignored. Otherwise, if set, this value will be used to populate `.status.bound_keypair.registration_secret`. If unset and no `initial_public_key` is provided, a random secure value will be generated server-side to populate the status field. |

### spec.bound\_keypair.recovery

| Field | Type    | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| ----- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| limit | integer | The maximum number of allowed recovery attempts. This value may be raised or lowered after creation to allow additional recovery attempts should the initial limit be exhausted. If `mode` is set to `standard`, recovery attempts will only be allowed if `.status.bound_keypair.recovery_count` is less than this limit. This limit is not enforced if `mode` is set to `relaxed` or `insecure`. This value must be at least 1 to allow for the initial join during onboarding, which counts as a recovery.                                                                                                                                                                                                                                                                                                                                   |
| mode  | string  | Mode sets the recovery rule enforcement mode. It may be one of these values: - standard (or unset): all configured rules enforced. The recovery limit and client join state are required and verified. This is the most secure recovery mode. - relaxed: recovery limit is not enforced, but client join state is still required. This effectively allows unlimited recovery attempts, but client join state still helps mitigate stolen credentials. - insecure: neither the recovery limit nor client join state are enforced. This allows any client with the private key to join freely. This is less secure, but can be useful in certain situations, like in otherwise unsupported CI/CD providers. This mode should be used with care, and RBAC rules should be configured to heavily restrict which resources this identity can access. |

### spec.circleci

| Field            | Type                                  | Description                                                                                                                       |
| ---------------- | ------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| allow            | \[][object](#speccircleciallow-items) | Allow is a list of TokenRules, nodes using this token must match one allow rule to use this token. At least one rule is required. |
| organization\_id | string                                | The unique identifier of the organization. Required.                                                                              |

### spec.circleci.allow items

| Field       | Type   | Description                                                                          |
| ----------- | ------ | ------------------------------------------------------------------------------------ |
| context\_id | string | A unique context identifier. At least one of context\_id or project\_id is required. |
| project\_id | string | A unique project identifier. At least one of project\_id or context\_id is required. |

### spec.env0

| Field | Type                              | Description                                                                                                                |
| ----- | --------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| allow | \[][object](#specenv0allow-items) | A list of rules allowed by this token. Clients attempting to join must present a JWT matching at least one of these rules. |

### spec.env0.allow items

| Field             | Type   | Description                                                                                                        |
| ----------------- | ------ | ------------------------------------------------------------------------------------------------------------------ |
| deployer\_email   | string | The email of the person that triggered the deployment, corresponding to `deployerEmail` in an Env0 OIDC token.     |
| deployment\_type  | string | The env0 deployment type, such as "deploy", "destroy", etc. Corresponds to `deploymentType` in an Env0 OIDC token. |
| env0\_tag         | string | A custom tag value corresponding to the JWT's `env0Tag` when `ENV0_OIDC_TAG` is set.                               |
| environment\_id   | string | The unique identifier of the Env0 environment, corresponding to `environmentId` in an Env0 OIDC token.             |
| environment\_name | string | The name of the Env0 environment, corresponding to `environmentName` in an Env0 OIDC token.                        |
| organization\_id  | string | A unique organization identifier, corresponding to `organizationId` in an Env0 OIDC token.                         |
| project\_id       | string | A unique project identifier, corresponding to `projectId` in an Env0 OIDC token.                                   |
| project\_name     | string | The name of the project under which the job was run corresponding to `projectName` in an Env0 OIDC token.          |
| template\_id      | string | The unique identifier of the Env0 template, corresponding to `templateId` in an Env0 OIDC token.                   |
| template\_name    | string | The name of the Env0 template, corresponding to `templateName` in an Env0 OIDC token.                              |
| workspace\_name   | string | The name of the Env0 workspace, corresponding to `workspaceName` in an Env0 OIDC token.                            |

### spec.gcp

| Field | Type                             | Description                                                                                                           |
| ----- | -------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
| allow | \[][object](#specgcpallow-items) | A list of Rules for allowing use of this token. A node must match at least one allow rule in order to use this token. |

### spec.gcp.allow items

| Field             | Type      | Description                                                                                       |
| ----------------- | --------- | ------------------------------------------------------------------------------------------------- |
| locations         | \[]string | A list of regions (e.g. "us-west1") and/or zones (e.g. "us-west1-b").                             |
| project\_ids      | \[]string | A list of project IDs (e.g. `<example-id-123456>`).                                               |
| service\_accounts | \[]string | A list of service account emails (e.g. `<project-number>-compute@developer.gserviceaccount.com`). |

### spec.generic\_oidc

| Field                         | Type                                          | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| ----------------------------- | --------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| allow\_any                    | \[][object](#specgeneric_oidcallow_any-items) | Complex rules evaluated using "OR" semantics. If any rules are specified, at least one rule must evaluate to `true` for the join attempt/ to be allowed. These rules are evaluated after `must_match_fields`, if any field matchers are specified in that block. Note that at least one rule, either in `must_match_fields` or `allow_any`, must be specified for any join attempts to succeed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| audience                      | string                                        | The expected JWT audience value (required). This must match or be included in the list of `aud` values in the JWT provided by the client when joining. For providers that do not allow you to configure this value yourself (this is technically an OIDC spec violation, but is common), use the value they provide. Otherwise, we recommend using a value that uniquely identifies the Teleport cluster and join token. For example, you can use this scheme: $clusterName/$tokenName For a cluster named `example.teleport.sh` and a token named `example`, this would result in an audience of `example.teleport.sh/example`. If you prefer, you can also use a UUID instead of the token name. Note that you will need to configure the matching value with the issuer, usually at request time.                                                                                                                                                                                                                                                                                                                                        |
| insecure\_allow\_http\_issuer | boolean                                       | If set, disables the requirement that the issuer must use HTTPS.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| issuer                        | string                                        | The expected `iss` value as written in the JWT you wish to trust. Unless `static_jwks` is configured, this issuer must be accessible over HTTPS to the Teleport cluster and must serve valid OIDC metadata, including discovery configuration and JWKS keys.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| must\_match\_fields           | object                                        | "Must match" fields perform simple comparison matches using "AND" semantics. Rules are specified by mirroring the structure of the JWT, using values that are expected to be equal to those on the incoming token. These field matching rules can only be used to compare simple values: strings, numbers, booleans, and nested fields. Complex values, including lists, will need to use `allow_any` expression rules instead. If any field match rules are specified, all must be equal to corresponding JWT fields for the join attempt to succeed. If complex rules are specified in `allow_any`, those are evaluated after `must_match_fields`. If `must_match_fields` is not specified or is empty, only rules in `allow_any` are evaluated. These rules can be used as "global" rules that apply to all join attempts. For example, you can use these to ensure all attempts originate from your organization, then use `allow_any` rules to allow individual repositories, pipelines, or workspaces. Note that at least one rule, either in `must_match_fields` or `allow_any`, must be specified for any join attempts to succeed. |
| static\_jwks                  | string                                        | An optional static JWKS value that can be used to specify JWKS keys when either OIDC discovery is either not supported by the provider or the discovery configuration is not accessible to Teleport. When set, configuration and JWKS keys will not be fetched from the URL contained in `issuer` and JWTs will be validated using the key set specified here.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| tls\_ca                       | string                                        | A TLS CA certificate that should be used to verify requests for OIDC metadata from the issuer instead of Teleport's CA store, useful if the issuer is not public or otherwise uses a self-signed certificate. If unset, the standard web PKI root certificates will be used to verify the connection to the issuer when fetching OIDC metadata. Note that this value only applies to requests using this token, and will be used instead of and not in addition to the system CA store, and will need to be updated manually if the remote CA is updated.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |

### spec.generic\_oidc.allow\_any items

| Field      | Type                                                          | Description                                                                                                                                                                                      |
| ---------- | ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| conditions | \[][object](#specgeneric_oidcallow_any-itemsconditions-items) | Conditions are simple eq/not\_eq/in/not\_in conditions that check individual fields. All conditions must be satisfied for a join attempt to be allowed. Mutually exclusive with `expression`.    |
| expression | string                                                        | A predicate expression that must evaluate to `true` for the join attempt to be allowed. It is mutually exclusive with `conditions`. TODO: Include name of variable available to the expr in docs |

### spec.generic\_oidc.allow\_any items.conditions items

| Field     | Type                                                             | Description                                                                            |
| --------- | ---------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
| attribute | string                                                           | The name of the field this condition should check, separated by "." for nested fields. |
| eq        | [object](#specgeneric_oidcallow_any-itemsconditions-itemseq)     | An "equals" operator. Only one operator may be set within a condition.                 |
| in        | [object](#specgeneric_oidcallow_any-itemsconditions-itemsin)     | An "in" operator. Only one operator may be set within a condition.                     |
| not\_eq   | [object](#specgeneric_oidcallow_any-itemsconditions-itemsnot_eq) | A "not equals" operator. Only one operator may be set within a condition.              |
| not\_in   | [object](#specgeneric_oidcallow_any-itemsconditions-itemsnot_in) | A "not in" operator. Only one operator may be set within a condition.                  |

### spec.generic\_oidc.allow\_any items.conditions items.eq

| Field | Type   | Description                                 |
| ----- | ------ | ------------------------------------------- |
| value | string | The value to compare the attribute against. |

### spec.generic\_oidc.allow\_any items.conditions items.in

| Field  | Type      | Description                                          |
| ------ | --------- | ---------------------------------------------------- |
| values | \[]string | The list of values to compare the attribute against. |

### spec.generic\_oidc.allow\_any items.conditions items.not\_eq

| Field | Type   | Description                                 |
| ----- | ------ | ------------------------------------------- |
| value | string | The value to compare the attribute against. |

### spec.generic\_oidc.allow\_any items.conditions items.not\_in

| Field  | Type      | Description                                          |
| ------ | --------- | ---------------------------------------------------- |
| values | \[]string | The list of values to compare the attribute against. |

### spec.github

| Field                    | Type                                | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| ------------------------ | ----------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| allow                    | \[][object](#specgithuballow-items) | allow is a set of claim-matching fields evaluated against the GitHub Actions OIDC token.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| enterprise\_server\_host | string                              | enterprise\_server\_host allows joining from runners associated with a GitHub Enterprise Server instance. When unconfigured, tokens will be validated against github.com, but when configured to the host of a GHES instance, then the tokens will be validated against host. This value should be the hostname of the GHES instance, and should not include the scheme or a path. The instance must be accessible over HTTPS at this hostname and the certificate must be trusted by the Auth Service.                                                                                                                                                                                      |
| enterprise\_slug         | string                              | enterprise\_slug allows the slug of a GitHub Enterprise organisation to be included in the expected issuer of the OIDC tokens. This is for compatibility with the `include_enterprise_slug` option in GHE. This field should be set to the slug of your enterprise if this is enabled. If this is not enabled, then this field must be left empty. This field cannot be specified if `enterprise_server_host` is specified. See <https://docs.github.com/en/enterprise-cloud@latest/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect#customizing-the-issuer-value-for-an-enterprise> for more information about customized issuer values. |
| static\_jwks             | string                              | static\_jwks disables fetching of the GHES signing keys via the JWKS/OIDC endpoints, and allows them to be directly specified. This allows joining from GitHub Actions in GHES instances that are not reachable by the Teleport Auth Service.                                                                                                                                                                                                                                                                                                                                                                                                                                                |

### spec.github.allow items

| Field             | Type   | Description                                                                                                                                                                                                                                                                                 |
| ----------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| actor             | string | actor is the personal account that initiated the workflow run. This field supports "glob-style" matching: - Use '\*' to match zero or more characters. - Use '?' to match any single character.                                                                                             |
| enterprise        | string | enterprise name in which the repository is stored.                                                                                                                                                                                                                                          |
| enterprise\_id    | string | enterprise\_id in which the repository is stored.                                                                                                                                                                                                                                           |
| environment       | string | environment name used by the job. This field supports "glob-style" matching: - Use '\*' to match zero or more characters. - Use '?' to match any single character.                                                                                                                          |
| ref               | string | ref (git) that triggered the workflow run. This field supports "glob-style" matching: - Use '\*' to match zero or more characters. - Use '?' to match any single character.                                                                                                                 |
| ref\_type         | string | ref\_type for example: "branch".                                                                                                                                                                                                                                                            |
| repository        | string | repository from where the workflow is running. This includes the name of the owner e.g `gravitational/teleport` This field supports "glob-style" matching: - Use '\*' to match zero or more characters. - Use '?' to match any single character.                                            |
| repository\_owner | string | repository\_owner is the name of the organization in which the repository is stored. This field supports "glob-style" matching: - Use '\*' to match zero or more characters. - Use '?' to match any single character.                                                                       |
| sub               | string | sub also known as Subject is a string that roughly uniquely identifies the workload. The format of this varies depending on the type of github action run. This field supports "glob-style" matching: - Use '\*' to match zero or more characters. - Use '?' to match any single character. |
| workflow          | string | workflow name. This field supports "glob-style" matching: - Use '\*' to match zero or more characters. - Use '?' to match any single character.                                                                                                                                             |

### spec.gitlab

| Field        | Type                                | Description                                                                                                                                                                                                           |
| ------------ | ----------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| allow        | \[][object](#specgitlaballow-items) | A set of claim-matching fields evaluated against the GitLab CI token.                                                                                                                                                 |
| domain       | string                              | The domain of your GitLab instance. This will default to `gitlab.com` - but can be set to the domain of your self-hosted GitLab e.g `gitlab.example.com`.                                                             |
| static\_jwks | string                              | Disables fetching of the GitLab signing keys via the JWKS/OIDC endpoints, and allows them to be directly specified. This allows joining from GitLab CI instances that are not reachable by the Teleport Auth Service. |

### spec.gitlab.allow items

| Field                  | Type    | Description                                                                                                                                                                                                                                                                                                |
| ---------------------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ci\_config\_ref\_uri   | string  | The ref path to the top-level pipeline definition, for example, gitlab.example.com/my-group/my-project//.gitlab-ci.yml\@refs/heads/main.                                                                                                                                                                   |
| ci\_config\_sha        | string  | The git commit SHA for the ci\_config\_ref\_uri.                                                                                                                                                                                                                                                           |
| deployment\_tier       | string  | The deployment tier of the environment the job specifies                                                                                                                                                                                                                                                   |
| environment            | string  | Limits access by the environment the job deploys to (if one is associated)                                                                                                                                                                                                                                 |
| environment\_protected | boolean | True if the Git ref is protected, false otherwise.                                                                                                                                                                                                                                                         |
| namespace\_path        | string  | Used to limit access to jobs in a group or user's projects. Example: `mygroup` This field supports "glob-style" matching: - Use '\*' to match zero or more characters. - Use '?' to match any single character.                                                                                            |
| pipeline\_source       | string  | Limits access by the job pipeline source type. <https://docs.gitlab.com/ee/ci/jobs/job_control.html#common-if-clauses-for-rules> Example: `web`                                                                                                                                                            |
| project\_path          | string  | Used to limit access to jobs belonging to an individual project. Example: `mygroup/myproject` This field supports "glob-style" matching: - Use '\*' to match zero or more characters. - Use '?' to match any single character.                                                                             |
| project\_visibility    | string  | The visibility of the project where the pipeline is running. Can be internal, private, or public.                                                                                                                                                                                                          |
| ref                    | string  | Allows access to be limited to jobs triggered by a specific git ref. Ensure this is used in combination with ref\_type. This field supports "glob-style" matching: - Use '\*' to match zero or more characters. - Use '?' to match any single character.                                                   |
| ref\_protected         | boolean | True if the Git ref is protected, false otherwise.                                                                                                                                                                                                                                                         |
| ref\_type              | string  | Allows access to be limited to jobs triggered by a specific git ref type. Example: `branch` or `tag`                                                                                                                                                                                                       |
| sub                    | string  | Roughly uniquely identifies the workload. Example: `project_path:mygroup/my-project:ref_type:branch:ref:main` project\_path:GROUP/PROJECT:ref\_type:TYPE:ref:BRANCH\_NAME This field supports "glob-style" matching: - Use '\*' to match zero or more characters. - Use '?' to match any single character. |
| user\_email            | string  | The email of the user executing the job                                                                                                                                                                                                                                                                    |
| user\_id               | string  | The ID of the user executing the job                                                                                                                                                                                                                                                                       |
| user\_login            | string  | The username of the user executing the job                                                                                                                                                                                                                                                                 |

### spec.immutable\_labels

| Field | Type                               | Description                                 |
| ----- | ---------------------------------- | ------------------------------------------- |
| ssh   | [object](#specimmutable_labelsssh) | Labels that should be applied to SSH nodes. |

### spec.immutable\_labels.ssh

| Field | Type   | Description |
| ----- | ------ | ----------- |
| key   | string |             |
| value | string |             |

### spec.kubernetes

| Field        | Type                                    | Description                                                                                                                                           |
| ------------ | --------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| allow        | \[][object](#speckubernetesallow-items) | A list of Rules for allowing use of this token. A node must match at least one allow rule in order to use this token.                                 |
| oidc         | [object](#speckubernetesoidc)           | The configuration specific to the `oidc` type.                                                                                                        |
| static\_jwks | [object](#speckubernetesstatic_jwks)    | The configuration specific to the `static_jwks` type.                                                                                                 |
| type         | string                                  | Controls which behavior should be used for validating the Kubernetes Service Account token. Supported values: - `in_cluster` - `static_jwks` - `oidc` |

### spec.kubernetes.allow items

| Field                       | Type   | Description                                                                                                                                                                       |
| --------------------------- | ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| service\_account            | string | The namespaced name of the Kubernetes service account. Its format is "namespace:service-account".                                                                                 |
| service\_account\_name      | string | The name of the Kubernetes service account. This field supports "glob-style" matching: - Use '\*' to match zero or more characters. - Use '?' to match any single character.      |
| service\_account\_namespace | string | The namespace of the Kubernetes service account. This field supports "glob-style" matching: - Use '\*' to match zero or more characters. - Use '?' to match any single character. |

### spec.kubernetes.oidc

| Field                         | Type    | Description                                                                                                                                                                                                                                                                                |
| ----------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| insecure\_allow\_http\_issuer | boolean | If set, disables the requirement that the issuer must use HTTPS.                                                                                                                                                                                                                           |
| issuer                        | string  | The URI of the OIDC issuer. It must have an accessible and OIDC-compliant `/.well-known/openid-configuration` endpoint. This should be a valid URL and must exactly match the `issuer` field in a service account JWT. For example: <https://oidc.eks.us-west-2.amazonaws.com/id/12345>... |

### spec.kubernetes.static\_jwks

| Field | Type   | Description                                                                                                                                                                        |
| ----- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| jwks  | string | The JSON Web Key Set formatted public keys that the Kubernetes Cluster uses to sign service account tokens. This can be fetched from /openid/v1/jwks on the Kubernetes API Server. |

### spec.oracle

| Field | Type                                | Description                                                                                                           |
| ----- | ----------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
| allow | \[][object](#specoracleallow-items) | A list of Rules for allowing use of this token. A node must match at least one allow rule in order to use this token. |

### spec.oracle.allow items

| Field                | Type      | Description                                                                                                                                                                          |
| -------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| instances            | \[]string | A list of the OCIDs of specific instances that are allowed to join. If empty, any instance matching the other fields in the rule is allowed. Limited to 100 instance OCIDs per rule. |
| parent\_compartments | \[]string | A list of the OCIDs of compartments an instance is allowed to join from. Only direct parents are allowed, i.e. no nested compartments. If empty, any compartment is allowed.         |
| regions              | \[]string | A list of regions an instance is allowed to join from. Both full region names ("us-phoenix-1") and abbreviations ("phx") are allowed. If empty, any region is allowed.               |
| tenancy              | string    | The OCID of the instance's tenancy. Required.                                                                                                                                        |

### spec.spacelift

| Field                  | Type                                   | Description                                                                                                                |
| ---------------------- | -------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| allow                  | \[][object](#specspaceliftallow-items) | A list of rules allowed by this token. Clients attempting to join must present a JWT matching at least one of these rules. |
| enable\_glob\_matching | boolean                                | Enables glob-style matching for the space\_id and caller\_id fields in the rules.                                          |
| hostname               | string                                 | The hostname of the Spacelift tenant that tokens will originate from, e.g. `example.app.spacelift.io`                      |

### spec.spacelift.allow items

| Field        | Type   | Description                                                                                                                                                                                                                                 |
| ------------ | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| caller\_id   | string | The ID of the caller, ie. the stack or module that generated the run. This field supports "glob-style" matching when enable\_glob\_matching is true: - Use '\*' to match zero or more characters. - Use '?' to match any single character.  |
| caller\_type | string | The type of the caller, ie. the entity that owns the run, either `stack` or `module`.                                                                                                                                                       |
| scope        | string | The scope of the token - either `read` or `write`. See <https://docs.spacelift.io/integrations/cloud-providers/oidc/#about-scopes>                                                                                                          |
| space\_id    | string | The ID of the space in which the run that owns the token was executed. This field supports "glob-style" matching when enable\_glob\_matching is true: - Use '\*' to match zero or more characters. - Use '?' to match any single character. |

### spec.terraform\_cloud

| Field    | Type                                         | Description                                                                                                                                                                                                                                                                                                                                                                                |
| -------- | -------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| allow    | \[][object](#specterraform_cloudallow-items) | A list of rules allowed by this token. Clients attempting to join must present a JWT matching at least one of these rules.                                                                                                                                                                                                                                                                 |
| audience | string                                       | The JWT audience (`aud`) to expect as configured in the `TFC_WORKLOAD_IDENTITY_AUDIENCE_($TAG)` variable set in Terraform Cloud. If unset, defaults to the Teleport cluster name. For example, if `TFC_WORKLOAD_IDENTITY_AUDIENCE_TELEPORT=foo` is set in Terraform Cloud, this value should be `foo`. If the value is your Teleport cluster name, it does not need to be configured here. |
| hostname | string                                       | The hostname of the Terraform Enterprise instance expected to issue JWTs accepted by this token. If unset, it defaults to the default Terraform Cloud issuer, `app.terraform.io`; otherwise, it must match the `iss` field in JWTs issued by the Terraform Enterprise provider.                                                                                                            |

### spec.terraform\_cloud.allow items

| Field              | Type   | Description                                                                                                                                            |
| ------------------ | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| organization\_id   | string | The ID of the HCP Terraform organization. At least one of `organization_id` or `organization_name` must be provided.                                   |
| organization\_name | string | The human-readable name of the HCP Terraform organization. At least one of `organization_id` or `organization_name` must be provided.                  |
| project\_id        | string | The ID of the HCP Terraform project. At least one of `project_id`, `project_name`, `workspace_id`, or `workspace_name` is required.                    |
| project\_name      | string | The human-readable name of the HCP Terraform project. At least one of `project_id`, `project_name`, `workspace_id`, or `workspace_name` is required.   |
| run\_phase         | string | The phase of the run the token was issued for, e.g. `plan` or `apply`                                                                                  |
| workspace\_id      | string | The ID of the HCP Terraform workspace. At least one of `project_id`, `project_name`, `workspace_id`, or `workspace_name` is required.                  |
| workspace\_name    | string | The human-readable name of the HCP Terraform workspace. At least one of `project_id`, `project_name`, `workspace_id`, or `workspace_name` is required. |

### spec.tpm

| Field                | Type                             | Description                                                                                                                                                                                                                                                                                                          |
| -------------------- | -------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| allow                | \[][object](#spectpmallow-items) | A list of Rules, the presented delegated identity must match one allow rule to permit joining.                                                                                                                                                                                                                       |
| ekcert\_allowed\_cas | \[]string                        | A list of CA certificates that will be used to validate TPM EKCerts. When specified, joining TPMs must present an EKCert signed by one of the specified CAs. TPMs that do not present an EKCert will be not permitted to join. When unspecified, TPMs will be allowed to join with either an EKCert or an EKPubHash. |

### spec.tpm.allow items

| Field                   | Type   | Description                                                                                                                                                                                                                                                                                   |
| ----------------------- | ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| description             | string | A human-readable description of the rule. It has no bearing on whether or not a TPM is allowed to join, but can be used to associate a rule with a specific host (e.g the asset tag of the server in which the TPM resides). Example: "build-server-100"                                      |
| ek\_certificate\_serial | string | The serial number of the EKCert in hexadecimal with colon separated nibbles. This value will not be checked when a TPM does not have an EKCert configured. Example: 73:df:dc:bd:af:ef:8a:d8:15:2e:96:71:7a:3e:7f:a4                                                                           |
| ek\_public\_hash        | string | The SHA256 hash of the EKPub marshaled in PKIX format and encoded in hexadecimal. This value will also be checked when a TPM has submitted an EKCert, and the public key in the EKCert will be used for this check. Example: d4b45864d9d6fabfc568d74f26c35ababde2105337d7af9a6605e1c56c891aa6 |
