UPdate teleport to version 17

This commit is contained in:
Jonny Ervine
2025-02-17 20:05:35 +08:00
parent 823120c033
commit 5afa9c2439
212 changed files with 1697 additions and 423 deletions
@@ -0,0 +1,4 @@
clusterName: helm-lint
enterprise: true
licenseSecretName: enterprise-license
+3 -3
View File
@@ -1,13 +1,13 @@
apiVersion: v2
appVersion: 16.4.6
appVersion: 17.2.7
dependencies:
- alias: operator
name: teleport-operator
repository: ""
version: 16.4.6
version: 17.2.7
description: Teleport is an access platform for your infrastructure
icon: https://goteleport.com/static/teleport-symbol-bimi.svg
keywords:
- Teleport
name: teleport-cluster
version: 16.4.6
version: 17.2.7
@@ -0,0 +1,10 @@
labels:
deployment:
kubernetes.io/deployment: "test-label"
kubernetes.io/deployment-different: 3
pod:
kubernetes.io/pod: "test-label"
kubernetes.io/pod-different: 4
teleportAddress: "example.teleport.sh:443"
token: "my-operator-bot"
teleportClusterName: "example.teleport.sh"
@@ -1,8 +1,8 @@
apiVersion: v2
appVersion: 16.4.6
appVersion: 17.2.7
description: Teleport Operator provides management of select Teleport resources.
icon: https://goteleport.com/static/teleport-symbol-bimi.svg
keywords:
- Teleport
name: teleport-operator
version: 16.4.6
version: 17.2.7
@@ -153,6 +153,10 @@ spec:
description: ineligible_status describes if this owner is eligible
or not and if not, describes how they're lacking eligibility.
x-kubernetes-int-or-string: true
membership_kind:
description: membership_kind describes the type of membership,
either `MEMBERSHIP_KIND_USER` or `MEMBERSHIP_KIND_LIST`.
x-kubernetes-int-or-string: true
name:
description: name is the username of the owner.
type: string
@@ -194,16 +198,8 @@ spec:
description: Conditions represent the latest available observations
of an object's state
items:
description: "Condition contains details for one aspect of the current
state of this API Resource.\n---\nThis struct is intended for
direct use as an array at the field path .status.conditions. For
example,\n\n\n\ttype FooStatus struct{\n\t // Represents the
observations of a foo's current state.\n\t // Known .status.conditions.type
are: \"Available\", \"Progressing\", and \"Degraded\"\n\t //
+patchMergeKey=type\n\t // +patchStrategy=merge\n\t // +listType=map\n\t
\ // +listMapKey=type\n\t Conditions []metav1.Condition `json:\"conditions,omitempty\"
patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"`\n\n\n\t
\ // other fields\n\t}"
description: Condition contains details for one aspect of the current
state of this API Resource.
properties:
lastTransitionTime:
description: |-
@@ -244,12 +240,7 @@ spec:
- Unknown
type: string
type:
description: |-
type of condition in CamelCase or in foo.example.com/CamelCase.
---
Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
useful (see .node.status.conditions), the ability to deconflict is important.
The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
description: type of condition in CamelCase or in foo.example.com/CamelCase.
maxLength: 316
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
type: string
@@ -107,16 +107,8 @@ spec:
description: Conditions represent the latest available observations
of an object's state
items:
description: "Condition contains details for one aspect of the current
state of this API Resource.\n---\nThis struct is intended for
direct use as an array at the field path .status.conditions. For
example,\n\n\n\ttype FooStatus struct{\n\t // Represents the
observations of a foo's current state.\n\t // Known .status.conditions.type
are: \"Available\", \"Progressing\", and \"Degraded\"\n\t //
+patchMergeKey=type\n\t // +patchStrategy=merge\n\t // +listType=map\n\t
\ // +listMapKey=type\n\t Conditions []metav1.Condition `json:\"conditions,omitempty\"
patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"`\n\n\n\t
\ // other fields\n\t}"
description: Condition contains details for one aspect of the current
state of this API Resource.
properties:
lastTransitionTime:
description: |-
@@ -157,12 +149,7 @@ spec:
- Unknown
type: string
type:
description: |-
type of condition in CamelCase or in foo.example.com/CamelCase.
---
Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
useful (see .node.status.conditions), the ability to deconflict is important.
The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
description: type of condition in CamelCase or in foo.example.com/CamelCase.
maxLength: 316
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
type: string
@@ -63,16 +63,8 @@ spec:
description: Conditions represent the latest available observations
of an object's state
items:
description: "Condition contains details for one aspect of the current
state of this API Resource.\n---\nThis struct is intended for
direct use as an array at the field path .status.conditions. For
example,\n\n\n\ttype FooStatus struct{\n\t // Represents the
observations of a foo's current state.\n\t // Known .status.conditions.type
are: \"Available\", \"Progressing\", and \"Degraded\"\n\t //
+patchMergeKey=type\n\t // +patchStrategy=merge\n\t // +listType=map\n\t
\ // +listMapKey=type\n\t Conditions []metav1.Condition `json:\"conditions,omitempty\"
patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"`\n\n\n\t
\ // other fields\n\t}"
description: Condition contains details for one aspect of the current
state of this API Resource.
properties:
lastTransitionTime:
description: |-
@@ -113,12 +105,7 @@ spec:
- Unknown
type: string
type:
description: |-
type of condition in CamelCase or in foo.example.com/CamelCase.
---
Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
useful (see .node.status.conditions), the ability to deconflict is important.
The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
description: type of condition in CamelCase or in foo.example.com/CamelCase.
maxLength: 316
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
type: string
@@ -116,6 +116,42 @@ spec:
time period, they will be forced to re-authenticate.
format: duration
type: string
mfa:
description: MFASettings contains settings to enable SSO MFA checks
through this auth connector.
nullable: true
properties:
acr_values:
description: AcrValues are Authentication Context Class Reference
values. The meaning of the ACR value is context-specific and
varies for identity providers. Some identity providers support
MFA specific contexts, such Okta with its "phr" (phishing-resistant)
ACR.
type: string
client_id:
description: ClientID is the OIDC OAuth app client ID.
type: string
client_secret:
description: ClientSecret is the OIDC OAuth app client secret.
type: string
enabled:
description: Enabled specified whether this OIDC connector supports
MFA checks. Defaults to false.
type: boolean
max_age:
description: MaxAge is the amount of time in nanoseconds that
an IdP session is valid for. Defaults to 0 to always force re-authentication
for MFA checks. This should only be set to a non-zero value
if the IdP is setup to perform MFA checks on top of active user
sessions.
format: duration
type: string
prompt:
description: Prompt is an optional OIDC prompt. An empty string
omits prompt. If not specified, it defaults to select_account
for backwards compatibility.
type: string
type: object
prompt:
description: Prompt is an optional OIDC prompt. An empty string omits
prompt. If not specified, it defaults to select_account for backwards
@@ -152,16 +188,8 @@ spec:
description: Conditions represent the latest available observations
of an object's state
items:
description: "Condition contains details for one aspect of the current
state of this API Resource.\n---\nThis struct is intended for
direct use as an array at the field path .status.conditions. For
example,\n\n\n\ttype FooStatus struct{\n\t // Represents the
observations of a foo's current state.\n\t // Known .status.conditions.type
are: \"Available\", \"Progressing\", and \"Degraded\"\n\t //
+patchMergeKey=type\n\t // +patchStrategy=merge\n\t // +listType=map\n\t
\ // +listMapKey=type\n\t Conditions []metav1.Condition `json:\"conditions,omitempty\"
patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"`\n\n\n\t
\ // other fields\n\t}"
description: Condition contains details for one aspect of the current
state of this API Resource.
properties:
lastTransitionTime:
description: |-
@@ -202,12 +230,7 @@ spec:
- Unknown
type: string
type:
description: |-
type of condition in CamelCase or in foo.example.com/CamelCase.
---
Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
useful (see .node.status.conditions), the ability to deconflict is important.
The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
description: type of condition in CamelCase or in foo.example.com/CamelCase.
maxLength: 316
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
type: string
@@ -101,16 +101,8 @@ spec:
description: Conditions represent the latest available observations
of an object's state
items:
description: "Condition contains details for one aspect of the current
state of this API Resource.\n---\nThis struct is intended for
direct use as an array at the field path .status.conditions. For
example,\n\n\n\ttype FooStatus struct{\n\t // Represents the
observations of a foo's current state.\n\t // Known .status.conditions.type
are: \"Available\", \"Progressing\", and \"Degraded\"\n\t //
+patchMergeKey=type\n\t // +patchStrategy=merge\n\t // +listType=map\n\t
\ // +listMapKey=type\n\t Conditions []metav1.Condition `json:\"conditions,omitempty\"
patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"`\n\n\n\t
\ // other fields\n\t}"
description: Condition contains details for one aspect of the current
state of this API Resource.
properties:
lastTransitionTime:
description: |-
@@ -151,12 +143,7 @@ spec:
- Unknown
type: string
type:
description: |-
type of condition in CamelCase or in foo.example.com/CamelCase.
---
Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
useful (see .node.status.conditions), the ability to deconflict is important.
The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
description: type of condition in CamelCase or in foo.example.com/CamelCase.
maxLength: 316
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
type: string
@@ -88,6 +88,20 @@ spec:
type: string
type: object
type: object
github:
description: GitHub contains info about GitHub proxies where each
server represents a GitHub organization.
nullable: true
properties:
integration:
description: Integration is the integration that is associated
with this Server.
type: string
organization:
description: Organization specifies the name of the organization
for the GitHub integration.
type: string
type: object
hostname:
description: Hostname is server hostname
type: string
@@ -178,16 +192,8 @@ spec:
description: Conditions represent the latest available observations
of an object's state
items:
description: "Condition contains details for one aspect of the current
state of this API Resource.\n---\nThis struct is intended for
direct use as an array at the field path .status.conditions. For
example,\n\n\n\ttype FooStatus struct{\n\t // Represents the
observations of a foo's current state.\n\t // Known .status.conditions.type
are: \"Available\", \"Progressing\", and \"Degraded\"\n\t //
+patchMergeKey=type\n\t // +patchStrategy=merge\n\t // +listType=map\n\t
\ // +listMapKey=type\n\t Conditions []metav1.Condition `json:\"conditions,omitempty\"
patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"`\n\n\n\t
\ // other fields\n\t}"
description: Condition contains details for one aspect of the current
state of this API Resource.
properties:
lastTransitionTime:
description: |-
@@ -228,12 +234,7 @@ spec:
- Unknown
type: string
type:
description: |-
type of condition in CamelCase or in foo.example.com/CamelCase.
---
Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
useful (see .node.status.conditions), the ability to deconflict is important.
The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
description: type of condition in CamelCase or in foo.example.com/CamelCase.
maxLength: 316
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
type: string
@@ -87,6 +87,20 @@ spec:
type: string
type: object
type: object
github:
description: GitHub contains info about GitHub proxies where each
server represents a GitHub organization.
nullable: true
properties:
integration:
description: Integration is the integration that is associated
with this Server.
type: string
organization:
description: Organization specifies the name of the organization
for the GitHub integration.
type: string
type: object
hostname:
description: Hostname is server hostname
type: string
@@ -177,16 +191,8 @@ spec:
description: Conditions represent the latest available observations
of an object's state
items:
description: "Condition contains details for one aspect of the current
state of this API Resource.\n---\nThis struct is intended for
direct use as an array at the field path .status.conditions. For
example,\n\n\n\ttype FooStatus struct{\n\t // Represents the
observations of a foo's current state.\n\t // Known .status.conditions.type
are: \"Available\", \"Progressing\", and \"Degraded\"\n\t //
+patchMergeKey=type\n\t // +patchStrategy=merge\n\t // +listType=map\n\t
\ // +listMapKey=type\n\t Conditions []metav1.Condition `json:\"conditions,omitempty\"
patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"`\n\n\n\t
\ // other fields\n\t}"
description: Condition contains details for one aspect of the current
state of this API Resource.
properties:
lastTransitionTime:
description: |-
@@ -227,12 +233,7 @@ spec:
- Unknown
type: string
type:
description: |-
type of condition in CamelCase or in foo.example.com/CamelCase.
---
Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
useful (see .node.status.conditions), the ability to deconflict is important.
The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
description: type of condition in CamelCase or in foo.example.com/CamelCase.
maxLength: 316
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
type: string
@@ -102,6 +102,40 @@ spec:
nullable: true
type: array
type: object
bitbucket:
description: Bitbucket allows the configuration of options specific
to the "bitbucket" join method.
nullable: true
properties:
allow:
description: Allow is a list of Rules, nodes using this token
must match one allow rule to use this token.
items:
properties:
branch_name:
type: string
deployment_environment_uuid:
type: string
repository_uuid:
type: string
workspace_uuid:
type: string
type: object
nullable: true
type: array
audience:
description: Audience is a 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.
type: string
identity_provider_url:
description: IdentityProviderURL is a Bitbucket-specified issuer
URL for 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.
type: string
type: object
bot_name:
description: BotName is the name of the bot this token grants access
to, if any
@@ -204,6 +238,12 @@ spec:
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.
type: string
static_jwks:
description: StaticJWKS 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.
type: string
type: object
gitlab:
description: GitLab allows the configuration of options specific to
@@ -425,16 +465,8 @@ spec:
description: Conditions represent the latest available observations
of an object's state
items:
description: "Condition contains details for one aspect of the current
state of this API Resource.\n---\nThis struct is intended for
direct use as an array at the field path .status.conditions. For
example,\n\n\n\ttype FooStatus struct{\n\t // Represents the
observations of a foo's current state.\n\t // Known .status.conditions.type
are: \"Available\", \"Progressing\", and \"Degraded\"\n\t //
+patchMergeKey=type\n\t // +patchStrategy=merge\n\t // +listType=map\n\t
\ // +listMapKey=type\n\t Conditions []metav1.Condition `json:\"conditions,omitempty\"
patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"`\n\n\n\t
\ // other fields\n\t}"
description: Condition contains details for one aspect of the current
state of this API Resource.
properties:
lastTransitionTime:
description: |-
@@ -475,12 +507,7 @@ spec:
- Unknown
type: string
type:
description: |-
type of condition in CamelCase or in foo.example.com/CamelCase.
---
Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
useful (see .node.status.conditions), the ability to deconflict is important.
The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
description: type of condition in CamelCase or in foo.example.com/CamelCase.
maxLength: 316
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
type: string
@@ -35,6 +35,17 @@ spec:
allow:
description: Allow is the set of conditions evaluated to grant access.
properties:
account_assignments:
description: AccountAssignments holds the list of account assignments
affected by this condition.
items:
properties:
account:
type: string
permission_set:
type: string
type: object
type: array
app_labels:
additionalProperties:
x-kubernetes-preserve-unknown-fields: true
@@ -146,6 +157,18 @@ spec:
type: string
nullable: true
type: array
github_permissions:
description: GitHubPermissions defines GitHub integration related
permissions.
items:
properties:
orgs:
items:
type: string
nullable: true
type: array
type: object
type: array
group_labels:
additionalProperties:
x-kubernetes-preserve-unknown-fields: true
@@ -249,7 +272,6 @@ spec:
properties:
kind:
description: Kind specifies the Kubernetes Resource type.
At the moment only "pod" is supported.
type: string
name:
description: Name is the resource name. It supports wildcards.
@@ -326,12 +348,41 @@ spec:
type: string
type: object
type: array
kubernetes_resources:
description: 'kubernetes_resources can optionally enforce
a requester to request only certain kinds of kube resources.
Eg: Users can make request to either a resource kind "kube_cluster"
or any of its subresources like "namespaces". This field
can be defined such that it prevents a user from requesting
"kube_cluster" and enforce requesting any of its subresources.'
items:
properties:
kind:
description: kind specifies the Kubernetes Resource
type.
type: string
type: object
type: array
max_duration:
description: MaxDuration is the amount of time the access
will be granted for. If this is zero, the default duration
is used.
format: duration
type: string
reason:
description: Reason defines settings for the reason for the
access provided by the user.
nullable: true
properties:
mode:
description: Mode can be either "required" or "optional".
Empty string is treated as "optional". If a role has
the request reason mode set to "required", then reason
is required for all Access Requests requesting roles
or resources allowed by this role. It applies only to
users who have this role assigned.
type: string
type: object
roles:
description: Roles is the name of roles which will match the
request rule.
@@ -556,11 +607,33 @@ spec:
type: string
nullable: true
type: array
workload_identity_labels:
additionalProperties:
x-kubernetes-preserve-unknown-fields: true
description: WorkloadIdentityLabels controls whether or not specific
WorkloadIdentity resources can be invoked. Further authorization
controls exist on the WorkloadIdentity resource itself.
type: object
workload_identity_labels_expression:
description: WorkloadIdentityLabelsExpression is a predicate expression
used to allow/deny access to issuing a WorkloadIdentity.
type: string
type: object
deny:
description: Deny is the set of conditions evaluated to deny access.
Deny takes priority over allow.
properties:
account_assignments:
description: AccountAssignments holds the list of account assignments
affected by this condition.
items:
properties:
account:
type: string
permission_set:
type: string
type: object
type: array
app_labels:
additionalProperties:
x-kubernetes-preserve-unknown-fields: true
@@ -672,6 +745,18 @@ spec:
type: string
nullable: true
type: array
github_permissions:
description: GitHubPermissions defines GitHub integration related
permissions.
items:
properties:
orgs:
items:
type: string
nullable: true
type: array
type: object
type: array
group_labels:
additionalProperties:
x-kubernetes-preserve-unknown-fields: true
@@ -775,7 +860,6 @@ spec:
properties:
kind:
description: Kind specifies the Kubernetes Resource type.
At the moment only "pod" is supported.
type: string
name:
description: Name is the resource name. It supports wildcards.
@@ -852,12 +936,41 @@ spec:
type: string
type: object
type: array
kubernetes_resources:
description: 'kubernetes_resources can optionally enforce
a requester to request only certain kinds of kube resources.
Eg: Users can make request to either a resource kind "kube_cluster"
or any of its subresources like "namespaces". This field
can be defined such that it prevents a user from requesting
"kube_cluster" and enforce requesting any of its subresources.'
items:
properties:
kind:
description: kind specifies the Kubernetes Resource
type.
type: string
type: object
type: array
max_duration:
description: MaxDuration is the amount of time the access
will be granted for. If this is zero, the default duration
is used.
format: duration
type: string
reason:
description: Reason defines settings for the reason for the
access provided by the user.
nullable: true
properties:
mode:
description: Mode can be either "required" or "optional".
Empty string is treated as "optional". If a role has
the request reason mode set to "required", then reason
is required for all Access Requests requesting roles
or resources allowed by this role. It applies only to
users who have this role assigned.
type: string
type: object
roles:
description: Roles is the name of roles which will match the
request rule.
@@ -1082,6 +1195,17 @@ spec:
type: string
nullable: true
type: array
workload_identity_labels:
additionalProperties:
x-kubernetes-preserve-unknown-fields: true
description: WorkloadIdentityLabels controls whether or not specific
WorkloadIdentity resources can be invoked. Further authorization
controls exist on the WorkloadIdentity resource itself.
type: object
workload_identity_labels_expression:
description: WorkloadIdentityLabelsExpression is a predicate expression
used to allow/deny access to issuing a WorkloadIdentity.
type: string
type: object
options:
description: Options is for OpenSSH options like agent forwarding.
@@ -1231,9 +1355,7 @@ spec:
generation and usage
type: boolean
port_forwarding:
description: PortForwarding defines if the certificate will have
"permit-port-forwarding" in the certificate. PortForwarding
is "yes" if not set, that's why this is a pointer
description: 'Deprecated: Use SSHPortForwarding instead'
type: boolean
record_session:
description: RecordDesktopSession indicates whether desktop access
@@ -1271,6 +1393,26 @@ spec:
via SCP or SFTP are allowed over an SSH session. It defaults
to true unless explicitly set to false.
type: boolean
ssh_port_forwarding:
description: SSHPortForwarding configures what types of SSH port
forwarding are allowed by a role.
nullable: true
properties:
local:
description: Allow local port forwarding.
nullable: true
properties:
enabled:
type: boolean
type: object
remote:
description: Allow remote port forwarding.
nullable: true
properties:
enabled:
type: boolean
type: object
type: object
type: object
type: object
status:
@@ -1280,16 +1422,8 @@ spec:
description: Conditions represent the latest available observations
of an object's state
items:
description: "Condition contains details for one aspect of the current
state of this API Resource.\n---\nThis struct is intended for
direct use as an array at the field path .status.conditions. For
example,\n\n\n\ttype FooStatus struct{\n\t // Represents the
observations of a foo's current state.\n\t // Known .status.conditions.type
are: \"Available\", \"Progressing\", and \"Degraded\"\n\t //
+patchMergeKey=type\n\t // +patchStrategy=merge\n\t // +listType=map\n\t
\ // +listMapKey=type\n\t Conditions []metav1.Condition `json:\"conditions,omitempty\"
patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"`\n\n\n\t
\ // other fields\n\t}"
description: Condition contains details for one aspect of the current
state of this API Resource.
properties:
lastTransitionTime:
description: |-
@@ -1330,12 +1464,7 @@ spec:
- Unknown
type: string
type:
description: |-
type of condition in CamelCase or in foo.example.com/CamelCase.
---
Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
useful (see .node.status.conditions), the ability to deconflict is important.
The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
description: type of condition in CamelCase or in foo.example.com/CamelCase.
maxLength: 316
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
type: string
@@ -1379,6 +1508,17 @@ spec:
allow:
description: Allow is the set of conditions evaluated to grant access.
properties:
account_assignments:
description: AccountAssignments holds the list of account assignments
affected by this condition.
items:
properties:
account:
type: string
permission_set:
type: string
type: object
type: array
app_labels:
additionalProperties:
x-kubernetes-preserve-unknown-fields: true
@@ -1490,6 +1630,18 @@ spec:
type: string
nullable: true
type: array
github_permissions:
description: GitHubPermissions defines GitHub integration related
permissions.
items:
properties:
orgs:
items:
type: string
nullable: true
type: array
type: object
type: array
group_labels:
additionalProperties:
x-kubernetes-preserve-unknown-fields: true
@@ -1593,7 +1745,6 @@ spec:
properties:
kind:
description: Kind specifies the Kubernetes Resource type.
At the moment only "pod" is supported.
type: string
name:
description: Name is the resource name. It supports wildcards.
@@ -1670,12 +1821,41 @@ spec:
type: string
type: object
type: array
kubernetes_resources:
description: 'kubernetes_resources can optionally enforce
a requester to request only certain kinds of kube resources.
Eg: Users can make request to either a resource kind "kube_cluster"
or any of its subresources like "namespaces". This field
can be defined such that it prevents a user from requesting
"kube_cluster" and enforce requesting any of its subresources.'
items:
properties:
kind:
description: kind specifies the Kubernetes Resource
type.
type: string
type: object
type: array
max_duration:
description: MaxDuration is the amount of time the access
will be granted for. If this is zero, the default duration
is used.
format: duration
type: string
reason:
description: Reason defines settings for the reason for the
access provided by the user.
nullable: true
properties:
mode:
description: Mode can be either "required" or "optional".
Empty string is treated as "optional". If a role has
the request reason mode set to "required", then reason
is required for all Access Requests requesting roles
or resources allowed by this role. It applies only to
users who have this role assigned.
type: string
type: object
roles:
description: Roles is the name of roles which will match the
request rule.
@@ -1900,11 +2080,33 @@ spec:
type: string
nullable: true
type: array
workload_identity_labels:
additionalProperties:
x-kubernetes-preserve-unknown-fields: true
description: WorkloadIdentityLabels controls whether or not specific
WorkloadIdentity resources can be invoked. Further authorization
controls exist on the WorkloadIdentity resource itself.
type: object
workload_identity_labels_expression:
description: WorkloadIdentityLabelsExpression is a predicate expression
used to allow/deny access to issuing a WorkloadIdentity.
type: string
type: object
deny:
description: Deny is the set of conditions evaluated to deny access.
Deny takes priority over allow.
properties:
account_assignments:
description: AccountAssignments holds the list of account assignments
affected by this condition.
items:
properties:
account:
type: string
permission_set:
type: string
type: object
type: array
app_labels:
additionalProperties:
x-kubernetes-preserve-unknown-fields: true
@@ -2016,6 +2218,18 @@ spec:
type: string
nullable: true
type: array
github_permissions:
description: GitHubPermissions defines GitHub integration related
permissions.
items:
properties:
orgs:
items:
type: string
nullable: true
type: array
type: object
type: array
group_labels:
additionalProperties:
x-kubernetes-preserve-unknown-fields: true
@@ -2119,7 +2333,6 @@ spec:
properties:
kind:
description: Kind specifies the Kubernetes Resource type.
At the moment only "pod" is supported.
type: string
name:
description: Name is the resource name. It supports wildcards.
@@ -2196,12 +2409,41 @@ spec:
type: string
type: object
type: array
kubernetes_resources:
description: 'kubernetes_resources can optionally enforce
a requester to request only certain kinds of kube resources.
Eg: Users can make request to either a resource kind "kube_cluster"
or any of its subresources like "namespaces". This field
can be defined such that it prevents a user from requesting
"kube_cluster" and enforce requesting any of its subresources.'
items:
properties:
kind:
description: kind specifies the Kubernetes Resource
type.
type: string
type: object
type: array
max_duration:
description: MaxDuration is the amount of time the access
will be granted for. If this is zero, the default duration
is used.
format: duration
type: string
reason:
description: Reason defines settings for the reason for the
access provided by the user.
nullable: true
properties:
mode:
description: Mode can be either "required" or "optional".
Empty string is treated as "optional". If a role has
the request reason mode set to "required", then reason
is required for all Access Requests requesting roles
or resources allowed by this role. It applies only to
users who have this role assigned.
type: string
type: object
roles:
description: Roles is the name of roles which will match the
request rule.
@@ -2426,6 +2668,17 @@ spec:
type: string
nullable: true
type: array
workload_identity_labels:
additionalProperties:
x-kubernetes-preserve-unknown-fields: true
description: WorkloadIdentityLabels controls whether or not specific
WorkloadIdentity resources can be invoked. Further authorization
controls exist on the WorkloadIdentity resource itself.
type: object
workload_identity_labels_expression:
description: WorkloadIdentityLabelsExpression is a predicate expression
used to allow/deny access to issuing a WorkloadIdentity.
type: string
type: object
options:
description: Options is for OpenSSH options like agent forwarding.
@@ -2575,9 +2828,7 @@ spec:
generation and usage
type: boolean
port_forwarding:
description: PortForwarding defines if the certificate will have
"permit-port-forwarding" in the certificate. PortForwarding
is "yes" if not set, that's why this is a pointer
description: 'Deprecated: Use SSHPortForwarding instead'
type: boolean
record_session:
description: RecordDesktopSession indicates whether desktop access
@@ -2615,6 +2866,26 @@ spec:
via SCP or SFTP are allowed over an SSH session. It defaults
to true unless explicitly set to false.
type: boolean
ssh_port_forwarding:
description: SSHPortForwarding configures what types of SSH port
forwarding are allowed by a role.
nullable: true
properties:
local:
description: Allow local port forwarding.
nullable: true
properties:
enabled:
type: boolean
type: object
remote:
description: Allow remote port forwarding.
nullable: true
properties:
enabled:
type: boolean
type: object
type: object
type: object
type: object
status:
@@ -2624,16 +2895,8 @@ spec:
description: Conditions represent the latest available observations
of an object's state
items:
description: "Condition contains details for one aspect of the current
state of this API Resource.\n---\nThis struct is intended for
direct use as an array at the field path .status.conditions. For
example,\n\n\n\ttype FooStatus struct{\n\t // Represents the
observations of a foo's current state.\n\t // Known .status.conditions.type
are: \"Available\", \"Progressing\", and \"Degraded\"\n\t //
+patchMergeKey=type\n\t // +patchStrategy=merge\n\t // +listType=map\n\t
\ // +listMapKey=type\n\t Conditions []metav1.Condition `json:\"conditions,omitempty\"
patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"`\n\n\n\t
\ // other fields\n\t}"
description: Condition contains details for one aspect of the current
state of this API Resource.
properties:
lastTransitionTime:
description: |-
@@ -2674,12 +2937,7 @@ spec:
- Unknown
type: string
type:
description: |-
type of condition in CamelCase or in foo.example.com/CamelCase.
---
Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
useful (see .node.status.conditions), the ability to deconflict is important.
The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
description: type of condition in CamelCase or in foo.example.com/CamelCase.
maxLength: 316
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
type: string
@@ -38,6 +38,17 @@ spec:
allow:
description: Allow is the set of conditions evaluated to grant access.
properties:
account_assignments:
description: AccountAssignments holds the list of account assignments
affected by this condition.
items:
properties:
account:
type: string
permission_set:
type: string
type: object
type: array
app_labels:
additionalProperties:
x-kubernetes-preserve-unknown-fields: true
@@ -149,6 +160,18 @@ spec:
type: string
nullable: true
type: array
github_permissions:
description: GitHubPermissions defines GitHub integration related
permissions.
items:
properties:
orgs:
items:
type: string
nullable: true
type: array
type: object
type: array
group_labels:
additionalProperties:
x-kubernetes-preserve-unknown-fields: true
@@ -252,7 +275,6 @@ spec:
properties:
kind:
description: Kind specifies the Kubernetes Resource type.
At the moment only "pod" is supported.
type: string
name:
description: Name is the resource name. It supports wildcards.
@@ -329,12 +351,41 @@ spec:
type: string
type: object
type: array
kubernetes_resources:
description: 'kubernetes_resources can optionally enforce
a requester to request only certain kinds of kube resources.
Eg: Users can make request to either a resource kind "kube_cluster"
or any of its subresources like "namespaces". This field
can be defined such that it prevents a user from requesting
"kube_cluster" and enforce requesting any of its subresources.'
items:
properties:
kind:
description: kind specifies the Kubernetes Resource
type.
type: string
type: object
type: array
max_duration:
description: MaxDuration is the amount of time the access
will be granted for. If this is zero, the default duration
is used.
format: duration
type: string
reason:
description: Reason defines settings for the reason for the
access provided by the user.
nullable: true
properties:
mode:
description: Mode can be either "required" or "optional".
Empty string is treated as "optional". If a role has
the request reason mode set to "required", then reason
is required for all Access Requests requesting roles
or resources allowed by this role. It applies only to
users who have this role assigned.
type: string
type: object
roles:
description: Roles is the name of roles which will match the
request rule.
@@ -559,11 +610,33 @@ spec:
type: string
nullable: true
type: array
workload_identity_labels:
additionalProperties:
x-kubernetes-preserve-unknown-fields: true
description: WorkloadIdentityLabels controls whether or not specific
WorkloadIdentity resources can be invoked. Further authorization
controls exist on the WorkloadIdentity resource itself.
type: object
workload_identity_labels_expression:
description: WorkloadIdentityLabelsExpression is a predicate expression
used to allow/deny access to issuing a WorkloadIdentity.
type: string
type: object
deny:
description: Deny is the set of conditions evaluated to deny access.
Deny takes priority over allow.
properties:
account_assignments:
description: AccountAssignments holds the list of account assignments
affected by this condition.
items:
properties:
account:
type: string
permission_set:
type: string
type: object
type: array
app_labels:
additionalProperties:
x-kubernetes-preserve-unknown-fields: true
@@ -675,6 +748,18 @@ spec:
type: string
nullable: true
type: array
github_permissions:
description: GitHubPermissions defines GitHub integration related
permissions.
items:
properties:
orgs:
items:
type: string
nullable: true
type: array
type: object
type: array
group_labels:
additionalProperties:
x-kubernetes-preserve-unknown-fields: true
@@ -778,7 +863,6 @@ spec:
properties:
kind:
description: Kind specifies the Kubernetes Resource type.
At the moment only "pod" is supported.
type: string
name:
description: Name is the resource name. It supports wildcards.
@@ -855,12 +939,41 @@ spec:
type: string
type: object
type: array
kubernetes_resources:
description: 'kubernetes_resources can optionally enforce
a requester to request only certain kinds of kube resources.
Eg: Users can make request to either a resource kind "kube_cluster"
or any of its subresources like "namespaces". This field
can be defined such that it prevents a user from requesting
"kube_cluster" and enforce requesting any of its subresources.'
items:
properties:
kind:
description: kind specifies the Kubernetes Resource
type.
type: string
type: object
type: array
max_duration:
description: MaxDuration is the amount of time the access
will be granted for. If this is zero, the default duration
is used.
format: duration
type: string
reason:
description: Reason defines settings for the reason for the
access provided by the user.
nullable: true
properties:
mode:
description: Mode can be either "required" or "optional".
Empty string is treated as "optional". If a role has
the request reason mode set to "required", then reason
is required for all Access Requests requesting roles
or resources allowed by this role. It applies only to
users who have this role assigned.
type: string
type: object
roles:
description: Roles is the name of roles which will match the
request rule.
@@ -1085,6 +1198,17 @@ spec:
type: string
nullable: true
type: array
workload_identity_labels:
additionalProperties:
x-kubernetes-preserve-unknown-fields: true
description: WorkloadIdentityLabels controls whether or not specific
WorkloadIdentity resources can be invoked. Further authorization
controls exist on the WorkloadIdentity resource itself.
type: object
workload_identity_labels_expression:
description: WorkloadIdentityLabelsExpression is a predicate expression
used to allow/deny access to issuing a WorkloadIdentity.
type: string
type: object
options:
description: Options is for OpenSSH options like agent forwarding.
@@ -1234,9 +1358,7 @@ spec:
generation and usage
type: boolean
port_forwarding:
description: PortForwarding defines if the certificate will have
"permit-port-forwarding" in the certificate. PortForwarding
is "yes" if not set, that's why this is a pointer
description: 'Deprecated: Use SSHPortForwarding instead'
type: boolean
record_session:
description: RecordDesktopSession indicates whether desktop access
@@ -1274,6 +1396,26 @@ spec:
via SCP or SFTP are allowed over an SSH session. It defaults
to true unless explicitly set to false.
type: boolean
ssh_port_forwarding:
description: SSHPortForwarding configures what types of SSH port
forwarding are allowed by a role.
nullable: true
properties:
local:
description: Allow local port forwarding.
nullable: true
properties:
enabled:
type: boolean
type: object
remote:
description: Allow remote port forwarding.
nullable: true
properties:
enabled:
type: boolean
type: object
type: object
type: object
type: object
status:
@@ -1283,16 +1425,8 @@ spec:
description: Conditions represent the latest available observations
of an object's state
items:
description: "Condition contains details for one aspect of the current
state of this API Resource.\n---\nThis struct is intended for
direct use as an array at the field path .status.conditions. For
example,\n\n\n\ttype FooStatus struct{\n\t // Represents the
observations of a foo's current state.\n\t // Known .status.conditions.type
are: \"Available\", \"Progressing\", and \"Degraded\"\n\t //
+patchMergeKey=type\n\t // +patchStrategy=merge\n\t // +listType=map\n\t
\ // +listMapKey=type\n\t Conditions []metav1.Condition `json:\"conditions,omitempty\"
patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"`\n\n\n\t
\ // other fields\n\t}"
description: Condition contains details for one aspect of the current
state of this API Resource.
properties:
lastTransitionTime:
description: |-
@@ -1333,12 +1467,7 @@ spec:
- Unknown
type: string
type:
description: |-
type of condition in CamelCase or in foo.example.com/CamelCase.
---
Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
useful (see .node.status.conditions), the ability to deconflict is important.
The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
description: type of condition in CamelCase or in foo.example.com/CamelCase.
maxLength: 316
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
type: string
@@ -38,6 +38,17 @@ spec:
allow:
description: Allow is the set of conditions evaluated to grant access.
properties:
account_assignments:
description: AccountAssignments holds the list of account assignments
affected by this condition.
items:
properties:
account:
type: string
permission_set:
type: string
type: object
type: array
app_labels:
additionalProperties:
x-kubernetes-preserve-unknown-fields: true
@@ -149,6 +160,18 @@ spec:
type: string
nullable: true
type: array
github_permissions:
description: GitHubPermissions defines GitHub integration related
permissions.
items:
properties:
orgs:
items:
type: string
nullable: true
type: array
type: object
type: array
group_labels:
additionalProperties:
x-kubernetes-preserve-unknown-fields: true
@@ -252,7 +275,6 @@ spec:
properties:
kind:
description: Kind specifies the Kubernetes Resource type.
At the moment only "pod" is supported.
type: string
name:
description: Name is the resource name. It supports wildcards.
@@ -329,12 +351,41 @@ spec:
type: string
type: object
type: array
kubernetes_resources:
description: 'kubernetes_resources can optionally enforce
a requester to request only certain kinds of kube resources.
Eg: Users can make request to either a resource kind "kube_cluster"
or any of its subresources like "namespaces". This field
can be defined such that it prevents a user from requesting
"kube_cluster" and enforce requesting any of its subresources.'
items:
properties:
kind:
description: kind specifies the Kubernetes Resource
type.
type: string
type: object
type: array
max_duration:
description: MaxDuration is the amount of time the access
will be granted for. If this is zero, the default duration
is used.
format: duration
type: string
reason:
description: Reason defines settings for the reason for the
access provided by the user.
nullable: true
properties:
mode:
description: Mode can be either "required" or "optional".
Empty string is treated as "optional". If a role has
the request reason mode set to "required", then reason
is required for all Access Requests requesting roles
or resources allowed by this role. It applies only to
users who have this role assigned.
type: string
type: object
roles:
description: Roles is the name of roles which will match the
request rule.
@@ -559,11 +610,33 @@ spec:
type: string
nullable: true
type: array
workload_identity_labels:
additionalProperties:
x-kubernetes-preserve-unknown-fields: true
description: WorkloadIdentityLabels controls whether or not specific
WorkloadIdentity resources can be invoked. Further authorization
controls exist on the WorkloadIdentity resource itself.
type: object
workload_identity_labels_expression:
description: WorkloadIdentityLabelsExpression is a predicate expression
used to allow/deny access to issuing a WorkloadIdentity.
type: string
type: object
deny:
description: Deny is the set of conditions evaluated to deny access.
Deny takes priority over allow.
properties:
account_assignments:
description: AccountAssignments holds the list of account assignments
affected by this condition.
items:
properties:
account:
type: string
permission_set:
type: string
type: object
type: array
app_labels:
additionalProperties:
x-kubernetes-preserve-unknown-fields: true
@@ -675,6 +748,18 @@ spec:
type: string
nullable: true
type: array
github_permissions:
description: GitHubPermissions defines GitHub integration related
permissions.
items:
properties:
orgs:
items:
type: string
nullable: true
type: array
type: object
type: array
group_labels:
additionalProperties:
x-kubernetes-preserve-unknown-fields: true
@@ -778,7 +863,6 @@ spec:
properties:
kind:
description: Kind specifies the Kubernetes Resource type.
At the moment only "pod" is supported.
type: string
name:
description: Name is the resource name. It supports wildcards.
@@ -855,12 +939,41 @@ spec:
type: string
type: object
type: array
kubernetes_resources:
description: 'kubernetes_resources can optionally enforce
a requester to request only certain kinds of kube resources.
Eg: Users can make request to either a resource kind "kube_cluster"
or any of its subresources like "namespaces". This field
can be defined such that it prevents a user from requesting
"kube_cluster" and enforce requesting any of its subresources.'
items:
properties:
kind:
description: kind specifies the Kubernetes Resource
type.
type: string
type: object
type: array
max_duration:
description: MaxDuration is the amount of time the access
will be granted for. If this is zero, the default duration
is used.
format: duration
type: string
reason:
description: Reason defines settings for the reason for the
access provided by the user.
nullable: true
properties:
mode:
description: Mode can be either "required" or "optional".
Empty string is treated as "optional". If a role has
the request reason mode set to "required", then reason
is required for all Access Requests requesting roles
or resources allowed by this role. It applies only to
users who have this role assigned.
type: string
type: object
roles:
description: Roles is the name of roles which will match the
request rule.
@@ -1085,6 +1198,17 @@ spec:
type: string
nullable: true
type: array
workload_identity_labels:
additionalProperties:
x-kubernetes-preserve-unknown-fields: true
description: WorkloadIdentityLabels controls whether or not specific
WorkloadIdentity resources can be invoked. Further authorization
controls exist on the WorkloadIdentity resource itself.
type: object
workload_identity_labels_expression:
description: WorkloadIdentityLabelsExpression is a predicate expression
used to allow/deny access to issuing a WorkloadIdentity.
type: string
type: object
options:
description: Options is for OpenSSH options like agent forwarding.
@@ -1234,9 +1358,7 @@ spec:
generation and usage
type: boolean
port_forwarding:
description: PortForwarding defines if the certificate will have
"permit-port-forwarding" in the certificate. PortForwarding
is "yes" if not set, that's why this is a pointer
description: 'Deprecated: Use SSHPortForwarding instead'
type: boolean
record_session:
description: RecordDesktopSession indicates whether desktop access
@@ -1274,6 +1396,26 @@ spec:
via SCP or SFTP are allowed over an SSH session. It defaults
to true unless explicitly set to false.
type: boolean
ssh_port_forwarding:
description: SSHPortForwarding configures what types of SSH port
forwarding are allowed by a role.
nullable: true
properties:
local:
description: Allow local port forwarding.
nullable: true
properties:
enabled:
type: boolean
type: object
remote:
description: Allow remote port forwarding.
nullable: true
properties:
enabled:
type: boolean
type: object
type: object
type: object
type: object
status:
@@ -1283,16 +1425,8 @@ spec:
description: Conditions represent the latest available observations
of an object's state
items:
description: "Condition contains details for one aspect of the current
state of this API Resource.\n---\nThis struct is intended for
direct use as an array at the field path .status.conditions. For
example,\n\n\n\ttype FooStatus struct{\n\t // Represents the
observations of a foo's current state.\n\t // Known .status.conditions.type
are: \"Available\", \"Progressing\", and \"Degraded\"\n\t //
+patchMergeKey=type\n\t // +patchStrategy=merge\n\t // +listType=map\n\t
\ // +listMapKey=type\n\t Conditions []metav1.Condition `json:\"conditions,omitempty\"
patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"`\n\n\n\t
\ // other fields\n\t}"
description: Condition contains details for one aspect of the current
state of this API Resource.
properties:
lastTransitionTime:
description: |-
@@ -1333,12 +1467,7 @@ spec:
- Unknown
type: string
type:
description: |-
type of condition in CamelCase or in foo.example.com/CamelCase.
---
Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
useful (see .node.status.conditions), the ability to deconflict is important.
The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
description: type of condition in CamelCase or in foo.example.com/CamelCase.
maxLength: 316
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
type: string
@@ -115,9 +115,52 @@ spec:
description: EntityDescriptorURL is a URL that supplies a configuration
XML.
type: string
force_authn:
description: ForceAuthn specified whether re-authentication should
be forced on login. UNSPECIFIED is treated as NO.
x-kubernetes-int-or-string: true
issuer:
description: Issuer is the identity provider issuer.
type: string
mfa:
description: MFASettings contains settings to enable SSO MFA checks
through this auth connector.
nullable: true
properties:
cert:
description: Cert is the identity provider certificate PEM. IDP
signs `<Response>` responses using this certificate.
type: string
enabled:
description: Enabled specified whether this SAML connector supports
MFA checks. Defaults to false.
type: boolean
entity_descriptor:
description: EntityDescriptor 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.
type: string
entity_descriptor_url:
description: EntityDescriptorUrl is a URL that supplies a configuration
XML.
type: string
force_authn:
description: ForceAuthn 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.
x-kubernetes-int-or-string: true
issuer:
description: Issuer is the identity provider issuer. Usually set
from EntityDescriptor.
type: string
sso:
description: SSO is the URL of the identity provider's SSO service.
Usually set from EntityDescriptor.
type: string
type: object
provider:
description: Provider is the external identity provider.
type: string
@@ -151,16 +194,8 @@ spec:
description: Conditions represent the latest available observations
of an object's state
items:
description: "Condition contains details for one aspect of the current
state of this API Resource.\n---\nThis struct is intended for
direct use as an array at the field path .status.conditions. For
example,\n\n\n\ttype FooStatus struct{\n\t // Represents the
observations of a foo's current state.\n\t // Known .status.conditions.type
are: \"Available\", \"Progressing\", and \"Degraded\"\n\t //
+patchMergeKey=type\n\t // +patchStrategy=merge\n\t // +listType=map\n\t
\ // +listMapKey=type\n\t Conditions []metav1.Condition `json:\"conditions,omitempty\"
patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"`\n\n\n\t
\ // other fields\n\t}"
description: Condition contains details for one aspect of the current
state of this API Resource.
properties:
lastTransitionTime:
description: |-
@@ -201,12 +236,7 @@ spec:
- Unknown
type: string
type:
description: |-
type of condition in CamelCase or in foo.example.com/CamelCase.
---
Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
useful (see .node.status.conditions), the ability to deconflict is important.
The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
description: type of condition in CamelCase or in foo.example.com/CamelCase.
maxLength: 316
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
type: string
@@ -0,0 +1,149 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
creationTimestamp: null
name: teleporttrustedclustersv2.resources.teleport.dev
spec:
group: resources.teleport.dev
names:
kind: TeleportTrustedClusterV2
listKind: TeleportTrustedClusterV2List
plural: teleporttrustedclustersv2
shortNames:
- trustedclusterv2
- trustedclustersv2
singular: teleporttrustedclusterv2
scope: Namespaced
versions:
- name: v1
schema:
openAPIV3Schema:
description: TrustedClusterV2 is the Schema for the trustedclustersv2 API
properties:
apiVersion:
description: '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'
type: string
kind:
description: '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'
type: string
metadata:
type: object
spec:
description: TrustedCluster resource definition v2 from Teleport
properties:
enabled:
description: Enabled is a bool that indicates if the TrustedCluster
is enabled or disabled. Setting Enabled to false has a side effect
of deleting the user and host certificate authority (CA).
type: boolean
role_map:
description: RoleMap specifies role mappings to remote roles.
items:
properties:
local:
description: Local specifies local roles to map to
items:
type: string
nullable: true
type: array
remote:
description: Remote specifies remote role name to map from
type: string
type: object
type: array
token:
description: Token is the authorization token provided by another
cluster needed by this cluster to join. This field supports secret
lookup. See the operator documentation for more details.
type: string
tunnel_addr:
description: ReverseTunnelAddress is the address of the SSH proxy
server of the cluster to join. If not set, it is derived from `<metadata.name>:<default
reverse tunnel port>`.
type: string
web_proxy_addr:
description: ProxyAddress is the address of the web proxy server of
the cluster to join. If not set, it is derived from `<metadata.name>:<default
web proxy server port>`.
type: string
type: object
status:
description: Status defines the observed state of the Teleport resource
properties:
conditions:
description: Conditions represent the latest available observations
of an object's state
items:
description: Condition contains details for one aspect of the current
state of this API Resource.
properties:
lastTransitionTime:
description: |-
lastTransitionTime is the last time the condition transitioned from one status to another.
This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
format: date-time
type: string
message:
description: |-
message is a human readable message indicating details about the transition.
This may be an empty string.
maxLength: 32768
type: string
observedGeneration:
description: |-
observedGeneration represents the .metadata.generation that the condition was set based upon.
For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
with respect to the current state of the instance.
format: int64
minimum: 0
type: integer
reason:
description: |-
reason contains a programmatic identifier indicating the reason for the condition's last transition.
Producers of specific condition types may define expected values and meanings for this field,
and whether the values are considered a guaranteed API.
The value should be a CamelCase string.
This field may not be empty.
maxLength: 1024
minLength: 1
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
type: string
status:
description: status of the condition, one of True, False, Unknown.
enum:
- "True"
- "False"
- Unknown
type: string
type:
description: type of condition in CamelCase or in foo.example.com/CamelCase.
maxLength: 316
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
type: string
required:
- lastTransitionTime
- message
- reason
- status
- type
type: object
type: array
teleportResourceID:
format: int64
type: integer
type: object
type: object
served: true
storage: true
subresources:
status: {}
status:
acceptedNames:
kind: ""
plural: ""
conditions: null
storedVersions: null
@@ -57,6 +57,10 @@ spec:
description: SAMLSingleLogoutURL is the SAML Single log-out
URL to initiate SAML SLO (single log-out), if applicable.
type: string
user_id:
description: UserID is the ID of the identity. Some connectors
like GitHub have an unique ID apart from the username.
type: string
username:
description: Username is username supplied by external identity
provider
@@ -76,6 +80,10 @@ spec:
description: SAMLSingleLogoutURL is the SAML Single log-out
URL to initiate SAML SLO (single log-out), if applicable.
type: string
user_id:
description: UserID is the ID of the identity. Some connectors
like GitHub have an unique ID apart from the username.
type: string
username:
description: Username is username supplied by external identity
provider
@@ -101,6 +109,10 @@ spec:
description: SAMLSingleLogoutURL is the SAML Single log-out
URL to initiate SAML SLO (single log-out), if applicable.
type: string
user_id:
description: UserID is the ID of the identity. Some connectors
like GitHub have an unique ID apart from the username.
type: string
username:
description: Username is username supplied by external identity
provider
@@ -137,16 +149,8 @@ spec:
description: Conditions represent the latest available observations
of an object's state
items:
description: "Condition contains details for one aspect of the current
state of this API Resource.\n---\nThis struct is intended for
direct use as an array at the field path .status.conditions. For
example,\n\n\n\ttype FooStatus struct{\n\t // Represents the
observations of a foo's current state.\n\t // Known .status.conditions.type
are: \"Available\", \"Progressing\", and \"Degraded\"\n\t //
+patchMergeKey=type\n\t // +patchStrategy=merge\n\t // +listType=map\n\t
\ // +listMapKey=type\n\t Conditions []metav1.Condition `json:\"conditions,omitempty\"
patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"`\n\n\n\t
\ // other fields\n\t}"
description: Condition contains details for one aspect of the current
state of this API Resource.
properties:
lastTransitionTime:
description: |-
@@ -187,12 +191,7 @@ spec:
- Unknown
type: string
type:
description: |-
type of condition in CamelCase or in foo.example.com/CamelCase.
---
Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
useful (see .node.status.conditions), the ability to deconflict is important.
The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
description: type of condition in CamelCase or in foo.example.com/CamelCase.
maxLength: 316
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
type: string
@@ -4,7 +4,11 @@ kind: Deployment
metadata:
name: {{ include "teleport-cluster.operator.fullname" . }}
namespace: {{ .Release.Namespace }}
labels: {{- include "teleport-cluster.operator.labels" . | nindent 4 }}
labels:
{{- include "teleport-cluster.operator.labels" . | nindent 4 }}
{{- if .Values.labels.deployment }}
{{- toYaml .Values.labels.deployment | nindent 4 }}
{{- end }}
{{- if .Values.annotations.deployment }}
annotations: {{- toYaml .Values.annotations.deployment | nindent 4 }}
{{- end }}
@@ -22,7 +26,11 @@ spec:
{{- if .Values.annotations.pod }}
annotations: {{- toYaml .Values.annotations.pod | nindent 8 }}
{{- end }}
labels: {{- include "teleport-cluster.operator.labels" . | nindent 8 }}
labels:
{{- include "teleport-cluster.operator.labels" . | nindent 8 }}
{{- if .Values.labels.pod }}
{{- toYaml .Values.labels.pod | nindent 8 }}
{{- end }}
spec:
{{- if .Values.nodeSelector }}
nodeSelector: {{- toYaml .Values.nodeSelector | nindent 8 }}
@@ -36,6 +36,8 @@ rules:
- teleportopensshserversv2/status
- teleportopenssheiceserversv2
- teleportopenssheiceserversv2/status
- teleporttrustedclustersv2
- teleporttrustedclustersv2/status
verbs:
- get
- list
@@ -65,5 +67,7 @@ rules:
- "secrets"
verbs:
- "get"
- "list"
- "watch"
{{- end -}}
{{- end -}}
@@ -59,6 +59,25 @@ tests:
path: metadata.annotations.kubernetes\.io/deployment-different
value: 3
- it: sets labels when specified
values:
- ../.lint/labels.yaml
asserts:
# Pod labels
- equal:
path: spec.template.metadata.labels.kubernetes\.io/pod
value: test-label
- equal:
path: spec.template.metadata.labels.kubernetes\.io/pod-different
value: 4
# Deployment labels
- equal:
path: metadata.labels.kubernetes\.io/deployment
value: test-label
- equal:
path: metadata.labels.kubernetes\.io/deployment-different
value: 3
- it: should mount tls.existingCASecretName and set environment when set in values
values:
- ../.lint/existing-tls-ca.yaml
@@ -49,4 +49,4 @@ tests:
content:
apiGroups: [""]
resources: ["secrets"]
verbs: ["get"]
verbs: ["get", "list", "watch"]
@@ -28,8 +28,8 @@ installCRDs: "dynamic"
teleportAddress: ""
# caPins(list[string]) -- is a list of Teleport CA fingerprints that is used by the operator to
# validate the identity of the Teleport Auth server. This is only used when joining
# an Auth server directly (on port `3025`) and is ignored when joining through a Proxy
# validate the identity of the Teleport Auth Service. This is only used when joining
# an Auth Service directly (on port `3025`) and is ignored when joining through a Proxy
# (port `443` or `3080`).
caPins: []
@@ -89,6 +89,15 @@ annotations:
# put on the `Deployment` resource created by the chart.
serviceAccount: {}
# annotations --
labels:
# labels.deployment(object) -- contains the Kubernetes labels
# put on the `Deployment` resource created by the chart.
deployment: {}
# labels.pod(object) -- contains the Kubernetes labels
# put on the `Pod` resources created by the chart.
pod: {}
# serviceAccount --
serviceAccount:
# serviceAccount.create(bool) -- controls if the chart should create the Kubernetes
+38
View File
@@ -6,10 +6,48 @@ if serviceAccount is not defined or serviceAccount.name is empty, use .Release.N
{{- coalesce .Values.serviceAccount.name .Release.Name -}}
{{- end -}}
{{/*
Create the name of the service account to use in the auth config check hook.
If the chart is creating service accounts, we know we can create new arbitrary service accounts.
We cannot reuse the same name as the deployment SA because the non-hook service account might
not exist yet. We tried being smart with hooks but ArgoCD doesn't differentiate between install
and upgrade, causing various issues on update and eventually forcing us to use a separate SA.
If the chart is not creating service accounts, for backward compatibility we don't want
to force new service account names to existing chart users. We know the SA should already exist,
so we can use the same SA for deployments and hooks.
*/}}
{{- define "teleport-cluster.auth.hookServiceAccountName" -}}
{{- include "teleport-cluster.auth.serviceAccountName" . -}}
{{- if .Values.serviceAccount.create -}}
-hook
{{- end -}}
{{- end -}}
{{- define "teleport-cluster.proxy.serviceAccountName" -}}
{{- coalesce .Values.serviceAccount.name .Release.Name -}}-proxy
{{- end -}}
{{/*
Create the name of the service account to use in the proxy config check hook.
If the chart is creating service accounts, we know we can create new arbitrary service accounts.
We cannot reuse the same name as the deployment SA because the non-hook service account might
not exist yet. We tried being smart with hooks but ArgoCD doesn't differentiate between install
and upgrade, causing various issues on update and eventually forcing us to use a separate SA.
If the chart is not creating service accounts, for backward compatibility we don't want
to force new service account names to existing chart users. We know the SA should already exist,
so we can use the same SA for deployments and hooks.
*/}}
{{- define "teleport-cluster.proxy.hookServiceAccountName" -}}
{{- include "teleport-cluster.proxy.serviceAccountName" . -}}
{{- if .Values.serviceAccount.create -}}
-hook
{{- end -}}
{{- end -}}
{{- define "teleport-cluster.version" -}}
{{- coalesce .Values.teleportVersionOverride .Chart.Version }}
{{- end -}}
@@ -131,6 +131,14 @@ data:
- read
- update
- delete
- resources:
- trusted_cluster
verbs:
- list
- create
- read
- update
- delete
deny: {}
version: v7
---
@@ -266,7 +266,7 @@ spec:
{{- if $auth.enterprise }}
- name: license
secret:
secretName: "license"
secretName: {{ $auth.licenseSecretName | quote }}
{{- end }}
{{- if and ($auth.gcp.credentialSecretName) (eq $auth.chartMode "gcp") }}
- name: gcp-credentials
@@ -17,6 +17,12 @@ metadata:
spec:
backoffLimit: 1
template:
metadata:
labels:
{{- include "teleport-cluster.auth.labels" . | nindent 8 }}
{{- if $auth.extraLabels.jobPod }}
{{- toYaml $auth.extraLabels.jobPod | nindent 8 }}
{{- end }}
spec:
{{- if $auth.affinity }}
affinity: {{- toYaml $auth.affinity | nindent 8 }}
@@ -36,7 +42,7 @@ spec:
{{- if $auth.resources }}
resources:
{{- toYaml $auth.resources | nindent 10 }}
{{- end }}
{{- end }}
{{- if or $auth.extraEnv $auth.tls.existingCASecretName }}
env:
{{- if (gt (len $auth.extraEnv) 0) }}
@@ -84,7 +90,7 @@ spec:
{{- if .Values.enterprise }}
- name: license
secret:
secretName: "license"
secretName: {{ .Values.licenseSecretName | quote }}
{{- end }}
{{- if and (.Values.gcp.credentialSecretName) (eq .Values.chartMode "gcp") }}
- name: gcp-credentials
@@ -104,4 +110,5 @@ spec:
{{- if .Values.extraVolumes }}
{{- toYaml .Values.extraVolumes | nindent 6 }}
{{- end }}
serviceAccountName: {{ include "teleport-cluster.auth.hookServiceAccountName" . }}
{{- end }}
@@ -0,0 +1,34 @@
# this is a carbon copy of the regular serviceAccount object which is only used to run pre-deploy jobs
# upon first install of the chart. it will be deleted by Helm after the pre-deploy hooks run, then the
# regular serviceAccount is created with the same name and exists for the lifetime of the release.
{{- $auth := mustMergeOverwrite (mustDeepCopy .Values) .Values.auth -}}
{{- if $auth.validateConfigOnDeploy }}
{{- $projectedServiceAccountToken := semverCompare ">=1.20.0-0" .Capabilities.KubeVersion.Version }}
{{- if $auth.serviceAccount.create }}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ template "teleport-cluster.auth.hookServiceAccountName" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "teleport-cluster.auth.labels" . | nindent 4 }}
{{- if $auth.extraLabels.serviceAccount }}
{{- toYaml $auth.extraLabels.serviceAccount | nindent 4 }}
{{- end }}
annotations:
"helm.sh/hook": pre-install,pre-upgrade
"helm.sh/hook-weight": "3"
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
{{- if or $auth.annotations.serviceAccount $auth.azure.clientID }}
{{- if $auth.annotations.serviceAccount }}
{{- toYaml $auth.annotations.serviceAccount | nindent 4 }}
{{- end }}
{{- if $auth.azure.clientID }}
azure.workload.identity/client-id: "{{ $auth.azure.clientID }}"
{{- end }}
{{- end -}}
{{- if $projectedServiceAccountToken }}
automountServiceAccountToken: false
{{- end }}
{{- end }}
{{- end }}
@@ -17,6 +17,12 @@ metadata:
spec:
backoffLimit: 1
template:
metadata:
labels:
{{- include "teleport-cluster.proxy.labels" . | nindent 8 }}
{{- if $proxy.extraLabels.jobPod }}
{{- toYaml $proxy.extraLabels.jobPod | nindent 8 }}
{{- end }}
spec:
{{- if $proxy.affinity }}
affinity: {{- toYaml $proxy.affinity | nindent 8 }}
@@ -100,4 +106,5 @@ spec:
{{- if $proxy.extraVolumes }}
{{- toYaml $proxy.extraVolumes | nindent 6 }}
{{- end }}
serviceAccountName: {{ include "teleport-cluster.proxy.hookServiceAccountName" . }}
{{- end }}
@@ -0,0 +1,29 @@
# this is a carbon copy of the regular serviceAccount object which is only used to run pre-deploy jobs
# upon first install of the chart. it will be deleted by Helm after the pre-deploy hooks run, then the
# regular serviceAccount is created with the same name and exists for the lifetime of the release.
{{- $proxy := mustMergeOverwrite (mustDeepCopy .Values) .Values.proxy -}}
{{- $projectedServiceAccountToken := semverCompare ">=1.20.0-0" .Capabilities.KubeVersion.Version }}
{{- if $proxy.validateConfigOnDeploy }}
{{- if $proxy.serviceAccount.create }}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "teleport-cluster.proxy.hookServiceAccountName" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "teleport-cluster.proxy.labels" . | nindent 4 }}
{{- if $proxy.extraLabels.serviceAccount }}
{{- toYaml $proxy.extraLabels.serviceAccount | nindent 4 }}
{{- end }}
annotations:
"helm.sh/hook": pre-install,pre-upgrade
"helm.sh/hook-weight": "3"
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
{{- if $proxy.annotations.serviceAccount }}
{{- toYaml $proxy.annotations.serviceAccount | nindent 4 }}
{{- end -}}
{{- if $projectedServiceAccountToken }}
automountServiceAccountToken: false
{{- end }}
{{- end }}
{{- end }}
@@ -8,9 +8,9 @@ adds operator permissions to ClusterRole:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: teleport-cluster
app.kubernetes.io/version: 16.4.6
helm.sh/chart: teleport-cluster-16.4.6
teleport.dev/majorVersion: "16"
app.kubernetes.io/version: 17.2.7
helm.sh/chart: teleport-cluster-17.2.7
teleport.dev/majorVersion: "17"
name: RELEASE-NAME
rules:
- apiGroups:
@@ -1848,9 +1848,9 @@ sets clusterDomain on Configmap:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: teleport-cluster
app.kubernetes.io/version: 16.4.6
helm.sh/chart: teleport-cluster-16.4.6
teleport.dev/majorVersion: "16"
app.kubernetes.io/version: 17.2.7
helm.sh/chart: teleport-cluster-17.2.7
teleport.dev/majorVersion: "17"
name: RELEASE-NAME-auth
namespace: NAMESPACE
uses athena as primary backend when configured:
@@ -8,7 +8,7 @@
- args:
- --diag-addr=0.0.0.0:3000
- --apply-on-startup=/etc/teleport/apply-on-startup.yaml
image: public.ecr.aws/gravitational/teleport-distroless:16.4.6
image: public.ecr.aws/gravitational/teleport-distroless:17.2.7
imagePullPolicy: IfNotPresent
lifecycle:
preStop:
@@ -141,7 +141,7 @@ should set nodeSelector when set in values:
- args:
- --diag-addr=0.0.0.0:3000
- --apply-on-startup=/etc/teleport/apply-on-startup.yaml
image: public.ecr.aws/gravitational/teleport-distroless:16.4.6
image: public.ecr.aws/gravitational/teleport-distroless:17.2.7
imagePullPolicy: IfNotPresent
lifecycle:
preStop:
@@ -238,7 +238,7 @@ should set resources when set in values:
- args:
- --diag-addr=0.0.0.0:3000
- --apply-on-startup=/etc/teleport/apply-on-startup.yaml
image: public.ecr.aws/gravitational/teleport-distroless:16.4.6
image: public.ecr.aws/gravitational/teleport-distroless:17.2.7
imagePullPolicy: IfNotPresent
lifecycle:
preStop:
@@ -324,7 +324,7 @@ should set securityContext when set in values:
- args:
- --diag-addr=0.0.0.0:3000
- --apply-on-startup=/etc/teleport/apply-on-startup.yaml
image: public.ecr.aws/gravitational/teleport-distroless:16.4.6
image: public.ecr.aws/gravitational/teleport-distroless:17.2.7
imagePullPolicy: IfNotPresent
lifecycle:
preStop:
@@ -567,8 +567,8 @@ sets clusterDomain on Configmap:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: teleport-cluster
app.kubernetes.io/version: 16.4.6
helm.sh/chart: teleport-cluster-16.4.6
teleport.dev/majorVersion: "16"
app.kubernetes.io/version: 17.2.7
helm.sh/chart: teleport-cluster-17.2.7
teleport.dev/majorVersion: "17"
name: RELEASE-NAME-proxy
namespace: NAMESPACE
@@ -11,9 +11,9 @@ sets clusterDomain on Deployment Pods:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: teleport-cluster
app.kubernetes.io/version: 16.4.6
helm.sh/chart: teleport-cluster-16.4.6
teleport.dev/majorVersion: "16"
app.kubernetes.io/version: 17.2.7
helm.sh/chart: teleport-cluster-17.2.7
teleport.dev/majorVersion: "17"
name: RELEASE-NAME-proxy
namespace: NAMESPACE
spec:
@@ -26,7 +26,7 @@ sets clusterDomain on Deployment Pods:
template:
metadata:
annotations:
checksum/config: 87177e0131f696376c17d797df17be252ebdc247a7f84bb05b7a5680ebcd205c
checksum/config: 788cc751f0c48b48415714a674bdb771ba9a079091aa0bbe737447df2f94ec58
kubernetes.io/pod: test-annotation
kubernetes.io/pod-different: 4
labels:
@@ -34,9 +34,9 @@ sets clusterDomain on Deployment Pods:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: teleport-cluster
app.kubernetes.io/version: 16.4.6
helm.sh/chart: teleport-cluster-16.4.6
teleport.dev/majorVersion: "16"
app.kubernetes.io/version: 17.2.7
helm.sh/chart: teleport-cluster-17.2.7
teleport.dev/majorVersion: "17"
spec:
affinity:
podAntiAffinity: null
@@ -44,7 +44,7 @@ sets clusterDomain on Deployment Pods:
containers:
- args:
- --diag-addr=0.0.0.0:3000
image: public.ecr.aws/gravitational/teleport-distroless:16.4.6
image: public.ecr.aws/gravitational/teleport-distroless:17.2.7
imagePullPolicy: IfNotPresent
lifecycle:
preStop:
@@ -104,8 +104,8 @@ sets clusterDomain on Deployment Pods:
- teleport
- wait
- no-resolve
- RELEASE-NAME-auth-v15.NAMESPACE.svc.test.com
image: public.ecr.aws/gravitational/teleport-distroless:16.4.6
- RELEASE-NAME-auth-v16.NAMESPACE.svc.test.com
image: public.ecr.aws/gravitational/teleport-distroless:17.2.7
name: wait-auth-update
serviceAccountName: RELEASE-NAME-proxy
terminationGracePeriodSeconds: 60
@@ -136,8 +136,8 @@ should provision initContainer correctly when set in values:
- teleport
- wait
- no-resolve
- RELEASE-NAME-auth-v15.NAMESPACE.svc.cluster.local
image: public.ecr.aws/gravitational/teleport-distroless:16.4.6
- RELEASE-NAME-auth-v16.NAMESPACE.svc.cluster.local
image: public.ecr.aws/gravitational/teleport-distroless:17.2.7
name: wait-auth-update
resources:
limits:
@@ -201,7 +201,7 @@ should set nodeSelector when set in values:
containers:
- args:
- --diag-addr=0.0.0.0:3000
image: public.ecr.aws/gravitational/teleport-distroless:16.4.6
image: public.ecr.aws/gravitational/teleport-distroless:17.2.7
imagePullPolicy: IfNotPresent
lifecycle:
preStop:
@@ -261,8 +261,8 @@ should set nodeSelector when set in values:
- teleport
- wait
- no-resolve
- RELEASE-NAME-auth-v15.NAMESPACE.svc.cluster.local
image: public.ecr.aws/gravitational/teleport-distroless:16.4.6
- RELEASE-NAME-auth-v16.NAMESPACE.svc.cluster.local
image: public.ecr.aws/gravitational/teleport-distroless:17.2.7
name: wait-auth-update
nodeSelector:
environment: security
@@ -313,7 +313,7 @@ should set resources for wait-auth-update initContainer when set in values:
containers:
- args:
- --diag-addr=0.0.0.0:3000
image: public.ecr.aws/gravitational/teleport-distroless:16.4.6
image: public.ecr.aws/gravitational/teleport-distroless:17.2.7
imagePullPolicy: IfNotPresent
lifecycle:
preStop:
@@ -380,8 +380,8 @@ should set resources for wait-auth-update initContainer when set in values:
- teleport
- wait
- no-resolve
- RELEASE-NAME-auth-v15.NAMESPACE.svc.cluster.local
image: public.ecr.aws/gravitational/teleport-distroless:16.4.6
- RELEASE-NAME-auth-v16.NAMESPACE.svc.cluster.local
image: public.ecr.aws/gravitational/teleport-distroless:17.2.7
name: wait-auth-update
resources:
limits:
@@ -421,7 +421,7 @@ should set resources when set in values:
containers:
- args:
- --diag-addr=0.0.0.0:3000
image: public.ecr.aws/gravitational/teleport-distroless:16.4.6
image: public.ecr.aws/gravitational/teleport-distroless:17.2.7
imagePullPolicy: IfNotPresent
lifecycle:
preStop:
@@ -488,8 +488,8 @@ should set resources when set in values:
- teleport
- wait
- no-resolve
- RELEASE-NAME-auth-v15.NAMESPACE.svc.cluster.local
image: public.ecr.aws/gravitational/teleport-distroless:16.4.6
- RELEASE-NAME-auth-v16.NAMESPACE.svc.cluster.local
image: public.ecr.aws/gravitational/teleport-distroless:17.2.7
name: wait-auth-update
resources:
limits:
@@ -529,7 +529,7 @@ should set securityContext for initContainers when set in values:
containers:
- args:
- --diag-addr=0.0.0.0:3000
image: public.ecr.aws/gravitational/teleport-distroless:16.4.6
image: public.ecr.aws/gravitational/teleport-distroless:17.2.7
imagePullPolicy: IfNotPresent
lifecycle:
preStop:
@@ -596,8 +596,8 @@ should set securityContext for initContainers when set in values:
- teleport
- wait
- no-resolve
- RELEASE-NAME-auth-v15.NAMESPACE.svc.cluster.local
image: public.ecr.aws/gravitational/teleport-distroless:16.4.6
- RELEASE-NAME-auth-v16.NAMESPACE.svc.cluster.local
image: public.ecr.aws/gravitational/teleport-distroless:17.2.7
name: wait-auth-update
securityContext:
allowPrivilegeEscalation: false
@@ -637,7 +637,7 @@ should set securityContext when set in values:
containers:
- args:
- --diag-addr=0.0.0.0:3000
image: public.ecr.aws/gravitational/teleport-distroless:16.4.6
image: public.ecr.aws/gravitational/teleport-distroless:17.2.7
imagePullPolicy: IfNotPresent
lifecycle:
preStop:
@@ -704,8 +704,8 @@ should set securityContext when set in values:
- teleport
- wait
- no-resolve
- RELEASE-NAME-auth-v15.NAMESPACE.svc.cluster.local
image: public.ecr.aws/gravitational/teleport-distroless:16.4.6
- RELEASE-NAME-auth-v16.NAMESPACE.svc.cluster.local
image: public.ecr.aws/gravitational/teleport-distroless:17.2.7
name: wait-auth-update
securityContext:
allowPrivilegeEscalation: false
@@ -215,6 +215,30 @@ tests:
secret:
secretName: license
- it: should use enterprise image and mount license with custom secret name when enterprise is set in values
template: auth/deployment.yaml
set:
clusterName: helm-lint.example.com
enterprise: true
licenseSecretName: enterprise-license
teleportVersionOverride: 12.2.1
asserts:
- equal:
path: spec.template.spec.containers[0].image
value: public.ecr.aws/gravitational/teleport-ent-distroless:12.2.1
- contains:
path: spec.template.spec.containers[0].volumeMounts
content:
mountPath: /var/lib/license
name: "license"
readOnly: true
- contains:
path: spec.template.spec.volumes
content:
name: license
secret:
secretName: enterprise-license
- it: should use OSS image and not mount license when enterprise is not set in values
template: auth/deployment.yaml
set:
+108
View File
@@ -2,8 +2,10 @@ suite: Pre-Deploy Config Test Hooks
templates:
- auth/predeploy_job.yaml
- auth/predeploy_config.yaml
- auth/predeploy_serviceaccount.yaml
- proxy/predeploy_job.yaml
- proxy/predeploy_config.yaml
- proxy/predeploy_serviceaccount.yaml
tests:
- it: Deploys the auth-test config
template: auth/predeploy_config.yaml
@@ -53,6 +55,7 @@ tests:
asserts:
- hasDocuments:
count: 0
- it: should set resources on auth predeploy job when set in values
template: auth/predeploy_job.yaml
values:
@@ -130,6 +133,26 @@ tests:
path: metadata.labels.baz
value: overridden
- it: should set extraLabels.jobPod on auth predeploy job when set in values
template: auth/predeploy_job.yaml
set:
clusterName: helm-lint
extraLabels:
jobPod:
foo: bar
baz: override-me
auth:
extraLabels:
jobPod:
baz: overridden
asserts:
- equal:
path: spec.template.metadata.labels.foo
value: bar
- equal:
path: spec.template.metadata.labels.baz
value: overridden
- it: should set extraLabels on auth predeploy config when set in values
template: auth/predeploy_config.yaml
set:
@@ -149,6 +172,7 @@ tests:
- equal:
path: metadata.labels.baz
value: overridden
- it: should set extraLabels on proxy predeploy job when set in values
template: proxy/predeploy_job.yaml
set:
@@ -169,6 +193,26 @@ tests:
path: metadata.labels.baz
value: overridden
- it: should set extraLabels.jobPod on proxy predeploy job when set in values
template: proxy/predeploy_job.yaml
set:
clusterName: helm-lint
extraLabels:
jobPod:
foo: bar
baz: override-me
proxy:
extraLabels:
jobPod:
baz: overridden
asserts:
- equal:
path: spec.template.metadata.labels.foo
value: bar
- equal:
path: spec.template.metadata.labels.baz
value: overridden
- it: should set extraLabels on proxy predeploy config when set in values
template: proxy/predeploy_config.yaml
set:
@@ -188,3 +232,67 @@ tests:
- equal:
path: metadata.labels.baz
value: overridden
- it: should use default serviceAccount name suffixed with -hook for auth predeploy job SA when not set in values and we're creating SAs
template: auth/predeploy_job.yaml
set:
clusterName: helm-lint
asserts:
- equal:
path: spec.template.spec.serviceAccountName
value: RELEASE-NAME-hook
- it: should use serviceAccount.name suffixed with -hook for auth predeploy job SA when set in values and we're creating SAs
template: auth/predeploy_job.yaml
set:
clusterName: helm-lint
serviceAccount:
name: helm-test-sa
asserts:
- equal:
path: spec.template.spec.serviceAccountName
value: helm-test-sa-hook
- it: should use serviceAccount.name for auth predeploy job SA when set in values and we're not creating SAs
template: auth/predeploy_job.yaml
set:
clusterName: helm-lint
serviceAccount:
name: helm-test-sa
create: false
asserts:
- equal:
path: spec.template.spec.serviceAccountName
value: helm-test-sa
- it: should use default serviceAccount name suffixed with -hook for proxy predeploy job SA when not set in values and we're creating SAs
template: proxy/predeploy_job.yaml
set:
clusterName: helm-lint
asserts:
- equal:
path: spec.template.spec.serviceAccountName
value: RELEASE-NAME-proxy-hook
- it: should use serviceAccount.name suffixed with -hook for proxy predeploy job SA when set in values and we're creating SAs
template: proxy/predeploy_job.yaml
set:
clusterName: helm-lint
serviceAccount:
name: helm-test-sa
asserts:
- equal:
path: spec.template.spec.serviceAccountName
value: helm-test-sa-proxy-hook
- it: should use serviceAccount.name for proxy predeploy job SA when set in values and we're not creating SAs
template: proxy/predeploy_job.yaml
set:
clusterName: helm-lint
serviceAccount:
name: helm-test-sa
create: false
asserts:
- equal:
path: spec.template.spec.serviceAccountName
value: helm-test-sa-proxy
+49
View File
@@ -1,21 +1,70 @@
##################################################
# Values that must always be provided by the user.
##################################################
clusterName: "teleport.ervine.cloud"
kubeClusterName: "homeK8s"
##################################################
# Values that you may need to change.
##################################################
proxyListenerMode: "multiplex"
operator:
enabled: true
image: public.ecr.aws/gravitational/teleport-operator
resources: {}
# requests:
# cpu: "0.5"
# memory: "1Gi"
# limits:
# memory: "1Gi"
joinMethod: "kubernetes"
token: "teleport-operator"
# This is needed to have a sensible name and predictable service account name.
nameOverride: operator
podSecurityPolicy:
enabled: false
podMonitor:
enabled: true
additionalLabels:
prometheus: k8s
######################################################################
# Persistence settings (only used in "standalone" and "scratch" modes)
# NOTE: Changes in Kubernetes 1.23+ mean that persistent volumes will not automatically be provisioned in AWS EKS clusters
# without additional configuration. See https://docs.aws.amazon.com/eks/latest/userguide/ebs-csi.html for more details.
# This driver addon must be configured to use persistent volumes in EKS clusters after Kubernetes 1.23.
######################################################################
persistence:
# Enable persistence using a PersistentVolumeClaim
enabled: true
# Leave blank to automatically create a PersistentVolumeClaim for Teleport storage.
# If you would like to use a pre-existing PersistentVolumeClaim, put its name here.
existingClaimName: ""
# Size of persistent volume to request when created by Teleport.
# Ignored if existingClaimName is provided.
volumeSize: 10Gi
highAvailability:
replicaCount: 2
requireAntiAffinity: true
# If enabled will create a Pod Disruption Budget
podDisruptionBudget:
enabled: false
minAvailable: 1
certManager:
enabled: true
addCommonName: false
addPublicAddrs: false
issuerName: "letsencrypt-prod"
issuerKind: ClusterIssuer
##################################
# Extra Kubernetes configuration #
##################################
annotations:
ingress:
kubernetes.io/ingress.class: nginx
+5
View File
@@ -286,6 +286,11 @@
"type": "boolean",
"default": false
},
"licenseSecretName": {
"$id": "#/properties/licenseSecretName",
"type": "string",
"default": "license"
},
"installCRDs": {
"$id": "#/properties/installCRDs",
"type": "boolean"
+17 -15
View File
@@ -61,7 +61,8 @@ teleportVersionOverride: ""
# For example:
#
# auth:
# postStart: ["curl", "http://hook"]
# postStart:
# command: ["curl", "http://hook"]
# imagePullPolicy: Always
auth:
# auth.teleportConfig contains YAML teleport configuration for auth pods
@@ -84,7 +85,8 @@ auth:
# This is merged with chart-scoped values and takes precedence in case of conflict.
# For example:
# proxy:
# postStart: ["curl", "http://hook"]
# postStart:
# command: ["curl", "http://hook"]
# imagePullPolicy: Always
# annotations:
# service:
@@ -179,7 +181,7 @@ authentication:
proxyListenerMode: "separate"
# Optional setting for configuring session recording.
# See `session_recording` under https://goteleport.com/docs/setup/reference/config/#teleportyaml
# See `session_recording` under https://goteleport.com/docs/reference/config/#auth-service
sessionRecording: ""
# By default, Teleport will multiplex Postgres and MongoDB database connections on the same port as the proxy's web listener (443)
@@ -245,7 +247,8 @@ acmeURI: ""
# You will need to download your Enterprise license from the Teleport dashboard and create a secret to use this:
# kubectl -n ${TELEPORT_NAMESPACE?} create secret generic license --from-file=/path/to/downloaded/license.pem
enterprise: false
# Override default Enterprise license name
licenseSecretName: "license"
# CRDs are installed by default when the operator is enabled. This manual override allows to disable CRD installation
# when deploying multiple releases in the same cluster.
# installCRDs:
@@ -266,7 +269,7 @@ operator:
# memory: "1Gi"
joinMethod: "kubernetes"
token: "teleport-operator"
# This is needed to have a sensible name and predictible service account name.
# This is needed to have a sensible name and predictable service account name.
nameOverride: operator
# If true, create & use Pod Security Policy resources
@@ -565,17 +568,13 @@ tls:
# Values that you shouldn't need to change.
##################################################
# Container image for the cluster.
# Since version 13, hardened distroless images are used by default.
# You can use the deprecated debian-based images by setting the value to
# `public.ecr.aws/gravitational/teleport`. Those images will be
# removed with teleport 14.
# Container image for the cluster. By default, the image contains only the
# Teleport application and its runtime dependencies, and does not contain a
# shell.
image: public.ecr.aws/gravitational/teleport-distroless
# Enterprise version of the image
# Since version 13, hardened distroless images are used by default.
# You can use the deprecated debian-based images by setting the value to
# `public.ecr.aws/gravitational/teleport-ent`. Those images will be
# removed with teleport 14.
# Enterprise version of the image. By default, the image contains only the
# Teleport application and its runtime dependencies, and does not contain a
# shell.
enterpriseImage: public.ecr.aws/gravitational/teleport-ent-distroless
# Optional array of imagePullSecrets, to use when pulling from a private registry
imagePullSecrets: []
@@ -653,6 +652,9 @@ extraLabels:
ingress: {}
# extraLabels.job(object) -- are labels to set on the Job run by the Helm hook.
job: {}
# extraLabels.jobPod(object) -- are labels to set on the Pods created by the
# Job run by the Helm hook.
jobPod: {}
# extraLabels.persistentVolumeClaim(object) -- are labels to set on the PersistentVolumeClaim.
persistentVolumeClaim: {}
# extraLabels.pod(object) -- are labels to set on the Pods created by the