Bump teleport to version 15.3.3
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
clusterName: test-aws-cluster
|
||||
chartMode: aws
|
||||
aws:
|
||||
region: us-west-2
|
||||
backendTable: test-dynamodb-backend-table
|
||||
sessionRecordingBucket: test-s3-session-storage-bucket
|
||||
athenaURL: 'athena://db.table?topicArn=arn:aws:sns:region:account_id:topic_name'
|
||||
|
||||
accessMonitoring:
|
||||
enabled: true
|
||||
reportResults: "s3://example-athena-long-term/report_results"
|
||||
roleARN: "arn:aws:iam::123456789012:role/example_AccessMonitoringRole"
|
||||
workgroup: "example_access_monitoring_workgroup"
|
||||
@@ -0,0 +1 @@
|
||||
clusterName: helm-lint
|
||||
@@ -0,0 +1,7 @@
|
||||
clusterName: helm-lint
|
||||
podSecurityContext:
|
||||
fsGroup: 99
|
||||
fsGroupChangePolicy: OnRootMismatch
|
||||
runAsGroup: 99
|
||||
runAsNonRoot: true
|
||||
runAsUser: 99
|
||||
@@ -0,0 +1,2 @@
|
||||
clusterName: helm-lint
|
||||
sessionRecording: "off"
|
||||
@@ -1,14 +1,13 @@
|
||||
apiVersion: v2
|
||||
appVersion: 15.0.1
|
||||
appVersion: 15.3.3
|
||||
dependencies:
|
||||
- alias: operator
|
||||
condition: installCRDs,operator.enabled
|
||||
name: teleport-operator
|
||||
repository: ""
|
||||
version: 15.0.1
|
||||
version: 15.3.3
|
||||
description: Teleport is an access platform for your infrastructure
|
||||
icon: https://goteleport.com/images/logos/logo-teleport-square.svg
|
||||
icon: https://goteleport.com/static/teleport-symbol-bimi.svg
|
||||
keywords:
|
||||
- Teleport
|
||||
name: teleport-cluster
|
||||
version: 15.0.1
|
||||
version: 15.3.3
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
apiVersion: v2
|
||||
appVersion: 15.0.1
|
||||
appVersion: 15.3.3
|
||||
description: Teleport Operator provides management of select Teleport resources.
|
||||
icon: https://goteleport.com/images/logos/logo-teleport-square.svg
|
||||
icon: https://goteleport.com/static/teleport-symbol-bimi.svg
|
||||
keywords:
|
||||
- Teleport
|
||||
name: teleport-operator
|
||||
version: 15.0.1
|
||||
version: 15.3.3
|
||||
|
||||
+5
-18
@@ -62,10 +62,13 @@ spec:
|
||||
properties:
|
||||
day_of_month:
|
||||
description: day_of_month is the day of month that reviews
|
||||
will be scheduled on.
|
||||
will be scheduled on. Supported values are 0, 1, 15, and
|
||||
31.
|
||||
x-kubernetes-int-or-string: true
|
||||
frequency:
|
||||
description: frequency is the frequency of reviews.
|
||||
description: frequency is the frequency of reviews. This represents
|
||||
the period in months between two reviews. Supported values
|
||||
are 0, 1, 3, 6, and 12.
|
||||
x-kubernetes-int-or-string: true
|
||||
type: object
|
||||
type: object
|
||||
@@ -94,14 +97,6 @@ spec:
|
||||
are members of the access list.
|
||||
type: object
|
||||
type: object
|
||||
membership:
|
||||
description: 'membership defines how list membership is applied. There
|
||||
are two possible values: `explicit` (default): To be considered
|
||||
ag member of the access list, a user must both meet the `membership_requires`
|
||||
conditions AND be explicitly added to the list. `implicit`: Any
|
||||
user meeting the `membership_requires` conditions will automatically
|
||||
be cosidered a member of this list.'
|
||||
type: string
|
||||
membership_requires:
|
||||
description: membership_requires describes the requirements for a
|
||||
user to be a member of the access list. For a membership to an access
|
||||
@@ -164,14 +159,6 @@ spec:
|
||||
type: object
|
||||
nullable: true
|
||||
type: array
|
||||
ownership:
|
||||
description: 'ownership defines how list ownership of this list is
|
||||
determined. There are two possible values: `explicit` (default):
|
||||
To be considered an owner of the access list, a user must both meet
|
||||
the `ownership_requires` conditions AND be explicitly added to the
|
||||
list. `implicit`: Any user meeting the `ownership_requires` conditions
|
||||
will automatically be considered an owner of this list.'
|
||||
type: string
|
||||
ownership_requires:
|
||||
description: ownership_requires describes the requirements for a user
|
||||
to be an owner of the access list. For ownership of an access list
|
||||
+14
@@ -42,6 +42,20 @@ spec:
|
||||
client_id:
|
||||
description: ClientID is the Github OAuth app client ID.
|
||||
type: string
|
||||
client_redirect_settings:
|
||||
description: ClientRedirectSettings defines which client redirect
|
||||
URLs are allowed for non-browser SSO logins other than the standard
|
||||
localhost ones.
|
||||
nullable: true
|
||||
properties:
|
||||
allowed_https_hostnames:
|
||||
description: a list of hostnames allowed for https client redirect
|
||||
URLs
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
type: object
|
||||
client_secret:
|
||||
description: ClientSecret is the Github OAuth app client secret.
|
||||
type: string
|
||||
+14
@@ -67,6 +67,20 @@ spec:
|
||||
description: ClientID is the id of the authentication client (Teleport
|
||||
Auth server).
|
||||
type: string
|
||||
client_redirect_settings:
|
||||
description: ClientRedirectSettings defines which client redirect
|
||||
URLs are allowed for non-browser SSO logins other than the standard
|
||||
localhost ones.
|
||||
nullable: true
|
||||
properties:
|
||||
allowed_https_hostnames:
|
||||
description: a list of hostnames allowed for https client redirect
|
||||
URLs
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
type: object
|
||||
client_secret:
|
||||
description: ClientSecret is used to authenticate the client.
|
||||
type: string
|
||||
+262
@@ -0,0 +1,262 @@
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
name: teleportopenssheiceserversv2.resources.teleport.dev
|
||||
spec:
|
||||
group: resources.teleport.dev
|
||||
names:
|
||||
kind: TeleportOpenSSHEICEServerV2
|
||||
listKind: TeleportOpenSSHEICEServerV2List
|
||||
plural: teleportopenssheiceserversv2
|
||||
shortNames:
|
||||
- openssheiceserverv2
|
||||
- openssheiceserversv2
|
||||
singular: teleportopenssheiceserverv2
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- additionalPrinterColumns:
|
||||
- description: Server hostname
|
||||
jsonPath: .spec.hostname
|
||||
name: Hostname
|
||||
type: string
|
||||
- description: Server address, with SSH port.
|
||||
jsonPath: .spec.addr
|
||||
name: Address
|
||||
type: string
|
||||
- description: The age of this resource
|
||||
jsonPath: .metadata.creationTimestamp
|
||||
name: Age
|
||||
type: date
|
||||
name: v1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: OpenSSHEICEServerV2 is the Schema for the openssheiceserversv2
|
||||
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: OpenSSHEICEServer resource definition v2 from Teleport
|
||||
properties:
|
||||
addr:
|
||||
description: Addr is a host:port address where this server can be
|
||||
reached.
|
||||
type: string
|
||||
cloud_metadata:
|
||||
description: CloudMetadata contains info about the cloud instance
|
||||
the server is running on, if any.
|
||||
nullable: true
|
||||
properties:
|
||||
aws:
|
||||
description: AWSInfo contains attributes to match to an EC2 instance.
|
||||
nullable: true
|
||||
properties:
|
||||
account_id:
|
||||
description: AccountID is an AWS account ID.
|
||||
type: string
|
||||
instance_id:
|
||||
description: InstanceID is an EC2 instance ID.
|
||||
type: string
|
||||
integration:
|
||||
description: Integration is the integration name that added
|
||||
this Node. When connecting to it, it will use this integration
|
||||
to issue AWS API calls in order to set up the connection.
|
||||
This includes sending an SSH Key and then opening a tunnel
|
||||
(EC2 Instance Connect Endpoint) so Teleport can connect
|
||||
to it.
|
||||
type: string
|
||||
region:
|
||||
description: Region is the AWS EC2 Instance Region.
|
||||
type: string
|
||||
subnet_id:
|
||||
description: SubnetID is the Subnet ID in use by the instance.
|
||||
type: string
|
||||
vpc_id:
|
||||
description: VPCID is the AWS VPC ID where the Instance is
|
||||
running.
|
||||
type: string
|
||||
type: object
|
||||
type: object
|
||||
hostname:
|
||||
description: Hostname is server hostname
|
||||
type: string
|
||||
peer_addr:
|
||||
description: PeerAddr is the address a proxy server is reachable at
|
||||
by its peer proxies.
|
||||
type: string
|
||||
proxy_ids:
|
||||
description: ProxyIDs is a list of proxy IDs this server is expected
|
||||
to be connected to.
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
public_addrs:
|
||||
description: PublicAddrs is a list of public addresses where this
|
||||
server can be reached.
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
rotation:
|
||||
description: Rotation specifies server rotation
|
||||
properties:
|
||||
current_id:
|
||||
description: CurrentID is the ID of the rotation operation to
|
||||
differentiate between rotation attempts.
|
||||
type: string
|
||||
grace_period:
|
||||
description: GracePeriod is a period during which old and new
|
||||
CA are valid for checking purposes, but only new CA is issuing
|
||||
certificates.
|
||||
format: duration
|
||||
type: string
|
||||
last_rotated:
|
||||
description: LastRotated specifies the last time of the completed
|
||||
rotation.
|
||||
format: date-time
|
||||
type: string
|
||||
mode:
|
||||
description: Mode sets manual or automatic rotation mode.
|
||||
type: string
|
||||
phase:
|
||||
description: Phase is the current rotation phase.
|
||||
type: string
|
||||
schedule:
|
||||
description: Schedule is a rotation schedule - used in automatic
|
||||
mode to switch between phases.
|
||||
properties:
|
||||
standby:
|
||||
description: Standby specifies time to switch to the "Standby"
|
||||
phase.
|
||||
format: date-time
|
||||
type: string
|
||||
update_clients:
|
||||
description: UpdateClients specifies time to switch to the
|
||||
"Update clients" phase
|
||||
format: date-time
|
||||
type: string
|
||||
update_servers:
|
||||
description: UpdateServers specifies time to switch to the
|
||||
"Update servers" phase.
|
||||
format: date-time
|
||||
type: string
|
||||
type: object
|
||||
started:
|
||||
description: Started is set to the time when rotation has been
|
||||
started in case if the state of the rotation is "in_progress".
|
||||
format: date-time
|
||||
type: string
|
||||
state:
|
||||
description: State could be one of "init" or "in_progress".
|
||||
type: string
|
||||
type: object
|
||||
use_tunnel:
|
||||
description: UseTunnel indicates that connections to this server should
|
||||
occur over a reverse tunnel.
|
||||
type: boolean
|
||||
version:
|
||||
description: TeleportVersion is the teleport version that the server
|
||||
is running on
|
||||
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.\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}"
|
||||
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.
|
||||
---
|
||||
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)
|
||||
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
|
||||
+261
@@ -0,0 +1,261 @@
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
name: teleportopensshserversv2.resources.teleport.dev
|
||||
spec:
|
||||
group: resources.teleport.dev
|
||||
names:
|
||||
kind: TeleportOpenSSHServerV2
|
||||
listKind: TeleportOpenSSHServerV2List
|
||||
plural: teleportopensshserversv2
|
||||
shortNames:
|
||||
- opensshserverv2
|
||||
- opensshserversv2
|
||||
singular: teleportopensshserverv2
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- additionalPrinterColumns:
|
||||
- description: Server hostname
|
||||
jsonPath: .spec.hostname
|
||||
name: Hostname
|
||||
type: string
|
||||
- description: Server address, with SSH port.
|
||||
jsonPath: .spec.addr
|
||||
name: Address
|
||||
type: string
|
||||
- description: The age of this resource
|
||||
jsonPath: .metadata.creationTimestamp
|
||||
name: Age
|
||||
type: date
|
||||
name: v1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: OpenSSHServerV2 is the Schema for the opensshserversv2 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: OpenSSHServer resource definition v2 from Teleport
|
||||
properties:
|
||||
addr:
|
||||
description: Addr is a host:port address where this server can be
|
||||
reached.
|
||||
type: string
|
||||
cloud_metadata:
|
||||
description: CloudMetadata contains info about the cloud instance
|
||||
the server is running on, if any.
|
||||
nullable: true
|
||||
properties:
|
||||
aws:
|
||||
description: AWSInfo contains attributes to match to an EC2 instance.
|
||||
nullable: true
|
||||
properties:
|
||||
account_id:
|
||||
description: AccountID is an AWS account ID.
|
||||
type: string
|
||||
instance_id:
|
||||
description: InstanceID is an EC2 instance ID.
|
||||
type: string
|
||||
integration:
|
||||
description: Integration is the integration name that added
|
||||
this Node. When connecting to it, it will use this integration
|
||||
to issue AWS API calls in order to set up the connection.
|
||||
This includes sending an SSH Key and then opening a tunnel
|
||||
(EC2 Instance Connect Endpoint) so Teleport can connect
|
||||
to it.
|
||||
type: string
|
||||
region:
|
||||
description: Region is the AWS EC2 Instance Region.
|
||||
type: string
|
||||
subnet_id:
|
||||
description: SubnetID is the Subnet ID in use by the instance.
|
||||
type: string
|
||||
vpc_id:
|
||||
description: VPCID is the AWS VPC ID where the Instance is
|
||||
running.
|
||||
type: string
|
||||
type: object
|
||||
type: object
|
||||
hostname:
|
||||
description: Hostname is server hostname
|
||||
type: string
|
||||
peer_addr:
|
||||
description: PeerAddr is the address a proxy server is reachable at
|
||||
by its peer proxies.
|
||||
type: string
|
||||
proxy_ids:
|
||||
description: ProxyIDs is a list of proxy IDs this server is expected
|
||||
to be connected to.
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
public_addrs:
|
||||
description: PublicAddrs is a list of public addresses where this
|
||||
server can be reached.
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
rotation:
|
||||
description: Rotation specifies server rotation
|
||||
properties:
|
||||
current_id:
|
||||
description: CurrentID is the ID of the rotation operation to
|
||||
differentiate between rotation attempts.
|
||||
type: string
|
||||
grace_period:
|
||||
description: GracePeriod is a period during which old and new
|
||||
CA are valid for checking purposes, but only new CA is issuing
|
||||
certificates.
|
||||
format: duration
|
||||
type: string
|
||||
last_rotated:
|
||||
description: LastRotated specifies the last time of the completed
|
||||
rotation.
|
||||
format: date-time
|
||||
type: string
|
||||
mode:
|
||||
description: Mode sets manual or automatic rotation mode.
|
||||
type: string
|
||||
phase:
|
||||
description: Phase is the current rotation phase.
|
||||
type: string
|
||||
schedule:
|
||||
description: Schedule is a rotation schedule - used in automatic
|
||||
mode to switch between phases.
|
||||
properties:
|
||||
standby:
|
||||
description: Standby specifies time to switch to the "Standby"
|
||||
phase.
|
||||
format: date-time
|
||||
type: string
|
||||
update_clients:
|
||||
description: UpdateClients specifies time to switch to the
|
||||
"Update clients" phase
|
||||
format: date-time
|
||||
type: string
|
||||
update_servers:
|
||||
description: UpdateServers specifies time to switch to the
|
||||
"Update servers" phase.
|
||||
format: date-time
|
||||
type: string
|
||||
type: object
|
||||
started:
|
||||
description: Started is set to the time when rotation has been
|
||||
started in case if the state of the rotation is "in_progress".
|
||||
format: date-time
|
||||
type: string
|
||||
state:
|
||||
description: State could be one of "init" or "in_progress".
|
||||
type: string
|
||||
type: object
|
||||
use_tunnel:
|
||||
description: UseTunnel indicates that connections to this server should
|
||||
occur over a reverse tunnel.
|
||||
type: boolean
|
||||
version:
|
||||
description: TeleportVersion is the teleport version that the server
|
||||
is running on
|
||||
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.\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}"
|
||||
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.
|
||||
---
|
||||
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)
|
||||
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
|
||||
+46
-2
@@ -15,7 +15,20 @@ spec:
|
||||
singular: teleportprovisiontoken
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- name: v2
|
||||
- additionalPrinterColumns:
|
||||
- description: Token join method.
|
||||
jsonPath: .spec.join_method
|
||||
name: Join Method
|
||||
type: string
|
||||
- description: System roles granted by this token.
|
||||
jsonPath: .spec.roles
|
||||
name: System Roles
|
||||
type: string
|
||||
- description: The age of this resource
|
||||
jsonPath: .metadata.creationTimestamp
|
||||
name: Age
|
||||
type: date
|
||||
name: v2
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: ProvisionToken is the Schema for the provisiontokens API
|
||||
@@ -189,7 +202,7 @@ spec:
|
||||
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 customised issuer values.
|
||||
for more information about customized issuer values.
|
||||
type: string
|
||||
type: object
|
||||
gitlab:
|
||||
@@ -328,6 +341,37 @@ spec:
|
||||
set when using this token to enroll themselves in the cluster. Currently,
|
||||
only node-join scripts create a configuration according to the suggestion.
|
||||
type: object
|
||||
tpm:
|
||||
description: TPM allows the configuration of options specific to the
|
||||
"tpm" join method.
|
||||
nullable: true
|
||||
properties:
|
||||
allow:
|
||||
description: Allow is a list of Rules, the presented delegated
|
||||
identity must match one allow rule to permit joining.
|
||||
items:
|
||||
properties:
|
||||
description:
|
||||
type: string
|
||||
ek_certificate_serial:
|
||||
type: string
|
||||
ek_public_hash:
|
||||
type: string
|
||||
type: object
|
||||
nullable: true
|
||||
type: array
|
||||
ekcert_allowed_cas:
|
||||
description: EKCertAllowedCAs is 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.
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
type: object
|
||||
type: object
|
||||
status:
|
||||
description: Status defines the observed state of the Teleport resource
|
||||
+282
-14
@@ -86,6 +86,28 @@ spec:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
db_permissions:
|
||||
description: DatabasePermissions specifies a set of permissions
|
||||
that will be granted to the database user when using automatic
|
||||
database user provisioning.
|
||||
items:
|
||||
properties:
|
||||
match:
|
||||
additionalProperties:
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
description: Match is a list of object labels that must
|
||||
be matched for the permission to be granted.
|
||||
type: object
|
||||
permissions:
|
||||
description: Permission is the list of string representations
|
||||
of the permission to be given, e.g. SELECT, INSERT, UPDATE,
|
||||
...
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
type: object
|
||||
type: array
|
||||
db_roles:
|
||||
description: DatabaseRoles is a list of databases roles for automatic
|
||||
user creation.
|
||||
@@ -281,7 +303,7 @@ spec:
|
||||
a mechanism to propagate extra information to plugins. Since
|
||||
these annotations support variable interpolation syntax,
|
||||
they also offer a mechanism for forwarding claims from an
|
||||
external identity provider, to a plugin via {{ `{{external.trait_name}}` }}
|
||||
external identity provider, to a plugin via `{{external.trait_name}}`
|
||||
style substitutions.
|
||||
type: object
|
||||
claims_to_roles:
|
||||
@@ -474,6 +496,49 @@ spec:
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
spiffe:
|
||||
description: SPIFFE is used to allow or deny access to a role
|
||||
holder to generating a SPIFFE SVID.
|
||||
items:
|
||||
properties:
|
||||
dns_sans:
|
||||
description: 'DNSSANs specifies matchers for the SPIFFE
|
||||
ID DNS SANs. Each requested DNS SAN is compared against
|
||||
all matchers configured and if any match, the condition
|
||||
is considered to be met. The matcher by default allows
|
||||
''*'' to be used to indicate zero or more of any character.
|
||||
Prepend ''^'' and append ''$'' to instead switch to matching
|
||||
using the Go regex syntax. Example: *.example.com would
|
||||
match foo.example.com'
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
ip_sans:
|
||||
description: 'IPSANs specifies matchers for the SPIFFE ID
|
||||
IP SANs. Each requested IP SAN is compared against all
|
||||
matchers configured and if any match, the condition is
|
||||
considered to be met. The matchers should be specified
|
||||
using CIDR notation, it supports IPv4 and IPv6. Examples:
|
||||
- 10.0.0.0/24 would match 10.0.0.0 to 10.255.255.255 -
|
||||
10.0.0.42/32 would match only 10.0.0.42'
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
path:
|
||||
description: 'Path specifies a matcher for the SPIFFE ID
|
||||
path. It should not include the trust domain and should
|
||||
start with a leading slash. The matcher by default allows
|
||||
''*'' to be used to indicate zero or more of any character.
|
||||
Prepend ''^'' and append ''$'' to instead switch to matching
|
||||
using the Go regex syntax. Example: - /svc/foo/*/bar
|
||||
would match /svc/foo/baz/bar - ^\/svc\/foo\/.*\/bar$ would
|
||||
match /svc/foo/baz/bar'
|
||||
type: string
|
||||
type: object
|
||||
nullable: true
|
||||
type: array
|
||||
windows_desktop_labels:
|
||||
additionalProperties:
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
@@ -547,6 +612,28 @@ spec:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
db_permissions:
|
||||
description: DatabasePermissions specifies a set of permissions
|
||||
that will be granted to the database user when using automatic
|
||||
database user provisioning.
|
||||
items:
|
||||
properties:
|
||||
match:
|
||||
additionalProperties:
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
description: Match is a list of object labels that must
|
||||
be matched for the permission to be granted.
|
||||
type: object
|
||||
permissions:
|
||||
description: Permission is the list of string representations
|
||||
of the permission to be given, e.g. SELECT, INSERT, UPDATE,
|
||||
...
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
type: object
|
||||
type: array
|
||||
db_roles:
|
||||
description: DatabaseRoles is a list of databases roles for automatic
|
||||
user creation.
|
||||
@@ -742,7 +829,7 @@ spec:
|
||||
a mechanism to propagate extra information to plugins. Since
|
||||
these annotations support variable interpolation syntax,
|
||||
they also offer a mechanism for forwarding claims from an
|
||||
external identity provider, to a plugin via {{ `{{external.trait_name}}` }}
|
||||
external identity provider, to a plugin via `{{external.trait_name}}`
|
||||
style substitutions.
|
||||
type: object
|
||||
claims_to_roles:
|
||||
@@ -935,6 +1022,49 @@ spec:
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
spiffe:
|
||||
description: SPIFFE is used to allow or deny access to a role
|
||||
holder to generating a SPIFFE SVID.
|
||||
items:
|
||||
properties:
|
||||
dns_sans:
|
||||
description: 'DNSSANs specifies matchers for the SPIFFE
|
||||
ID DNS SANs. Each requested DNS SAN is compared against
|
||||
all matchers configured and if any match, the condition
|
||||
is considered to be met. The matcher by default allows
|
||||
''*'' to be used to indicate zero or more of any character.
|
||||
Prepend ''^'' and append ''$'' to instead switch to matching
|
||||
using the Go regex syntax. Example: *.example.com would
|
||||
match foo.example.com'
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
ip_sans:
|
||||
description: 'IPSANs specifies matchers for the SPIFFE ID
|
||||
IP SANs. Each requested IP SAN is compared against all
|
||||
matchers configured and if any match, the condition is
|
||||
considered to be met. The matchers should be specified
|
||||
using CIDR notation, it supports IPv4 and IPv6. Examples:
|
||||
- 10.0.0.0/24 would match 10.0.0.0 to 10.255.255.255 -
|
||||
10.0.0.42/32 would match only 10.0.0.42'
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
path:
|
||||
description: 'Path specifies a matcher for the SPIFFE ID
|
||||
path. It should not include the trust domain and should
|
||||
start with a leading slash. The matcher by default allows
|
||||
''*'' to be used to indicate zero or more of any character.
|
||||
Prepend ''^'' and append ''$'' to instead switch to matching
|
||||
using the Go regex syntax. Example: - /svc/foo/*/bar
|
||||
would match /svc/foo/baz/bar - ^\/svc\/foo\/.*\/bar$ would
|
||||
match /svc/foo/baz/bar'
|
||||
type: string
|
||||
type: object
|
||||
nullable: true
|
||||
type: array
|
||||
windows_desktop_labels:
|
||||
additionalProperties:
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
@@ -962,7 +1092,7 @@ spec:
|
||||
properties:
|
||||
mode:
|
||||
description: Mode is the type of extension to be used --
|
||||
currently critical-option is not supported
|
||||
currently critical-option is not supported. 0 is "extension".
|
||||
x-kubernetes-int-or-string: true
|
||||
name:
|
||||
description: Name specifies the key to be used in the cert
|
||||
@@ -970,7 +1100,7 @@ spec:
|
||||
type: string
|
||||
type:
|
||||
description: Type represents the certificate type being
|
||||
extended, only ssh is supported at this time.
|
||||
extended, only ssh is supported at this time. 0 is "ssh".
|
||||
x-kubernetes-int-or-string: true
|
||||
value:
|
||||
description: Value specifies the value to be used in the
|
||||
@@ -995,7 +1125,8 @@ spec:
|
||||
type: boolean
|
||||
create_db_user_mode:
|
||||
description: CreateDatabaseUserMode allows users to be automatically
|
||||
created on a database when not set to off.
|
||||
created on a database when not set to off. 0 is "unspecified",
|
||||
1 is "off", 2 is "keep", 3 is "best_effort_drop".
|
||||
x-kubernetes-int-or-string: true
|
||||
create_desktop_user:
|
||||
description: CreateDesktopUser allows users to be automatically
|
||||
@@ -1007,7 +1138,9 @@ spec:
|
||||
type: boolean
|
||||
create_host_user_mode:
|
||||
description: CreateHostUserMode allows users to be automatically
|
||||
created on a host when not set to off
|
||||
created on a host when not set to off. 0 is "unspecified"; 1
|
||||
is "off"; 2 is "drop" (removed for v15 and above), 3 is "keep";
|
||||
4 is "insecure-drop".
|
||||
x-kubernetes-int-or-string: true
|
||||
desktop_clipboard:
|
||||
description: DesktopClipboard indicates whether clipboard sharing
|
||||
@@ -1118,7 +1251,8 @@ spec:
|
||||
type: string
|
||||
require_session_mfa:
|
||||
description: RequireMFAType is the type of MFA requirement enforced
|
||||
for this user.
|
||||
for this user. 0 is "OFF", 1 is "SESSION", 2 is "SESSION_AND_HARDWARE_KEY",
|
||||
3 is "HARDWARE_KEY_TOUCH", 4 is "HARDWARE_KEY_PIN", 5 is "HARDWARE_KEY_TOUCH_AND_PIN".
|
||||
x-kubernetes-int-or-string: true
|
||||
ssh_file_copy:
|
||||
description: SSHFileCopy indicates whether remote file operations
|
||||
@@ -1284,6 +1418,28 @@ spec:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
db_permissions:
|
||||
description: DatabasePermissions specifies a set of permissions
|
||||
that will be granted to the database user when using automatic
|
||||
database user provisioning.
|
||||
items:
|
||||
properties:
|
||||
match:
|
||||
additionalProperties:
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
description: Match is a list of object labels that must
|
||||
be matched for the permission to be granted.
|
||||
type: object
|
||||
permissions:
|
||||
description: Permission is the list of string representations
|
||||
of the permission to be given, e.g. SELECT, INSERT, UPDATE,
|
||||
...
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
type: object
|
||||
type: array
|
||||
db_roles:
|
||||
description: DatabaseRoles is a list of databases roles for automatic
|
||||
user creation.
|
||||
@@ -1479,7 +1635,7 @@ spec:
|
||||
a mechanism to propagate extra information to plugins. Since
|
||||
these annotations support variable interpolation syntax,
|
||||
they also offer a mechanism for forwarding claims from an
|
||||
external identity provider, to a plugin via {{ `{{external.trait_name}}` }}
|
||||
external identity provider, to a plugin via `{{external.trait_name}}`
|
||||
style substitutions.
|
||||
type: object
|
||||
claims_to_roles:
|
||||
@@ -1672,6 +1828,49 @@ spec:
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
spiffe:
|
||||
description: SPIFFE is used to allow or deny access to a role
|
||||
holder to generating a SPIFFE SVID.
|
||||
items:
|
||||
properties:
|
||||
dns_sans:
|
||||
description: 'DNSSANs specifies matchers for the SPIFFE
|
||||
ID DNS SANs. Each requested DNS SAN is compared against
|
||||
all matchers configured and if any match, the condition
|
||||
is considered to be met. The matcher by default allows
|
||||
''*'' to be used to indicate zero or more of any character.
|
||||
Prepend ''^'' and append ''$'' to instead switch to matching
|
||||
using the Go regex syntax. Example: *.example.com would
|
||||
match foo.example.com'
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
ip_sans:
|
||||
description: 'IPSANs specifies matchers for the SPIFFE ID
|
||||
IP SANs. Each requested IP SAN is compared against all
|
||||
matchers configured and if any match, the condition is
|
||||
considered to be met. The matchers should be specified
|
||||
using CIDR notation, it supports IPv4 and IPv6. Examples:
|
||||
- 10.0.0.0/24 would match 10.0.0.0 to 10.255.255.255 -
|
||||
10.0.0.42/32 would match only 10.0.0.42'
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
path:
|
||||
description: 'Path specifies a matcher for the SPIFFE ID
|
||||
path. It should not include the trust domain and should
|
||||
start with a leading slash. The matcher by default allows
|
||||
''*'' to be used to indicate zero or more of any character.
|
||||
Prepend ''^'' and append ''$'' to instead switch to matching
|
||||
using the Go regex syntax. Example: - /svc/foo/*/bar
|
||||
would match /svc/foo/baz/bar - ^\/svc\/foo\/.*\/bar$ would
|
||||
match /svc/foo/baz/bar'
|
||||
type: string
|
||||
type: object
|
||||
nullable: true
|
||||
type: array
|
||||
windows_desktop_labels:
|
||||
additionalProperties:
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
@@ -1745,6 +1944,28 @@ spec:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
db_permissions:
|
||||
description: DatabasePermissions specifies a set of permissions
|
||||
that will be granted to the database user when using automatic
|
||||
database user provisioning.
|
||||
items:
|
||||
properties:
|
||||
match:
|
||||
additionalProperties:
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
description: Match is a list of object labels that must
|
||||
be matched for the permission to be granted.
|
||||
type: object
|
||||
permissions:
|
||||
description: Permission is the list of string representations
|
||||
of the permission to be given, e.g. SELECT, INSERT, UPDATE,
|
||||
...
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
type: object
|
||||
type: array
|
||||
db_roles:
|
||||
description: DatabaseRoles is a list of databases roles for automatic
|
||||
user creation.
|
||||
@@ -1940,7 +2161,7 @@ spec:
|
||||
a mechanism to propagate extra information to plugins. Since
|
||||
these annotations support variable interpolation syntax,
|
||||
they also offer a mechanism for forwarding claims from an
|
||||
external identity provider, to a plugin via {{ `{{external.trait_name}}` }}
|
||||
external identity provider, to a plugin via `{{external.trait_name}}`
|
||||
style substitutions.
|
||||
type: object
|
||||
claims_to_roles:
|
||||
@@ -2133,6 +2354,49 @@ spec:
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
spiffe:
|
||||
description: SPIFFE is used to allow or deny access to a role
|
||||
holder to generating a SPIFFE SVID.
|
||||
items:
|
||||
properties:
|
||||
dns_sans:
|
||||
description: 'DNSSANs specifies matchers for the SPIFFE
|
||||
ID DNS SANs. Each requested DNS SAN is compared against
|
||||
all matchers configured and if any match, the condition
|
||||
is considered to be met. The matcher by default allows
|
||||
''*'' to be used to indicate zero or more of any character.
|
||||
Prepend ''^'' and append ''$'' to instead switch to matching
|
||||
using the Go regex syntax. Example: *.example.com would
|
||||
match foo.example.com'
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
ip_sans:
|
||||
description: 'IPSANs specifies matchers for the SPIFFE ID
|
||||
IP SANs. Each requested IP SAN is compared against all
|
||||
matchers configured and if any match, the condition is
|
||||
considered to be met. The matchers should be specified
|
||||
using CIDR notation, it supports IPv4 and IPv6. Examples:
|
||||
- 10.0.0.0/24 would match 10.0.0.0 to 10.255.255.255 -
|
||||
10.0.0.42/32 would match only 10.0.0.42'
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
path:
|
||||
description: 'Path specifies a matcher for the SPIFFE ID
|
||||
path. It should not include the trust domain and should
|
||||
start with a leading slash. The matcher by default allows
|
||||
''*'' to be used to indicate zero or more of any character.
|
||||
Prepend ''^'' and append ''$'' to instead switch to matching
|
||||
using the Go regex syntax. Example: - /svc/foo/*/bar
|
||||
would match /svc/foo/baz/bar - ^\/svc\/foo\/.*\/bar$ would
|
||||
match /svc/foo/baz/bar'
|
||||
type: string
|
||||
type: object
|
||||
nullable: true
|
||||
type: array
|
||||
windows_desktop_labels:
|
||||
additionalProperties:
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
@@ -2160,7 +2424,7 @@ spec:
|
||||
properties:
|
||||
mode:
|
||||
description: Mode is the type of extension to be used --
|
||||
currently critical-option is not supported
|
||||
currently critical-option is not supported. 0 is "extension".
|
||||
x-kubernetes-int-or-string: true
|
||||
name:
|
||||
description: Name specifies the key to be used in the cert
|
||||
@@ -2168,7 +2432,7 @@ spec:
|
||||
type: string
|
||||
type:
|
||||
description: Type represents the certificate type being
|
||||
extended, only ssh is supported at this time.
|
||||
extended, only ssh is supported at this time. 0 is "ssh".
|
||||
x-kubernetes-int-or-string: true
|
||||
value:
|
||||
description: Value specifies the value to be used in the
|
||||
@@ -2193,7 +2457,8 @@ spec:
|
||||
type: boolean
|
||||
create_db_user_mode:
|
||||
description: CreateDatabaseUserMode allows users to be automatically
|
||||
created on a database when not set to off.
|
||||
created on a database when not set to off. 0 is "unspecified",
|
||||
1 is "off", 2 is "keep", 3 is "best_effort_drop".
|
||||
x-kubernetes-int-or-string: true
|
||||
create_desktop_user:
|
||||
description: CreateDesktopUser allows users to be automatically
|
||||
@@ -2205,7 +2470,9 @@ spec:
|
||||
type: boolean
|
||||
create_host_user_mode:
|
||||
description: CreateHostUserMode allows users to be automatically
|
||||
created on a host when not set to off
|
||||
created on a host when not set to off. 0 is "unspecified"; 1
|
||||
is "off"; 2 is "drop" (removed for v15 and above), 3 is "keep";
|
||||
4 is "insecure-drop".
|
||||
x-kubernetes-int-or-string: true
|
||||
desktop_clipboard:
|
||||
description: DesktopClipboard indicates whether clipboard sharing
|
||||
@@ -2316,7 +2583,8 @@ spec:
|
||||
type: string
|
||||
require_session_mfa:
|
||||
description: RequireMFAType is the type of MFA requirement enforced
|
||||
for this user.
|
||||
for this user. 0 is "OFF", 1 is "SESSION", 2 is "SESSION_AND_HARDWARE_KEY",
|
||||
3 is "HARDWARE_KEY_TOUCH", 4 is "HARDWARE_KEY_PIN", 5 is "HARDWARE_KEY_TOUCH_AND_PIN".
|
||||
x-kubernetes-int-or-string: true
|
||||
ssh_file_copy:
|
||||
description: SSHFileCopy indicates whether remote file operations
|
||||
+141
-7
@@ -89,6 +89,28 @@ spec:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
db_permissions:
|
||||
description: DatabasePermissions specifies a set of permissions
|
||||
that will be granted to the database user when using automatic
|
||||
database user provisioning.
|
||||
items:
|
||||
properties:
|
||||
match:
|
||||
additionalProperties:
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
description: Match is a list of object labels that must
|
||||
be matched for the permission to be granted.
|
||||
type: object
|
||||
permissions:
|
||||
description: Permission is the list of string representations
|
||||
of the permission to be given, e.g. SELECT, INSERT, UPDATE,
|
||||
...
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
type: object
|
||||
type: array
|
||||
db_roles:
|
||||
description: DatabaseRoles is a list of databases roles for automatic
|
||||
user creation.
|
||||
@@ -284,7 +306,7 @@ spec:
|
||||
a mechanism to propagate extra information to plugins. Since
|
||||
these annotations support variable interpolation syntax,
|
||||
they also offer a mechanism for forwarding claims from an
|
||||
external identity provider, to a plugin via {{ `{{external.trait_name}}` }}
|
||||
external identity provider, to a plugin via `{{external.trait_name}}`
|
||||
style substitutions.
|
||||
type: object
|
||||
claims_to_roles:
|
||||
@@ -477,6 +499,49 @@ spec:
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
spiffe:
|
||||
description: SPIFFE is used to allow or deny access to a role
|
||||
holder to generating a SPIFFE SVID.
|
||||
items:
|
||||
properties:
|
||||
dns_sans:
|
||||
description: 'DNSSANs specifies matchers for the SPIFFE
|
||||
ID DNS SANs. Each requested DNS SAN is compared against
|
||||
all matchers configured and if any match, the condition
|
||||
is considered to be met. The matcher by default allows
|
||||
''*'' to be used to indicate zero or more of any character.
|
||||
Prepend ''^'' and append ''$'' to instead switch to matching
|
||||
using the Go regex syntax. Example: *.example.com would
|
||||
match foo.example.com'
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
ip_sans:
|
||||
description: 'IPSANs specifies matchers for the SPIFFE ID
|
||||
IP SANs. Each requested IP SAN is compared against all
|
||||
matchers configured and if any match, the condition is
|
||||
considered to be met. The matchers should be specified
|
||||
using CIDR notation, it supports IPv4 and IPv6. Examples:
|
||||
- 10.0.0.0/24 would match 10.0.0.0 to 10.255.255.255 -
|
||||
10.0.0.42/32 would match only 10.0.0.42'
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
path:
|
||||
description: 'Path specifies a matcher for the SPIFFE ID
|
||||
path. It should not include the trust domain and should
|
||||
start with a leading slash. The matcher by default allows
|
||||
''*'' to be used to indicate zero or more of any character.
|
||||
Prepend ''^'' and append ''$'' to instead switch to matching
|
||||
using the Go regex syntax. Example: - /svc/foo/*/bar
|
||||
would match /svc/foo/baz/bar - ^\/svc\/foo\/.*\/bar$ would
|
||||
match /svc/foo/baz/bar'
|
||||
type: string
|
||||
type: object
|
||||
nullable: true
|
||||
type: array
|
||||
windows_desktop_labels:
|
||||
additionalProperties:
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
@@ -550,6 +615,28 @@ spec:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
db_permissions:
|
||||
description: DatabasePermissions specifies a set of permissions
|
||||
that will be granted to the database user when using automatic
|
||||
database user provisioning.
|
||||
items:
|
||||
properties:
|
||||
match:
|
||||
additionalProperties:
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
description: Match is a list of object labels that must
|
||||
be matched for the permission to be granted.
|
||||
type: object
|
||||
permissions:
|
||||
description: Permission is the list of string representations
|
||||
of the permission to be given, e.g. SELECT, INSERT, UPDATE,
|
||||
...
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
type: object
|
||||
type: array
|
||||
db_roles:
|
||||
description: DatabaseRoles is a list of databases roles for automatic
|
||||
user creation.
|
||||
@@ -745,7 +832,7 @@ spec:
|
||||
a mechanism to propagate extra information to plugins. Since
|
||||
these annotations support variable interpolation syntax,
|
||||
they also offer a mechanism for forwarding claims from an
|
||||
external identity provider, to a plugin via {{ `{{external.trait_name}}` }}
|
||||
external identity provider, to a plugin via `{{external.trait_name}}`
|
||||
style substitutions.
|
||||
type: object
|
||||
claims_to_roles:
|
||||
@@ -938,6 +1025,49 @@ spec:
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
spiffe:
|
||||
description: SPIFFE is used to allow or deny access to a role
|
||||
holder to generating a SPIFFE SVID.
|
||||
items:
|
||||
properties:
|
||||
dns_sans:
|
||||
description: 'DNSSANs specifies matchers for the SPIFFE
|
||||
ID DNS SANs. Each requested DNS SAN is compared against
|
||||
all matchers configured and if any match, the condition
|
||||
is considered to be met. The matcher by default allows
|
||||
''*'' to be used to indicate zero or more of any character.
|
||||
Prepend ''^'' and append ''$'' to instead switch to matching
|
||||
using the Go regex syntax. Example: *.example.com would
|
||||
match foo.example.com'
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
ip_sans:
|
||||
description: 'IPSANs specifies matchers for the SPIFFE ID
|
||||
IP SANs. Each requested IP SAN is compared against all
|
||||
matchers configured and if any match, the condition is
|
||||
considered to be met. The matchers should be specified
|
||||
using CIDR notation, it supports IPv4 and IPv6. Examples:
|
||||
- 10.0.0.0/24 would match 10.0.0.0 to 10.255.255.255 -
|
||||
10.0.0.42/32 would match only 10.0.0.42'
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
path:
|
||||
description: 'Path specifies a matcher for the SPIFFE ID
|
||||
path. It should not include the trust domain and should
|
||||
start with a leading slash. The matcher by default allows
|
||||
''*'' to be used to indicate zero or more of any character.
|
||||
Prepend ''^'' and append ''$'' to instead switch to matching
|
||||
using the Go regex syntax. Example: - /svc/foo/*/bar
|
||||
would match /svc/foo/baz/bar - ^\/svc\/foo\/.*\/bar$ would
|
||||
match /svc/foo/baz/bar'
|
||||
type: string
|
||||
type: object
|
||||
nullable: true
|
||||
type: array
|
||||
windows_desktop_labels:
|
||||
additionalProperties:
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
@@ -965,7 +1095,7 @@ spec:
|
||||
properties:
|
||||
mode:
|
||||
description: Mode is the type of extension to be used --
|
||||
currently critical-option is not supported
|
||||
currently critical-option is not supported. 0 is "extension".
|
||||
x-kubernetes-int-or-string: true
|
||||
name:
|
||||
description: Name specifies the key to be used in the cert
|
||||
@@ -973,7 +1103,7 @@ spec:
|
||||
type: string
|
||||
type:
|
||||
description: Type represents the certificate type being
|
||||
extended, only ssh is supported at this time.
|
||||
extended, only ssh is supported at this time. 0 is "ssh".
|
||||
x-kubernetes-int-or-string: true
|
||||
value:
|
||||
description: Value specifies the value to be used in the
|
||||
@@ -998,7 +1128,8 @@ spec:
|
||||
type: boolean
|
||||
create_db_user_mode:
|
||||
description: CreateDatabaseUserMode allows users to be automatically
|
||||
created on a database when not set to off.
|
||||
created on a database when not set to off. 0 is "unspecified",
|
||||
1 is "off", 2 is "keep", 3 is "best_effort_drop".
|
||||
x-kubernetes-int-or-string: true
|
||||
create_desktop_user:
|
||||
description: CreateDesktopUser allows users to be automatically
|
||||
@@ -1010,7 +1141,9 @@ spec:
|
||||
type: boolean
|
||||
create_host_user_mode:
|
||||
description: CreateHostUserMode allows users to be automatically
|
||||
created on a host when not set to off
|
||||
created on a host when not set to off. 0 is "unspecified"; 1
|
||||
is "off"; 2 is "drop" (removed for v15 and above), 3 is "keep";
|
||||
4 is "insecure-drop".
|
||||
x-kubernetes-int-or-string: true
|
||||
desktop_clipboard:
|
||||
description: DesktopClipboard indicates whether clipboard sharing
|
||||
@@ -1121,7 +1254,8 @@ spec:
|
||||
type: string
|
||||
require_session_mfa:
|
||||
description: RequireMFAType is the type of MFA requirement enforced
|
||||
for this user.
|
||||
for this user. 0 is "OFF", 1 is "SESSION", 2 is "SESSION_AND_HARDWARE_KEY",
|
||||
3 is "HARDWARE_KEY_TOUCH", 4 is "HARDWARE_KEY_PIN", 5 is "HARDWARE_KEY_TOUCH_AND_PIN".
|
||||
x-kubernetes-int-or-string: true
|
||||
ssh_file_copy:
|
||||
description: SSHFileCopy indicates whether remote file operations
|
||||
+141
-7
@@ -89,6 +89,28 @@ spec:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
db_permissions:
|
||||
description: DatabasePermissions specifies a set of permissions
|
||||
that will be granted to the database user when using automatic
|
||||
database user provisioning.
|
||||
items:
|
||||
properties:
|
||||
match:
|
||||
additionalProperties:
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
description: Match is a list of object labels that must
|
||||
be matched for the permission to be granted.
|
||||
type: object
|
||||
permissions:
|
||||
description: Permission is the list of string representations
|
||||
of the permission to be given, e.g. SELECT, INSERT, UPDATE,
|
||||
...
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
type: object
|
||||
type: array
|
||||
db_roles:
|
||||
description: DatabaseRoles is a list of databases roles for automatic
|
||||
user creation.
|
||||
@@ -284,7 +306,7 @@ spec:
|
||||
a mechanism to propagate extra information to plugins. Since
|
||||
these annotations support variable interpolation syntax,
|
||||
they also offer a mechanism for forwarding claims from an
|
||||
external identity provider, to a plugin via {{ `{{external.trait_name}}` }}
|
||||
external identity provider, to a plugin via `{{external.trait_name}}`
|
||||
style substitutions.
|
||||
type: object
|
||||
claims_to_roles:
|
||||
@@ -477,6 +499,49 @@ spec:
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
spiffe:
|
||||
description: SPIFFE is used to allow or deny access to a role
|
||||
holder to generating a SPIFFE SVID.
|
||||
items:
|
||||
properties:
|
||||
dns_sans:
|
||||
description: 'DNSSANs specifies matchers for the SPIFFE
|
||||
ID DNS SANs. Each requested DNS SAN is compared against
|
||||
all matchers configured and if any match, the condition
|
||||
is considered to be met. The matcher by default allows
|
||||
''*'' to be used to indicate zero or more of any character.
|
||||
Prepend ''^'' and append ''$'' to instead switch to matching
|
||||
using the Go regex syntax. Example: *.example.com would
|
||||
match foo.example.com'
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
ip_sans:
|
||||
description: 'IPSANs specifies matchers for the SPIFFE ID
|
||||
IP SANs. Each requested IP SAN is compared against all
|
||||
matchers configured and if any match, the condition is
|
||||
considered to be met. The matchers should be specified
|
||||
using CIDR notation, it supports IPv4 and IPv6. Examples:
|
||||
- 10.0.0.0/24 would match 10.0.0.0 to 10.255.255.255 -
|
||||
10.0.0.42/32 would match only 10.0.0.42'
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
path:
|
||||
description: 'Path specifies a matcher for the SPIFFE ID
|
||||
path. It should not include the trust domain and should
|
||||
start with a leading slash. The matcher by default allows
|
||||
''*'' to be used to indicate zero or more of any character.
|
||||
Prepend ''^'' and append ''$'' to instead switch to matching
|
||||
using the Go regex syntax. Example: - /svc/foo/*/bar
|
||||
would match /svc/foo/baz/bar - ^\/svc\/foo\/.*\/bar$ would
|
||||
match /svc/foo/baz/bar'
|
||||
type: string
|
||||
type: object
|
||||
nullable: true
|
||||
type: array
|
||||
windows_desktop_labels:
|
||||
additionalProperties:
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
@@ -550,6 +615,28 @@ spec:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
db_permissions:
|
||||
description: DatabasePermissions specifies a set of permissions
|
||||
that will be granted to the database user when using automatic
|
||||
database user provisioning.
|
||||
items:
|
||||
properties:
|
||||
match:
|
||||
additionalProperties:
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
description: Match is a list of object labels that must
|
||||
be matched for the permission to be granted.
|
||||
type: object
|
||||
permissions:
|
||||
description: Permission is the list of string representations
|
||||
of the permission to be given, e.g. SELECT, INSERT, UPDATE,
|
||||
...
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
type: object
|
||||
type: array
|
||||
db_roles:
|
||||
description: DatabaseRoles is a list of databases roles for automatic
|
||||
user creation.
|
||||
@@ -745,7 +832,7 @@ spec:
|
||||
a mechanism to propagate extra information to plugins. Since
|
||||
these annotations support variable interpolation syntax,
|
||||
they also offer a mechanism for forwarding claims from an
|
||||
external identity provider, to a plugin via {{ `{{external.trait_name}}` }}
|
||||
external identity provider, to a plugin via `{{external.trait_name}}`
|
||||
style substitutions.
|
||||
type: object
|
||||
claims_to_roles:
|
||||
@@ -938,6 +1025,49 @@ spec:
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
spiffe:
|
||||
description: SPIFFE is used to allow or deny access to a role
|
||||
holder to generating a SPIFFE SVID.
|
||||
items:
|
||||
properties:
|
||||
dns_sans:
|
||||
description: 'DNSSANs specifies matchers for the SPIFFE
|
||||
ID DNS SANs. Each requested DNS SAN is compared against
|
||||
all matchers configured and if any match, the condition
|
||||
is considered to be met. The matcher by default allows
|
||||
''*'' to be used to indicate zero or more of any character.
|
||||
Prepend ''^'' and append ''$'' to instead switch to matching
|
||||
using the Go regex syntax. Example: *.example.com would
|
||||
match foo.example.com'
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
ip_sans:
|
||||
description: 'IPSANs specifies matchers for the SPIFFE ID
|
||||
IP SANs. Each requested IP SAN is compared against all
|
||||
matchers configured and if any match, the condition is
|
||||
considered to be met. The matchers should be specified
|
||||
using CIDR notation, it supports IPv4 and IPv6. Examples:
|
||||
- 10.0.0.0/24 would match 10.0.0.0 to 10.255.255.255 -
|
||||
10.0.0.42/32 would match only 10.0.0.42'
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
path:
|
||||
description: 'Path specifies a matcher for the SPIFFE ID
|
||||
path. It should not include the trust domain and should
|
||||
start with a leading slash. The matcher by default allows
|
||||
''*'' to be used to indicate zero or more of any character.
|
||||
Prepend ''^'' and append ''$'' to instead switch to matching
|
||||
using the Go regex syntax. Example: - /svc/foo/*/bar
|
||||
would match /svc/foo/baz/bar - ^\/svc\/foo\/.*\/bar$ would
|
||||
match /svc/foo/baz/bar'
|
||||
type: string
|
||||
type: object
|
||||
nullable: true
|
||||
type: array
|
||||
windows_desktop_labels:
|
||||
additionalProperties:
|
||||
x-kubernetes-preserve-unknown-fields: true
|
||||
@@ -965,7 +1095,7 @@ spec:
|
||||
properties:
|
||||
mode:
|
||||
description: Mode is the type of extension to be used --
|
||||
currently critical-option is not supported
|
||||
currently critical-option is not supported. 0 is "extension".
|
||||
x-kubernetes-int-or-string: true
|
||||
name:
|
||||
description: Name specifies the key to be used in the cert
|
||||
@@ -973,7 +1103,7 @@ spec:
|
||||
type: string
|
||||
type:
|
||||
description: Type represents the certificate type being
|
||||
extended, only ssh is supported at this time.
|
||||
extended, only ssh is supported at this time. 0 is "ssh".
|
||||
x-kubernetes-int-or-string: true
|
||||
value:
|
||||
description: Value specifies the value to be used in the
|
||||
@@ -998,7 +1128,8 @@ spec:
|
||||
type: boolean
|
||||
create_db_user_mode:
|
||||
description: CreateDatabaseUserMode allows users to be automatically
|
||||
created on a database when not set to off.
|
||||
created on a database when not set to off. 0 is "unspecified",
|
||||
1 is "off", 2 is "keep", 3 is "best_effort_drop".
|
||||
x-kubernetes-int-or-string: true
|
||||
create_desktop_user:
|
||||
description: CreateDesktopUser allows users to be automatically
|
||||
@@ -1010,7 +1141,9 @@ spec:
|
||||
type: boolean
|
||||
create_host_user_mode:
|
||||
description: CreateHostUserMode allows users to be automatically
|
||||
created on a host when not set to off
|
||||
created on a host when not set to off. 0 is "unspecified"; 1
|
||||
is "off"; 2 is "drop" (removed for v15 and above), 3 is "keep";
|
||||
4 is "insecure-drop".
|
||||
x-kubernetes-int-or-string: true
|
||||
desktop_clipboard:
|
||||
description: DesktopClipboard indicates whether clipboard sharing
|
||||
@@ -1121,7 +1254,8 @@ spec:
|
||||
type: string
|
||||
require_session_mfa:
|
||||
description: RequireMFAType is the type of MFA requirement enforced
|
||||
for this user.
|
||||
for this user. 0 is "OFF", 1 is "SESSION", 2 is "SESSION_AND_HARDWARE_KEY",
|
||||
3 is "HARDWARE_KEY_TOUCH", 4 is "HARDWARE_KEY_PIN", 5 is "HARDWARE_KEY_TOUCH_AND_PIN".
|
||||
x-kubernetes-int-or-string: true
|
||||
ssh_file_copy:
|
||||
description: SSHFileCopy indicates whether remote file operations
|
||||
+14
@@ -82,6 +82,20 @@ spec:
|
||||
description: Cert is the identity provider certificate PEM. IDP signs
|
||||
<Response> responses using this certificate.
|
||||
type: string
|
||||
client_redirect_settings:
|
||||
description: ClientRedirectSettings defines which client redirect
|
||||
URLs are allowed for non-browser SSO logins other than the standard
|
||||
localhost ones.
|
||||
nullable: true
|
||||
properties:
|
||||
allowed_https_hostnames:
|
||||
description: a list of hostnames allowed for https client redirect
|
||||
URLs
|
||||
items:
|
||||
type: string
|
||||
nullable: true
|
||||
type: array
|
||||
type: object
|
||||
display:
|
||||
description: Display controls how this connector is displayed.
|
||||
type: string
|
||||
+10
-1
@@ -15,7 +15,16 @@ spec:
|
||||
singular: teleportuser
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- name: v2
|
||||
- additionalPrinterColumns:
|
||||
- description: List of Teleport roles granted to the user.
|
||||
jsonPath: .spec.roles
|
||||
name: Roles
|
||||
type: string
|
||||
- description: The age of this resource
|
||||
jsonPath: .metadata.creationTimestamp
|
||||
name: Age
|
||||
type: date
|
||||
name: v2
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: User is the Schema for the users API
|
||||
@@ -57,6 +57,7 @@ helm.sh/chart: '{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}'
|
||||
app.kubernetes.io/managed-by: '{{ .Release.Service }}'
|
||||
app.kubernetes.io/version: '{{ include "teleport-cluster.version" . }}'
|
||||
teleport.dev/majorVersion: '{{ include "teleport-cluster.majorVersion" . }}'
|
||||
teleport.dev/release: '{{ include "teleport-cluster.operator.namespacedRelease" . }}'
|
||||
{{- end -}}
|
||||
|
||||
{{/* Teleport auth or proxy address */}}
|
||||
@@ -75,3 +76,56 @@ teleport.dev/majorVersion: '{{ include "teleport-cluster.majorVersion" . }}'
|
||||
{{- /* This template is a placeholder.
|
||||
If we are imported by the main chart "teleport-cluster" it is overridden*/ -}}
|
||||
{{- define "teleport-cluster.auth.serviceFQDN" -}}{{- end }}
|
||||
|
||||
{{- /* This templates returns "true" or "false" describing if the CRDs should be deployed.
|
||||
If we have an explicit requirement ("always" or "never") things are easy.
|
||||
If we don't we check if the operator is enabled.
|
||||
However, we cannot just trash the CRDs if the operator is disabled, this causes
|
||||
a mass CR deletion and users will shoot themselves in the foot whith this
|
||||
(temporarily disabling the operator would cause havoc).
|
||||
So we check if there's a CRD already deployed, it that's the case, we keep the CRDs.
|
||||
*/ -}}
|
||||
{{- define "teleport-cluster.operator.shouldInstallCRDs" -}}
|
||||
{{- if eq .Values.installCRDs "always" -}}
|
||||
true
|
||||
{{- else if eq .Values.installCRDs "never" -}}
|
||||
false
|
||||
{{- else if eq .Values.installCRDs "dynamic" -}}
|
||||
{{- if .Values.enabled -}}
|
||||
true
|
||||
{{- else -}}
|
||||
{{- include "teleport-cluster.operator.checkExistingCRDs" . -}}
|
||||
{{- end -}}
|
||||
{{- else -}}
|
||||
{{- fail ".Values.installCRDs must be 'never', 'always' or 'dynamic'." -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- /* This template checks if a known CRD is depployed (rolev7) and owned by
|
||||
the release. As CRDs are not namespaced, we must use a custom annotation to avoid
|
||||
a conflict when two releases are deployed with the same name in different namespaces. */ -}}
|
||||
{{- define "teleport-cluster.operator.checkExistingCRDs" -}}
|
||||
{{ $existingCRD := lookup "apiextensions.k8s.io/v1" "CustomResourceDefinition" "" "teleportrolesv7.resources.teleport.dev"}}
|
||||
{{- if not $existingCRD -}}
|
||||
false
|
||||
{{- else -}}
|
||||
{{- $release := index $existingCRD.metadata.labels "teleport.dev/release" }}
|
||||
{{- if eq $release (include "teleport-cluster.operator.namespacedRelease" .) -}}
|
||||
true
|
||||
{{- else -}}
|
||||
false
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- /* This is a custom label containing the namespaced release.
|
||||
This is used to avoid conflicts for non-namespaced resources like CRDs. */ -}}
|
||||
{{- define "teleport-cluster.operator.namespacedRelease" -}}
|
||||
{{ .Release.Namespace }}_{{ .Release.Name }}
|
||||
{{- end -}}
|
||||
|
||||
{{- /* This is the object merged with CRDs manifests to enrich them (add labels). */ -}}
|
||||
{{- define "teleport-cluster.operator.crdOverrides" -}}
|
||||
metadata:
|
||||
labels: {{- include "teleport-cluster.operator.labels" . | nindent 4 }}
|
||||
{{- end -}}
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
{{- /* This template iterates over every CRD in the `operator-crds/` directory
|
||||
and creates them if needed. It also adds common labels, like any other
|
||||
Helm-deployed resource.
|
||||
|
||||
We cannot rely on the "crds/" Helm directory as Helm's startegy is "fire and forget".
|
||||
We have no way to update the CRDs after the initial deployment. As Teleport keeps
|
||||
adding new field to existing CRs, we need a deployment strategy that supports
|
||||
updating CRDs.
|
||||
|
||||
The obvious solution would be to have a separate chart for CRs but we wanted to
|
||||
have everything functional in a single "helm install", hence the rube goldberg
|
||||
mechanism to try to guess what to do with the CRDs (see the implementation of
|
||||
shouldInstallCRDs in _helpers.yaml for more details). */ -}}
|
||||
{{- if eq (include "teleport-cluster.operator.shouldInstallCRDs" . ) "true" -}}
|
||||
{{ $currentScope := .}}
|
||||
{{ range $path, $_ := .Files.Glob "operator-crds/*" }}
|
||||
{{- with $currentScope}}
|
||||
{{- $crd := (.Files.Get $path | fromYaml) -}}
|
||||
{{- $injectedCRD := mustMergeOverwrite $crd (include "teleport-cluster.operator.crdOverrides" $currentScope | fromYaml) -}}
|
||||
{{- toYaml $injectedCRD -}}
|
||||
{{- end }}
|
||||
---
|
||||
{{ end }}
|
||||
{{- end -}}
|
||||
@@ -31,6 +31,10 @@ rules:
|
||||
- teleportoktaimportrules/status
|
||||
- teleportaccesslists
|
||||
- teleportaccesslists/status
|
||||
- teleportopensshserversv2
|
||||
- teleportopensshserversv2/status
|
||||
- teleportopenssheiceserversv2
|
||||
- teleportopenssheiceserversv2/status
|
||||
verbs:
|
||||
- get
|
||||
- list
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
suite: Operator CRDs
|
||||
templates:
|
||||
- crds.yaml
|
||||
tests:
|
||||
- it: creates no CRDs when installCRDs is "never"
|
||||
set:
|
||||
installCRDs: "never"
|
||||
enabled: true
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 0
|
||||
- it: creates CRDs when installCRDs is "always"
|
||||
set:
|
||||
installCRDs: "always"
|
||||
enabled: false
|
||||
asserts:
|
||||
- containsDocument:
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
name: teleportrolesv7.resources.teleport.dev
|
||||
- it: labels CRDs
|
||||
set:
|
||||
installCRDs: "always"
|
||||
enabled: false
|
||||
asserts:
|
||||
- equal:
|
||||
path: metadata.labels.[teleport.dev/release]
|
||||
value: NAMESPACE_RELEASE-NAME
|
||||
- it: creates CRDs when installCRDs is "dynamic" and operator enabled
|
||||
set:
|
||||
installCRDs: "dynamic"
|
||||
enabled: true
|
||||
asserts:
|
||||
- containsDocument:
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
name: teleportrolesv7.resources.teleport.dev
|
||||
- it: creates no CRDs when installCRDs is "dynamic" and operator disabled (and no existing CRD)
|
||||
set:
|
||||
installCRDs: "dynamic"
|
||||
enabled: false
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 0
|
||||
@@ -4,6 +4,18 @@
|
||||
# - When `false`, the chart creates the `CustomResourceDefinition` resources without the operator `Deployment`.
|
||||
enabled: true
|
||||
|
||||
# installCRDs(string) -- controls if the chart should install the CRDs.
|
||||
# There are 3 possible values: dynamic, always, never.
|
||||
#
|
||||
# - "dynamic" means the CRDs are installed if the operator is enabled or if
|
||||
# the CRDs are already present in the cluster. The presence check is here to
|
||||
# avoid all CRDs to be removed if you temporarily disable the operator.
|
||||
# Removing CRDs triggers a cascading deletion, which removes CRs, and all the
|
||||
# related resources in Teleport.
|
||||
# - "always" means the CRDs are always installed
|
||||
# - "never" means the CRDs are never installed
|
||||
installCRDs: "dynamic"
|
||||
|
||||
# teleportAddress(string) -- is the address of the Teleport cluster whose resources
|
||||
# are managed by the operator. The address must contain both the domain name and
|
||||
# the port of the Teleport cluster. It can be either the address of the Auth Service
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
{{- define "teleport-cluster.auth.config.aws" -}}
|
||||
{{ include "teleport-cluster.auth.config.common" . }}
|
||||
{{ mustMergeOverwrite (include "teleport-cluster.auth.config.common" . | fromYaml) (include "teleport-cluster.auth.config.aws.overrides" . | fromYaml) | toYaml }}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "teleport-cluster.auth.config.aws.overrides" -}}
|
||||
teleport:
|
||||
storage:
|
||||
type: dynamodb
|
||||
region: {{ required "aws.region is required in chart values" .Values.aws.region }}
|
||||
table_name: {{ required "aws.backendTable is required in chart values" .Values.aws.backendTable }}
|
||||
{{- if .Values.aws.auditLogMirrorOnStdout }}
|
||||
audit_events_uri: ['dynamodb://{{ required "aws.auditLogTable is required in chart values" .Values.aws.auditLogTable }}', 'stdout://']
|
||||
{{- else }}
|
||||
audit_events_uri: ['dynamodb://{{ required "aws.auditLogTable is required in chart values" .Values.aws.auditLogTable }}']
|
||||
{{- end }}
|
||||
audit_events_uri: {{- include "teleport-cluster.auth.config.aws.audit" . | nindent 4 }}
|
||||
audit_sessions_uri: s3://{{ required "aws.sessionRecordingBucket is required in chart values" .Values.aws.sessionRecordingBucket }}
|
||||
continuous_backups: {{ required "aws.backups is required in chart values" .Values.aws.backups }}
|
||||
{{- if .Values.aws.dynamoAutoScaling }}
|
||||
{{- if .Values.aws.dynamoAutoScaling }}
|
||||
auto_scaling: true
|
||||
billing_mode: provisioned
|
||||
read_min_capacity: {{ required "aws.readMinCapacity is required when aws.dynamoAutoScaling is true" .Values.aws.readMinCapacity }}
|
||||
@@ -20,7 +20,41 @@
|
||||
write_min_capacity: {{ required "aws.writeMinCapacity is required when aws.dynamoAutoScaling is true" .Values.aws.writeMinCapacity }}
|
||||
write_max_capacity: {{ required "aws.writeMaxCapacity is required when aws.dynamoAutoScaling is true" .Values.aws.writeMaxCapacity }}
|
||||
write_target_value: {{ required "aws.writeTargetValue is required when aws.dynamoAutoScaling is true" .Values.aws.writeTargetValue }}
|
||||
{{- else }}
|
||||
{{- else }}
|
||||
auto_scaling: false
|
||||
{{- end }}
|
||||
{{- if .Values.aws.accessMonitoring.enabled }}
|
||||
{{- if not .Values.aws.athenaURL }}
|
||||
{{- fail "AccessMonitoring requires an Athena Event backend" }}
|
||||
{{- end }}
|
||||
auth_service:
|
||||
access_monitoring:
|
||||
enabled: true
|
||||
report_results: {{ .Values.aws.accessMonitoring.reportResults | quote }}
|
||||
role_arn: {{ .Values.aws.accessMonitoring.roleARN | quote }}
|
||||
workgroup: {{ .Values.aws.accessMonitoring.workgroup | quote }}
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "teleport-cluster.auth.config.aws.audit" -}}
|
||||
{{- if and .Values.aws.auditLogTable (not .Values.aws.athenaURL) -}}
|
||||
- 'dynamodb://{{.Values.aws.auditLogTable}}'
|
||||
{{- else if and (not .Values.aws.auditLogTable) .Values.aws.athenaURL -}}
|
||||
- {{ .Values.aws.athenaURL | quote }}
|
||||
{{- else if and .Values.aws.auditLogTable .Values.aws.athenaURL -}}
|
||||
{{- if eq .Values.aws.auditLogPrimaryBackend "dynamo" -}}
|
||||
- 'dynamodb://{{.Values.aws.auditLogTable}}'
|
||||
- {{ .Values.aws.athenaURL | quote }}
|
||||
{{- else if eq .Values.aws.auditLogPrimaryBackend "athena" -}}
|
||||
- {{ .Values.aws.athenaURL | quote }}
|
||||
- 'dynamodb://{{.Values.aws.auditLogTable}}'
|
||||
{{- else -}}
|
||||
{{- fail "Both Dynamo and Athena audit backends are enabled. You must specify the primary backend by setting `aws.auditLogPrimaryBackend` to either 'dynamo' or 'athena'." -}}
|
||||
{{- end -}}
|
||||
{{- else -}}
|
||||
{{- fail "You need an audit backend. In AWS mode, you must set at least one of `aws.auditLogTable` (Dynamo) and `aws.athenaURL` (Athena)." -}}
|
||||
{{- end -}}
|
||||
{{- if .Values.aws.auditLogMirrorOnStdout }}
|
||||
- 'stdout://'
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
@@ -49,7 +49,7 @@ auth_service:
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if .Values.sessionRecording }}
|
||||
session_recording: {{ .Values.sessionRecording }}
|
||||
session_recording: {{ .Values.sessionRecording | squote }}
|
||||
{{- end }}
|
||||
{{- if .Values.proxyListenerMode }}
|
||||
proxy_listener_mode: {{ .Values.proxyListenerMode }}
|
||||
|
||||
@@ -1,8 +1,14 @@
|
||||
{{- if .Values.rbac.create -}}
|
||||
{{- $auth := mustMergeOverwrite (mustDeepCopy .Values) .Values.auth -}}
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRole
|
||||
metadata:
|
||||
name: {{ .Release.Name }}
|
||||
labels:
|
||||
{{- include "teleport-cluster.auth.labels" . | nindent 4 }}
|
||||
{{- if $auth.extraLabels.clusterRole }}
|
||||
{{- toYaml $auth.extraLabels.clusterRole | nindent 4 }}
|
||||
{{- end }}
|
||||
rules:
|
||||
- apiGroups:
|
||||
- ""
|
||||
|
||||
@@ -1,9 +1,14 @@
|
||||
{{- if .Values.rbac.create -}}
|
||||
{{- $auth := mustMergeOverwrite (mustDeepCopy .Values) .Values.auth -}}
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: {{ .Release.Namespace }}-{{ .Release.Name }}
|
||||
labels: {{- include "teleport-cluster.auth.labels" . | nindent 4 }}
|
||||
labels:
|
||||
{{- include "teleport-cluster.auth.labels" . | nindent 4 }}
|
||||
{{- if $auth.extraLabels.clusterRoleBinding }}
|
||||
{{- toYaml $auth.extraLabels.clusterRoleBinding | nindent 4 }}
|
||||
{{- end }}
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: ClusterRole
|
||||
@@ -19,7 +24,11 @@ apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: {{ .Release.Namespace}}-{{ .Release.Name }}-auth
|
||||
labels: {{- include "teleport-cluster.auth.labels" . | nindent 4 }}
|
||||
labels:
|
||||
{{- include "teleport-cluster.auth.labels" . | nindent 4 }}
|
||||
{{- if $auth.extraLabels.clusterRoleBinding }}
|
||||
{{- toYaml $auth.extraLabels.clusterRoleBinding | nindent 4 }}
|
||||
{{- end }}
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: ClusterRole
|
||||
|
||||
@@ -5,7 +5,11 @@ kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ .Release.Name }}-auth
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels: {{- include "teleport-cluster.auth.labels" . | nindent 4 }}
|
||||
labels:
|
||||
{{- include "teleport-cluster.auth.labels" . | nindent 4 }}
|
||||
{{- if $auth.extraLabels.config }}
|
||||
{{- toYaml $auth.extraLabels.config | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- if $auth.annotations.config }}
|
||||
annotations: {{- toYaml $auth.annotations.config | nindent 4 }}
|
||||
{{- end }}
|
||||
@@ -119,6 +123,14 @@ data:
|
||||
- read
|
||||
- update
|
||||
- delete
|
||||
- resources:
|
||||
- node
|
||||
verbs:
|
||||
- list
|
||||
- create
|
||||
- read
|
||||
- update
|
||||
- delete
|
||||
deny: {}
|
||||
version: v7
|
||||
---
|
||||
|
||||
@@ -9,6 +9,9 @@ metadata:
|
||||
labels:
|
||||
{{- include "teleport-cluster.auth.labels" . | nindent 4 }}
|
||||
app: {{ .Release.Name }}
|
||||
{{- if $auth.extraLabels.deployment }}
|
||||
{{- toYaml $auth.extraLabels.deployment | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- if $auth.annotations.deployment }}
|
||||
annotations: {{- toYaml $auth.annotations.deployment | nindent 4 }}
|
||||
{{- end }}
|
||||
@@ -43,6 +46,9 @@ spec:
|
||||
labels:
|
||||
{{- include "teleport-cluster.auth.labels" . | nindent 8 }}
|
||||
app: {{ .Release.Name }}
|
||||
{{- if $auth.extraLabels.pod }}
|
||||
{{- toYaml $auth.extraLabels.pod | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- if eq $auth.chartMode "azure"}}
|
||||
azure.workload.identity/use: "true"
|
||||
{{- end }}
|
||||
@@ -287,6 +293,9 @@ spec:
|
||||
{{- end }}
|
||||
{{- if $auth.priorityClassName }}
|
||||
priorityClassName: {{ $auth.priorityClassName }}
|
||||
{{- end }}
|
||||
{{- if $auth.podSecurityContext }}
|
||||
securityContext: {{- toYaml $auth.podSecurityContext | nindent 8 }}
|
||||
{{- end }}
|
||||
serviceAccountName: {{ include "teleport-cluster.auth.serviceAccountName" . }}
|
||||
terminationGracePeriodSeconds: {{ $auth.terminationGracePeriodSeconds }}
|
||||
|
||||
@@ -9,7 +9,11 @@ kind: PodDisruptionBudget
|
||||
metadata:
|
||||
name: {{ .Release.Name }}-auth
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels: {{- include "teleport-cluster.auth.labels" . | nindent 4 }}
|
||||
labels:
|
||||
{{- include "teleport-cluster.auth.labels" . | nindent 4 }}
|
||||
{{- if $auth.extraLabels.podDisruptionBudget }}
|
||||
{{- toYaml $auth.extraLabels.podDisruptionBudget | nindent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
minAvailable: {{ $auth.highAvailability.podDisruptionBudget.minAvailable }}
|
||||
selector:
|
||||
|
||||
@@ -6,7 +6,11 @@ kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ .Release.Name }}-auth-test
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels: {{- include "teleport-cluster.labels" . | nindent 4 }}
|
||||
labels:
|
||||
{{- include "teleport-cluster.auth.labels" . | nindent 4 }}
|
||||
{{- if $auth.extraLabels.config }}
|
||||
{{- toYaml $auth.extraLabels.config | nindent 4 }}
|
||||
{{- end }}
|
||||
annotations:
|
||||
"helm.sh/hook": pre-install,pre-upgrade
|
||||
"helm.sh/hook-weight": "4"
|
||||
|
||||
@@ -5,7 +5,11 @@ kind: Job
|
||||
metadata:
|
||||
name: {{ .Release.Name }}-auth-test
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels: {{- include "teleport-cluster.labels" . | nindent 4 }}
|
||||
labels:
|
||||
{{- include "teleport-cluster.labels" . | nindent 4 }}
|
||||
{{- if $auth.extraLabels.job }}
|
||||
{{- toYaml $auth.extraLabels.job | nindent 4 }}
|
||||
{{- end }}
|
||||
annotations:
|
||||
"helm.sh/hook": pre-install,pre-upgrade
|
||||
"helm.sh/hook-weight": "5"
|
||||
|
||||
@@ -9,7 +9,11 @@ kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: {{ .Release.Name }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels: {{- include "teleport-cluster.auth.labels" . | nindent 4 }}
|
||||
labels:
|
||||
{{- include "teleport-cluster.auth.labels" . | nindent 4 }}
|
||||
{{- if $auth.extraLabels.persistentVolumeClaim }}
|
||||
{{- toYaml $auth.extraLabels.persistentVolumeClaim | nindent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
|
||||
@@ -1,9 +1,14 @@
|
||||
{{- $auth := mustMergeOverwrite (mustDeepCopy .Values) .Values.auth -}}
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ include "teleport-cluster.auth.previousVersionServiceName" . }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels: {{- include "teleport-cluster.auth.labels" . | nindent 4 }}
|
||||
labels:
|
||||
{{- include "teleport-cluster.auth.labels" . | nindent 4 }}
|
||||
{{- if $auth.extraLabels.service }}
|
||||
{{- toYaml $auth.extraLabels.service | nindent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
# This is a headless service. Resolving it will return the list of all auth pods running the previous major version
|
||||
# Proxies should not connect to auth pods from the previous major version
|
||||
@@ -20,7 +25,11 @@ kind: Service
|
||||
metadata:
|
||||
name: {{ include "teleport-cluster.auth.currentVersionServiceName" . }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels: {{- include "teleport-cluster.auth.labels" . | nindent 4 }}
|
||||
labels:
|
||||
{{- include "teleport-cluster.auth.labels" . | nindent 4 }}
|
||||
{{- if $auth.extraLabels.service }}
|
||||
{{- toYaml $auth.extraLabels.service | nindent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
# This is a headless service. Resolving it will return the list of all auth pods running the current major version
|
||||
clusterIP: "None"
|
||||
|
||||
@@ -4,7 +4,11 @@ kind: Service
|
||||
metadata:
|
||||
name: {{ include "teleport-cluster.auth.serviceName" . }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels: {{- include "teleport-cluster.auth.labels" . | nindent 4 }}
|
||||
labels:
|
||||
{{- include "teleport-cluster.auth.labels" . | nindent 4 }}
|
||||
{{- if $auth.extraLabels.service }}
|
||||
{{- toYaml $auth.extraLabels.service | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- if $auth.annotations.service }}
|
||||
annotations: {{- toYaml $auth.annotations.service | nindent 4 }}
|
||||
{{- end }}
|
||||
|
||||
@@ -5,6 +5,11 @@ kind: ServiceAccount
|
||||
metadata:
|
||||
name: {{ template "teleport-cluster.auth.serviceAccountName" . }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
{{- include "teleport-cluster.auth.labels" . | nindent 4 }}
|
||||
{{- if $auth.extraLabels.serviceAccount }}
|
||||
{{- toYaml $auth.extraLabels.serviceAccount | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- if or $auth.annotations.serviceAccount $auth.azure.clientID }}
|
||||
annotations:
|
||||
{{- if $auth.annotations.serviceAccount }}
|
||||
|
||||
@@ -22,7 +22,8 @@ kind: Certificate
|
||||
metadata:
|
||||
name: {{ .Release.Name }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels: {{- include "teleport-cluster.proxy.labels" . | nindent 4 }}
|
||||
labels:
|
||||
{{- include "teleport-cluster.proxy.labels" . | nindent 4 }}
|
||||
spec:
|
||||
secretName: teleport-tls
|
||||
{{- if $proxy.highAvailability.certManager.addCommonName }}
|
||||
@@ -36,8 +37,13 @@ spec:
|
||||
name: {{ required "highAvailability.certManager.issuerName is required in chart values" $proxy.highAvailability.certManager.issuerName }}
|
||||
kind: {{ required "highAvailability.certManager.issuerKind is required in chart values" $proxy.highAvailability.certManager.issuerKind }}
|
||||
group: {{ required "highAvailability.certManager.issuerGroup is required in chart values" $proxy.highAvailability.certManager.issuerGroup }}
|
||||
{{- with $proxy.annotations.certSecret }}
|
||||
{{- if or $proxy.annotations.certSecret $proxy.extraLabels.certSecret }}
|
||||
secretTemplate:
|
||||
{{- with $proxy.annotations.certSecret }}
|
||||
annotations: {{- toYaml . | nindent 6 }}
|
||||
{{- end }}
|
||||
{{- with $proxy.extraLabels.certSecret }}
|
||||
labels: {{- toYaml . | nindent 6 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
@@ -8,6 +8,11 @@ kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ .Release.Name }}-proxy
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
{{- include "teleport-cluster.proxy.labels" . | nindent 4 }}
|
||||
{{- if $proxy.extraLabels.config }}
|
||||
{{- toYaml $proxy.extraLabels.config | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- if $proxy.annotations.config }}
|
||||
annotations: {{- toYaml $proxy.annotations.config | nindent 4 }}
|
||||
{{- end }}
|
||||
|
||||
@@ -13,7 +13,11 @@ kind: Deployment
|
||||
metadata:
|
||||
name: {{ .Release.Name }}-proxy
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels: {{- include "teleport-cluster.proxy.labels" . | nindent 4 }}
|
||||
labels:
|
||||
{{- include "teleport-cluster.proxy.labels" . | nindent 4 }}
|
||||
{{- if $proxy.extraLabels.deployment }}
|
||||
{{- toYaml $proxy.extraLabels.deployment | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- if $proxy.annotations.deployment }}
|
||||
annotations: {{- toYaml $proxy.annotations.deployment | nindent 4 }}
|
||||
{{- end }}
|
||||
@@ -49,7 +53,11 @@ spec:
|
||||
{{- if $proxy.annotations.pod }}
|
||||
{{- toYaml $proxy.annotations.pod | nindent 8 }}
|
||||
{{- end }}
|
||||
labels: {{- include "teleport-cluster.proxy.labels" . | nindent 8 }}
|
||||
labels:
|
||||
{{- include "teleport-cluster.proxy.labels" . | nindent 8 }}
|
||||
{{- if $proxy.extraLabels.pod }}
|
||||
{{- toYaml $proxy.extraLabels.pod | nindent 8 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
{{- if $proxy.nodeSelector }}
|
||||
nodeSelector: {{- toYaml $proxy.nodeSelector | nindent 8 }}
|
||||
@@ -109,6 +117,17 @@ spec:
|
||||
- wait
|
||||
- no-resolve
|
||||
- '{{ include "teleport-cluster.auth.previousVersionServiceName" . }}.{{ .Release.Namespace }}.svc.cluster.local'
|
||||
# propagating through the limits from the main resources section would double the requested amounts
|
||||
# and may prevent scheduling on the cluster. as such, we hardcode small limits for this tiny container.
|
||||
{{- if $proxy.resources }}
|
||||
resources:
|
||||
requests:
|
||||
cpu: 0.1
|
||||
memory: 256Mi
|
||||
limits:
|
||||
cpu: 1
|
||||
memory: 512Mi
|
||||
{{- end }}
|
||||
{{- if $proxy.securityContext }}
|
||||
securityContext: {{- toYaml $proxy.securityContext | nindent 12 }}
|
||||
{{- end }}
|
||||
@@ -305,6 +324,9 @@ spec:
|
||||
{{- end }}
|
||||
{{- if $proxy.priorityClassName }}
|
||||
priorityClassName: {{ $proxy.priorityClassName }}
|
||||
{{- end }}
|
||||
{{- if $proxy.podSecurityContext }}
|
||||
securityContext: {{- toYaml $proxy.podSecurityContext | nindent 8 }}
|
||||
{{- end }}
|
||||
serviceAccountName: {{ include "teleport-cluster.proxy.serviceAccountName" . }}
|
||||
terminationGracePeriodSeconds: {{ $proxy.terminationGracePeriodSeconds }}
|
||||
|
||||
@@ -23,7 +23,11 @@ kind: Ingress
|
||||
metadata:
|
||||
name: {{ .Release.Name }}-proxy
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels: {{- include "teleport-cluster.proxy.labels" . | nindent 4 }}
|
||||
labels:
|
||||
{{- include "teleport-cluster.proxy.labels" . | nindent 4 }}
|
||||
{{- if $proxy.extraLabels.ingress }}
|
||||
{{- toYaml $proxy.extraLabels.ingress | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- if $proxy.annotations.ingress }}
|
||||
annotations: {{- toYaml $proxy.annotations.ingress | nindent 4 }}
|
||||
{{- end }}
|
||||
|
||||
@@ -9,7 +9,11 @@ kind: PodDisruptionBudget
|
||||
metadata:
|
||||
name: {{ .Release.Name }}-proxy
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels: {{- include "teleport-cluster.proxy.labels" . | nindent 4 }}
|
||||
labels:
|
||||
{{- include "teleport-cluster.proxy.labels" . | nindent 4 }}
|
||||
{{- if $proxy.extraLabels.podDisruptionBudget }}
|
||||
{{- toYaml $proxy.extraLabels.podDisruptionBudget | nindent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
minAvailable: {{ $proxy.highAvailability.podDisruptionBudget.minAvailable }}
|
||||
selector:
|
||||
|
||||
@@ -6,6 +6,11 @@ kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ .Release.Name }}-proxy-test
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
{{- include "teleport-cluster.proxy.labels" . | nindent 4 }}
|
||||
{{- if $proxy.extraLabels.config }}
|
||||
{{- toYaml $proxy.extraLabels.config | nindent 4 }}
|
||||
{{- end }}
|
||||
annotations:
|
||||
"helm.sh/hook": pre-install,pre-upgrade
|
||||
"helm.sh/hook-weight": "4"
|
||||
|
||||
@@ -5,7 +5,11 @@ kind: Job
|
||||
metadata:
|
||||
name: {{ .Release.Name }}-proxy-test
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels: {{- include "teleport-cluster.labels" . | nindent 4 }}
|
||||
labels:
|
||||
{{- include "teleport-cluster.proxy.labels" . | nindent 4 }}
|
||||
{{- if $proxy.extraLabels.job }}
|
||||
{{- toYaml $proxy.extraLabels.job | nindent 4 }}
|
||||
{{- end }}
|
||||
annotations:
|
||||
"helm.sh/hook": pre-install,pre-upgrade
|
||||
"helm.sh/hook-weight": "5"
|
||||
|
||||
@@ -1,66 +0,0 @@
|
||||
{{- $proxy := mustMergeOverwrite (mustDeepCopy .Values) .Values.proxy -}}
|
||||
{{- $backendProtocol := ternary "ssl" "tcp" (hasKey $proxy.annotations.service "service.beta.kubernetes.io/aws-load-balancer-ssl-cert") -}}
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ .Release.Name }}-lb
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels: {{- include "teleport-cluster.proxy.labels" . | nindent 4 }}
|
||||
{{- if (or ($proxy.annotations.service) (eq $proxy.chartMode "aws")) }}
|
||||
annotations:
|
||||
{{- if and (eq $proxy.chartMode "aws") (not $proxy.ingress.enabled) }}
|
||||
{{- if not (hasKey $proxy.annotations.service "service.beta.kubernetes.io/aws-load-balancer-backend-protocol")}}
|
||||
service.beta.kubernetes.io/aws-load-balancer-backend-protocol: {{ $backendProtocol }}
|
||||
{{- end }}
|
||||
{{- if not (or (hasKey $proxy.annotations.service "service.beta.kubernetes.io/aws-load-balancer-cross-zone-load-balancing-enabled") (hasKey $proxy.annotations.service "service.beta.kubernetes.io/aws-load-balancer-attributes"))}}
|
||||
service.beta.kubernetes.io/aws-load-balancer-cross-zone-load-balancing-enabled: "true"
|
||||
{{- end }}
|
||||
{{- if not (hasKey $proxy.annotations.service "service.beta.kubernetes.io/aws-load-balancer-type")}}
|
||||
service.beta.kubernetes.io/aws-load-balancer-type: nlb
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if $proxy.annotations.service }}
|
||||
{{- toYaml $proxy.annotations.service | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
spec:
|
||||
type: "LoadBalancer"
|
||||
{{- with $proxy.service.spec }}
|
||||
{{- toYaml . | nindent 2 }}
|
||||
{{- end }}
|
||||
ports:
|
||||
- name: tls
|
||||
port: 443
|
||||
targetPort: 3080
|
||||
protocol: TCP
|
||||
{{- if ne $proxy.proxyListenerMode "multiplex" }}
|
||||
- name: sshproxy
|
||||
port: 3023
|
||||
targetPort: 3023
|
||||
protocol: TCP
|
||||
- name: k8s
|
||||
port: 3026
|
||||
targetPort: 3026
|
||||
protocol: TCP
|
||||
- name: sshtun
|
||||
port: 3024
|
||||
targetPort: 3024
|
||||
protocol: TCP
|
||||
- name: mysql
|
||||
port: 3036
|
||||
targetPort: 3036
|
||||
protocol: TCP
|
||||
{{- if $proxy.separatePostgresListener }}
|
||||
- name: postgres
|
||||
port: 5432
|
||||
targetPort: 5432
|
||||
protocol: TCP
|
||||
{{- end }}
|
||||
{{- if $proxy.separateMongoListener }}
|
||||
- name: mongo
|
||||
port: 27017
|
||||
targetPort: 27017
|
||||
protocol: TCP
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
selector: {{- include "teleport-cluster.proxy.selectorLabels" . | nindent 4 }}
|
||||
@@ -9,7 +9,11 @@ kind: Service
|
||||
metadata:
|
||||
name: {{ .Release.Name }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels: {{- include "teleport-cluster.proxy.labels" . | nindent 4 }}
|
||||
labels:
|
||||
{{- include "teleport-cluster.proxy.labels" . | nindent 4 }}
|
||||
{{- if $proxy.extraLabels.service }}
|
||||
{{- toYaml $proxy.extraLabels.service | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- if (or ($proxy.annotations.service) (eq $proxy.chartMode "aws")) }}
|
||||
annotations:
|
||||
{{- if and (eq $proxy.chartMode "aws") (not $proxy.ingress.enabled) }}
|
||||
|
||||
@@ -5,6 +5,11 @@ kind: ServiceAccount
|
||||
metadata:
|
||||
name: {{ include "teleport-cluster.proxy.serviceAccountName" . }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
{{- include "teleport-cluster.proxy.labels" . | nindent 4 }}
|
||||
{{- if $proxy.extraLabels.serviceAccount }}
|
||||
{{- toYaml $proxy.extraLabels.serviceAccount | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- if $proxy.annotations.serviceAccount }}
|
||||
annotations: {{- toYaml $proxy.annotations.serviceAccount | nindent 4 }}
|
||||
{{- end -}}
|
||||
|
||||
@@ -3,6 +3,14 @@ adds operator permissions to ClusterRole:
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRole
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/component: auth
|
||||
app.kubernetes.io/instance: RELEASE-NAME
|
||||
app.kubernetes.io/managed-by: Helm
|
||||
app.kubernetes.io/name: teleport-cluster
|
||||
app.kubernetes.io/version: 15.3.3
|
||||
helm.sh/chart: teleport-cluster-15.3.3
|
||||
teleport.dev/majorVersion: "15"
|
||||
name: RELEASE-NAME
|
||||
rules:
|
||||
- apiGroups:
|
||||
|
||||
@@ -13,6 +13,124 @@ adds a proxy token by default:
|
||||
kubernetes:
|
||||
allow:
|
||||
- service_account: "NAMESPACE:RELEASE-NAME-proxy"
|
||||
configures access monitoring when its values are set:
|
||||
1: |
|
||||
|-
|
||||
auth_service:
|
||||
access_monitoring:
|
||||
enabled: true
|
||||
report_results: s3://example-athena-long-term/report_results
|
||||
role_arn: arn:aws:iam::123456789012:role/example_AccessMonitoringRole
|
||||
workgroup: example_access_monitoring_workgroup
|
||||
authentication:
|
||||
local_auth: true
|
||||
second_factor: "on"
|
||||
type: local
|
||||
webauthn:
|
||||
rp_id: test-aws-cluster
|
||||
cluster_name: test-aws-cluster
|
||||
enabled: true
|
||||
proxy_listener_mode: separate
|
||||
kubernetes_service:
|
||||
enabled: true
|
||||
kube_cluster_name: test-aws-cluster
|
||||
listen_addr: 0.0.0.0:3026
|
||||
public_addr: RELEASE-NAME-auth.NAMESPACE.svc.cluster.local:3026
|
||||
proxy_service:
|
||||
enabled: false
|
||||
ssh_service:
|
||||
enabled: false
|
||||
teleport:
|
||||
auth_server: 127.0.0.1:3025
|
||||
log:
|
||||
format:
|
||||
extra_fields:
|
||||
- timestamp
|
||||
- level
|
||||
- component
|
||||
- caller
|
||||
output: text
|
||||
output: stderr
|
||||
severity: INFO
|
||||
storage:
|
||||
audit_events_uri:
|
||||
- athena://db.table?topicArn=arn:aws:sns:region:account_id:topic_name
|
||||
audit_sessions_uri: s3://test-s3-session-storage-bucket
|
||||
auto_scaling: false
|
||||
continuous_backups: false
|
||||
region: us-west-2
|
||||
table_name: test-dynamodb-backend-table
|
||||
type: dynamodb
|
||||
version: v3
|
||||
keeps the second factor type even when it's "off":
|
||||
1: |
|
||||
|-
|
||||
auth_service:
|
||||
authentication:
|
||||
local_auth: true
|
||||
second_factor: "off"
|
||||
type: local
|
||||
cluster_name: helm-lint
|
||||
enabled: true
|
||||
proxy_listener_mode: separate
|
||||
kubernetes_service:
|
||||
enabled: true
|
||||
kube_cluster_name: helm-lint
|
||||
listen_addr: 0.0.0.0:3026
|
||||
public_addr: RELEASE-NAME-auth.NAMESPACE.svc.cluster.local:3026
|
||||
proxy_service:
|
||||
enabled: false
|
||||
ssh_service:
|
||||
enabled: false
|
||||
teleport:
|
||||
auth_server: 127.0.0.1:3025
|
||||
log:
|
||||
format:
|
||||
extra_fields:
|
||||
- timestamp
|
||||
- level
|
||||
- component
|
||||
- caller
|
||||
output: text
|
||||
output: stderr
|
||||
severity: INFO
|
||||
version: v3
|
||||
keeps the session_recording type even when it's "off":
|
||||
1: |
|
||||
|-
|
||||
auth_service:
|
||||
authentication:
|
||||
local_auth: true
|
||||
second_factor: "on"
|
||||
type: local
|
||||
webauthn:
|
||||
rp_id: helm-lint
|
||||
cluster_name: helm-lint
|
||||
enabled: true
|
||||
proxy_listener_mode: separate
|
||||
session_recording: "off"
|
||||
kubernetes_service:
|
||||
enabled: true
|
||||
kube_cluster_name: helm-lint
|
||||
listen_addr: 0.0.0.0:3026
|
||||
public_addr: RELEASE-NAME-auth.NAMESPACE.svc.cluster.local:3026
|
||||
proxy_service:
|
||||
enabled: false
|
||||
ssh_service:
|
||||
enabled: false
|
||||
teleport:
|
||||
auth_server: 127.0.0.1:3025
|
||||
log:
|
||||
format:
|
||||
extra_fields:
|
||||
- timestamp
|
||||
- level
|
||||
- component
|
||||
- caller
|
||||
output: text
|
||||
output: stderr
|
||||
severity: INFO
|
||||
version: v3
|
||||
matches snapshot for acme-off.yaml:
|
||||
1: |
|
||||
|-
|
||||
@@ -1673,3 +1791,139 @@ matches snapshot for volumes.yaml:
|
||||
output: stderr
|
||||
severity: INFO
|
||||
version: v3
|
||||
uses athena as primary backend when configured:
|
||||
1: |
|
||||
|-
|
||||
auth_service:
|
||||
authentication:
|
||||
local_auth: true
|
||||
second_factor: "on"
|
||||
type: local
|
||||
webauthn:
|
||||
rp_id: teleport.example.com
|
||||
cluster_name: teleport.example.com
|
||||
enabled: true
|
||||
proxy_listener_mode: separate
|
||||
kubernetes_service:
|
||||
enabled: true
|
||||
kube_cluster_name: teleport.example.com
|
||||
listen_addr: 0.0.0.0:3026
|
||||
public_addr: RELEASE-NAME-auth.NAMESPACE.svc.cluster.local:3026
|
||||
proxy_service:
|
||||
enabled: false
|
||||
ssh_service:
|
||||
enabled: false
|
||||
teleport:
|
||||
auth_server: 127.0.0.1:3025
|
||||
log:
|
||||
format:
|
||||
extra_fields:
|
||||
- timestamp
|
||||
- level
|
||||
- component
|
||||
- caller
|
||||
output: text
|
||||
output: stderr
|
||||
severity: INFO
|
||||
storage:
|
||||
audit_events_uri:
|
||||
- athena://db.table?topicArn=arn:aws:sns:region:account_id:topic_name
|
||||
- dynamodb://my-dynamodb-table
|
||||
audit_sessions_uri: s3://asd
|
||||
auto_scaling: false
|
||||
continuous_backups: false
|
||||
region: asd
|
||||
table_name: asd
|
||||
type: dynamodb
|
||||
version: v3
|
||||
uses athena, dynamo, and stdout when everything is on:
|
||||
1: |
|
||||
|-
|
||||
auth_service:
|
||||
authentication:
|
||||
local_auth: true
|
||||
second_factor: "on"
|
||||
type: local
|
||||
webauthn:
|
||||
rp_id: teleport.example.com
|
||||
cluster_name: teleport.example.com
|
||||
enabled: true
|
||||
proxy_listener_mode: separate
|
||||
kubernetes_service:
|
||||
enabled: true
|
||||
kube_cluster_name: teleport.example.com
|
||||
listen_addr: 0.0.0.0:3026
|
||||
public_addr: RELEASE-NAME-auth.NAMESPACE.svc.cluster.local:3026
|
||||
proxy_service:
|
||||
enabled: false
|
||||
ssh_service:
|
||||
enabled: false
|
||||
teleport:
|
||||
auth_server: 127.0.0.1:3025
|
||||
log:
|
||||
format:
|
||||
extra_fields:
|
||||
- timestamp
|
||||
- level
|
||||
- component
|
||||
- caller
|
||||
output: text
|
||||
output: stderr
|
||||
severity: INFO
|
||||
storage:
|
||||
audit_events_uri:
|
||||
- athena://db.table?topicArn=arn:aws:sns:region:account_id:topic_name
|
||||
- dynamodb://my-dynamodb-table
|
||||
- stdout://
|
||||
audit_sessions_uri: s3://asd
|
||||
auto_scaling: false
|
||||
continuous_backups: false
|
||||
region: asd
|
||||
table_name: asd
|
||||
type: dynamodb
|
||||
version: v3
|
||||
uses dynamo as primary backend when configured:
|
||||
1: |
|
||||
|-
|
||||
auth_service:
|
||||
authentication:
|
||||
local_auth: true
|
||||
second_factor: "on"
|
||||
type: local
|
||||
webauthn:
|
||||
rp_id: teleport.example.com
|
||||
cluster_name: teleport.example.com
|
||||
enabled: true
|
||||
proxy_listener_mode: separate
|
||||
kubernetes_service:
|
||||
enabled: true
|
||||
kube_cluster_name: teleport.example.com
|
||||
listen_addr: 0.0.0.0:3026
|
||||
public_addr: RELEASE-NAME-auth.NAMESPACE.svc.cluster.local:3026
|
||||
proxy_service:
|
||||
enabled: false
|
||||
ssh_service:
|
||||
enabled: false
|
||||
teleport:
|
||||
auth_server: 127.0.0.1:3025
|
||||
log:
|
||||
format:
|
||||
extra_fields:
|
||||
- timestamp
|
||||
- level
|
||||
- component
|
||||
- caller
|
||||
output: text
|
||||
output: stderr
|
||||
severity: INFO
|
||||
storage:
|
||||
audit_events_uri:
|
||||
- dynamodb://my-dynamodb-table
|
||||
- athena://db.table?topicArn=arn:aws:sns:region:account_id:topic_name
|
||||
audit_sessions_uri: s3://asd
|
||||
auto_scaling: false
|
||||
continuous_backups: false
|
||||
region: asd
|
||||
table_name: asd
|
||||
type: dynamodb
|
||||
version: v3
|
||||
|
||||
@@ -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:15.0.1
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.3.3
|
||||
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:15.0.1
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.3.3
|
||||
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:15.0.1
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.3.3
|
||||
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:15.0.1
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.3.3
|
||||
imagePullPolicy: IfNotPresent
|
||||
lifecycle:
|
||||
preStop:
|
||||
|
||||
@@ -5,8 +5,15 @@ should provision initContainer correctly when set in values:
|
||||
- wait
|
||||
- no-resolve
|
||||
- RELEASE-NAME-auth-v14.NAMESPACE.svc.cluster.local
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.0.1
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.3.3
|
||||
name: wait-auth-update
|
||||
resources:
|
||||
limits:
|
||||
cpu: 1
|
||||
memory: 512Mi
|
||||
requests:
|
||||
cpu: 0.1
|
||||
memory: 256Mi
|
||||
- args:
|
||||
- echo test
|
||||
image: alpine
|
||||
@@ -62,7 +69,7 @@ should set nodeSelector when set in values:
|
||||
containers:
|
||||
- args:
|
||||
- --diag-addr=0.0.0.0:3000
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.0.1
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.3.3
|
||||
imagePullPolicy: IfNotPresent
|
||||
lifecycle:
|
||||
preStop:
|
||||
@@ -123,7 +130,7 @@ should set nodeSelector when set in values:
|
||||
- wait
|
||||
- no-resolve
|
||||
- RELEASE-NAME-auth-v14.NAMESPACE.svc.cluster.local
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.0.1
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.3.3
|
||||
name: wait-auth-update
|
||||
nodeSelector:
|
||||
environment: security
|
||||
@@ -166,7 +173,7 @@ should set required affinity when highAvailability.requireAntiAffinity is set:
|
||||
values:
|
||||
- proxy
|
||||
topologyKey: kubernetes.io/hostname
|
||||
should set resources when set in values:
|
||||
should set resources for wait-auth-update initContainer when set in values:
|
||||
1: |
|
||||
affinity:
|
||||
podAntiAffinity: null
|
||||
@@ -174,7 +181,7 @@ should set resources when set in values:
|
||||
containers:
|
||||
- args:
|
||||
- --diag-addr=0.0.0.0:3000
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.0.1
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.3.3
|
||||
imagePullPolicy: IfNotPresent
|
||||
lifecycle:
|
||||
preStop:
|
||||
@@ -242,8 +249,123 @@ should set resources when set in values:
|
||||
- wait
|
||||
- no-resolve
|
||||
- RELEASE-NAME-auth-v14.NAMESPACE.svc.cluster.local
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.0.1
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.3.3
|
||||
name: wait-auth-update
|
||||
resources:
|
||||
limits:
|
||||
cpu: 1
|
||||
memory: 512Mi
|
||||
requests:
|
||||
cpu: 0.1
|
||||
memory: 256Mi
|
||||
serviceAccountName: RELEASE-NAME-proxy
|
||||
terminationGracePeriodSeconds: 60
|
||||
volumes:
|
||||
- name: proxy-serviceaccount-token
|
||||
projected:
|
||||
sources:
|
||||
- serviceAccountToken:
|
||||
path: token
|
||||
- configMap:
|
||||
items:
|
||||
- key: ca.crt
|
||||
path: ca.crt
|
||||
name: kube-root-ca.crt
|
||||
- downwardAPI:
|
||||
items:
|
||||
- fieldRef:
|
||||
fieldPath: metadata.namespace
|
||||
path: namespace
|
||||
- configMap:
|
||||
name: RELEASE-NAME-proxy
|
||||
name: config
|
||||
- emptyDir: {}
|
||||
name: data
|
||||
should set resources when set in values:
|
||||
1: |
|
||||
affinity:
|
||||
podAntiAffinity: null
|
||||
automountServiceAccountToken: false
|
||||
containers:
|
||||
- args:
|
||||
- --diag-addr=0.0.0.0:3000
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.3.3
|
||||
imagePullPolicy: IfNotPresent
|
||||
lifecycle:
|
||||
preStop:
|
||||
exec:
|
||||
command:
|
||||
- teleport
|
||||
- wait
|
||||
- duration
|
||||
- 30s
|
||||
livenessProbe:
|
||||
failureThreshold: 6
|
||||
httpGet:
|
||||
path: /healthz
|
||||
port: diag
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 1
|
||||
name: teleport
|
||||
ports:
|
||||
- containerPort: 3080
|
||||
name: tls
|
||||
protocol: TCP
|
||||
- containerPort: 3023
|
||||
name: sshproxy
|
||||
protocol: TCP
|
||||
- containerPort: 3024
|
||||
name: sshtun
|
||||
protocol: TCP
|
||||
- containerPort: 3026
|
||||
name: kube
|
||||
protocol: TCP
|
||||
- containerPort: 3036
|
||||
name: mysql
|
||||
protocol: TCP
|
||||
- containerPort: 3000
|
||||
name: diag
|
||||
protocol: TCP
|
||||
readinessProbe:
|
||||
failureThreshold: 12
|
||||
httpGet:
|
||||
path: /readyz
|
||||
port: diag
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 1
|
||||
resources:
|
||||
limits:
|
||||
cpu: 2
|
||||
memory: 4Gi
|
||||
requests:
|
||||
cpu: 1
|
||||
memory: 2Gi
|
||||
volumeMounts:
|
||||
- mountPath: /etc/teleport
|
||||
name: config
|
||||
readOnly: true
|
||||
- mountPath: /var/lib/teleport
|
||||
name: data
|
||||
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount
|
||||
name: proxy-serviceaccount-token
|
||||
readOnly: true
|
||||
initContainers:
|
||||
- command:
|
||||
- teleport
|
||||
- wait
|
||||
- no-resolve
|
||||
- RELEASE-NAME-auth-v14.NAMESPACE.svc.cluster.local
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.3.3
|
||||
name: wait-auth-update
|
||||
resources:
|
||||
limits:
|
||||
cpu: 1
|
||||
memory: 512Mi
|
||||
requests:
|
||||
cpu: 0.1
|
||||
memory: 256Mi
|
||||
serviceAccountName: RELEASE-NAME-proxy
|
||||
terminationGracePeriodSeconds: 60
|
||||
volumes:
|
||||
@@ -275,7 +397,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:15.0.1
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.3.3
|
||||
imagePullPolicy: IfNotPresent
|
||||
lifecycle:
|
||||
preStop:
|
||||
@@ -343,7 +465,7 @@ should set securityContext for initContainers when set in values:
|
||||
- wait
|
||||
- no-resolve
|
||||
- RELEASE-NAME-auth-v14.NAMESPACE.svc.cluster.local
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.0.1
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.3.3
|
||||
name: wait-auth-update
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
@@ -383,7 +505,7 @@ should set securityContext when set in values:
|
||||
containers:
|
||||
- args:
|
||||
- --diag-addr=0.0.0.0:3000
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.0.1
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.3.3
|
||||
imagePullPolicy: IfNotPresent
|
||||
lifecycle:
|
||||
preStop:
|
||||
@@ -451,7 +573,7 @@ should set securityContext when set in values:
|
||||
- wait
|
||||
- no-resolve
|
||||
- RELEASE-NAME-auth-v14.NAMESPACE.svc.cluster.local
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.0.1
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.3.3
|
||||
name: wait-auth-update
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
|
||||
@@ -17,3 +17,20 @@ tests:
|
||||
- isKind:
|
||||
of: ClusterRole
|
||||
- matchSnapshot: {}
|
||||
- it: sets extraLabels on ClusterRole
|
||||
set:
|
||||
extraLabels:
|
||||
clusterRole:
|
||||
foo: bar
|
||||
baz: override-me
|
||||
auth:
|
||||
extraLabels:
|
||||
clusterRole:
|
||||
baz: overridden
|
||||
asserts:
|
||||
- equal:
|
||||
path: metadata.labels.foo
|
||||
value: bar
|
||||
- equal:
|
||||
path: metadata.labels.baz
|
||||
value: overridden
|
||||
|
||||
@@ -18,3 +18,21 @@ tests:
|
||||
content:
|
||||
kind: ServiceAccount
|
||||
name: "helm-lint"
|
||||
|
||||
- it: sets extraLabels on ClusterRoleBindings
|
||||
set:
|
||||
extraLabels:
|
||||
clusterRoleBinding:
|
||||
foo: bar
|
||||
baz: override-me
|
||||
auth:
|
||||
extraLabels:
|
||||
clusterRoleBinding:
|
||||
baz: overridden
|
||||
asserts:
|
||||
- equal:
|
||||
path: metadata.labels.foo
|
||||
value: bar
|
||||
- equal:
|
||||
path: metadata.labels.baz
|
||||
value: overridden
|
||||
|
||||
@@ -510,3 +510,180 @@ tests:
|
||||
- matchRegex:
|
||||
path: data.teleport\.yaml
|
||||
pattern: 'billing_mode: provisioned'
|
||||
|
||||
- it: fails when no audit backend is configured
|
||||
set:
|
||||
chartMode: aws
|
||||
clusterName: "teleport.example.com"
|
||||
aws:
|
||||
region: asd
|
||||
backendTable: asd
|
||||
sessionRecordingBucket: asd
|
||||
asserts:
|
||||
- failedTemplate:
|
||||
errorMessage: "You need an audit backend. In AWS mode, you must set at least one of `aws.auditLogTable` (Dynamo) and `aws.athenaURL` (Athena)."
|
||||
|
||||
- it: configures dynamo when dynamo is set
|
||||
set:
|
||||
chartMode: aws
|
||||
clusterName: "teleport.example.com"
|
||||
aws:
|
||||
region: asd
|
||||
backendTable: asd
|
||||
sessionRecordingBucket: asd
|
||||
auditLogTable: my-dynamodb-table
|
||||
asserts:
|
||||
- matchRegex:
|
||||
path: data.teleport\.yaml
|
||||
pattern: '- dynamodb://my-dynamodb-table'
|
||||
|
||||
- it: configures athena when athenaURL is set
|
||||
set:
|
||||
chartMode: aws
|
||||
clusterName: "teleport.example.com"
|
||||
aws:
|
||||
region: asd
|
||||
backendTable: asd
|
||||
sessionRecordingBucket: asd
|
||||
athenaURL: 'athena://db.table?topicArn=arn:aws:sns:region:account_id:topic_name'
|
||||
asserts:
|
||||
- matchRegex:
|
||||
path: data.teleport\.yaml
|
||||
pattern: '- athena://db.table'
|
||||
|
||||
- it: configures dynamo and stdout when dynamo is set and mirroring is on
|
||||
set:
|
||||
chartMode: aws
|
||||
clusterName: "teleport.example.com"
|
||||
aws:
|
||||
region: asd
|
||||
backendTable: asd
|
||||
sessionRecordingBucket: asd
|
||||
auditLogTable: my-dynamodb-table
|
||||
auditLogMirrorOnStdout: true
|
||||
asserts:
|
||||
- matchRegex:
|
||||
path: data.teleport\.yaml
|
||||
pattern: '- dynamodb://my-dynamodb-table'
|
||||
- matchRegex:
|
||||
path: data.teleport\.yaml
|
||||
pattern: '- stdout://'
|
||||
|
||||
- it: fails when both athena and dynamo are set but no order is specified
|
||||
set:
|
||||
chartMode: aws
|
||||
clusterName: "teleport.example.com"
|
||||
aws:
|
||||
region: asd
|
||||
backendTable: asd
|
||||
sessionRecordingBucket: asd
|
||||
auditLogTable: my-dynamodb-table
|
||||
athenaURL: 'athena://db.table?topicArn=arn:aws:sns:region:account_id:topic_name'
|
||||
asserts:
|
||||
- failedTemplate:
|
||||
errorMessage: "Both Dynamo and Athena audit backends are enabled. You must specify the primary backend by setting `aws.auditLogPrimaryBackend` to either 'dynamo' or 'athena'."
|
||||
|
||||
- it: uses athena as primary backend when configured
|
||||
set:
|
||||
chartMode: aws
|
||||
clusterName: "teleport.example.com"
|
||||
aws:
|
||||
region: asd
|
||||
backendTable: asd
|
||||
sessionRecordingBucket: asd
|
||||
auditLogTable: my-dynamodb-table
|
||||
athenaURL: 'athena://db.table?topicArn=arn:aws:sns:region:account_id:topic_name'
|
||||
auditLogPrimaryBackend: "athena"
|
||||
asserts:
|
||||
- matchSnapshot:
|
||||
path: data.teleport\.yaml
|
||||
|
||||
- it: uses dynamo as primary backend when configured
|
||||
set:
|
||||
chartMode: aws
|
||||
clusterName: "teleport.example.com"
|
||||
aws:
|
||||
region: asd
|
||||
backendTable: asd
|
||||
sessionRecordingBucket: asd
|
||||
auditLogTable: my-dynamodb-table
|
||||
athenaURL: 'athena://db.table?topicArn=arn:aws:sns:region:account_id:topic_name'
|
||||
auditLogPrimaryBackend: "dynamo"
|
||||
asserts:
|
||||
- matchSnapshot:
|
||||
path: data.teleport\.yaml
|
||||
|
||||
- it: uses athena, dynamo, and stdout when everything is on
|
||||
set:
|
||||
chartMode: aws
|
||||
clusterName: "teleport.example.com"
|
||||
aws:
|
||||
region: asd
|
||||
backendTable: asd
|
||||
sessionRecordingBucket: asd
|
||||
auditLogTable: my-dynamodb-table
|
||||
athenaURL: 'athena://db.table?topicArn=arn:aws:sns:region:account_id:topic_name'
|
||||
auditLogPrimaryBackend: "athena"
|
||||
auditLogMirrorOnStdout: true
|
||||
asserts:
|
||||
- matchSnapshot:
|
||||
path: data.teleport\.yaml
|
||||
|
||||
- it: keeps the second factor type even when it's "off"
|
||||
set:
|
||||
clusterName: helm-lint
|
||||
authentication:
|
||||
secondFactor: 'off'
|
||||
asserts:
|
||||
- matchSnapshot:
|
||||
path: data.teleport\.yaml
|
||||
|
||||
- it: fails if access monitoring is enabled without athena
|
||||
set:
|
||||
chartMode: aws
|
||||
clusterName: "teleport.example.com"
|
||||
aws:
|
||||
region: asd
|
||||
backendTable: asd
|
||||
sessionRecordingBucket: asd
|
||||
auditLogTable: my-dynamodb-table
|
||||
accessMonitoring:
|
||||
enabled: true
|
||||
asserts:
|
||||
- failedTemplate:
|
||||
errorMessage: "AccessMonitoring requires an Athena Event backend"
|
||||
|
||||
- it: configures access monitoring when its values are set
|
||||
values:
|
||||
- ../.lint/aws-access-monitoring.yaml
|
||||
asserts:
|
||||
- matchSnapshot:
|
||||
path: data.teleport\.yaml
|
||||
|
||||
- it: sets extraLabels on Configmap
|
||||
values:
|
||||
- ../.lint/annotations.yaml
|
||||
set:
|
||||
extraLabels:
|
||||
config:
|
||||
foo: bar
|
||||
baz: override-me
|
||||
auth:
|
||||
extraLabels:
|
||||
config:
|
||||
baz: overridden
|
||||
asserts:
|
||||
- equal:
|
||||
path: metadata.labels.foo
|
||||
value: bar
|
||||
- equal:
|
||||
path: metadata.labels.baz
|
||||
value: overridden
|
||||
|
||||
- it: keeps the session_recording type even when it's "off"
|
||||
set:
|
||||
clusterName: helm-lint
|
||||
sessionRecording: 'off'
|
||||
asserts:
|
||||
- matchSnapshot:
|
||||
path: data.teleport\.yaml
|
||||
|
||||
@@ -3,7 +3,7 @@ templates:
|
||||
- auth/deployment.yaml
|
||||
- auth/config.yaml
|
||||
tests:
|
||||
- it: sets Statefulset annotations when specified
|
||||
- it: sets Deployment annotations when specified
|
||||
template: auth/deployment.yaml
|
||||
values:
|
||||
- ../.lint/annotations.yaml
|
||||
@@ -126,6 +126,35 @@ tests:
|
||||
- matchSnapshot:
|
||||
path: spec.template.spec
|
||||
|
||||
- it: should set podSecurityContext when set in values
|
||||
template: auth/deployment.yaml
|
||||
values:
|
||||
- ../.lint/pod-security-context.yaml
|
||||
asserts:
|
||||
- equal:
|
||||
path: spec.template.spec.securityContext.fsGroup
|
||||
value: 99
|
||||
- equal:
|
||||
path: spec.template.spec.securityContext.fsGroupChangePolicy
|
||||
value: OnRootMismatch
|
||||
- equal:
|
||||
path: spec.template.spec.securityContext.runAsGroup
|
||||
value: 99
|
||||
- equal:
|
||||
path: spec.template.spec.securityContext.runAsNonRoot
|
||||
value: true
|
||||
- equal:
|
||||
path: spec.template.spec.securityContext.runAsUser
|
||||
value: 99
|
||||
|
||||
- it: should not set podSecurityContext when is empty object (default value)
|
||||
template: auth/deployment.yaml
|
||||
values:
|
||||
- ../.lint/pod-security-context-empty.yaml
|
||||
asserts:
|
||||
- isNull:
|
||||
path: spec.template.spec.securityContext
|
||||
|
||||
- it: should set securityContext when set in values
|
||||
template: auth/deployment.yaml
|
||||
values:
|
||||
@@ -828,3 +857,45 @@ tests:
|
||||
- equal:
|
||||
path: spec.template.metadata.labels.azure\.workload\.identity/use
|
||||
value: "true"
|
||||
|
||||
- it: sets extraLabels on Deployment
|
||||
template: auth/deployment.yaml
|
||||
values:
|
||||
- ../.lint/annotations.yaml
|
||||
set:
|
||||
extraLabels:
|
||||
deployment:
|
||||
foo: bar
|
||||
baz: override-me
|
||||
auth:
|
||||
extraLabels:
|
||||
deployment:
|
||||
baz: overridden
|
||||
asserts:
|
||||
- equal:
|
||||
path: metadata.labels.foo
|
||||
value: bar
|
||||
- equal:
|
||||
path: metadata.labels.baz
|
||||
value: overridden
|
||||
|
||||
- it: sets extraLabels on Deployment Pods
|
||||
template: auth/deployment.yaml
|
||||
values:
|
||||
- ../.lint/annotations.yaml
|
||||
set:
|
||||
extraLabels:
|
||||
pod:
|
||||
foo: bar
|
||||
baz: override-me
|
||||
auth:
|
||||
extraLabels:
|
||||
pod:
|
||||
baz: overridden
|
||||
asserts:
|
||||
- equal:
|
||||
path: spec.template.metadata.labels.foo
|
||||
value: bar
|
||||
- equal:
|
||||
path: spec.template.metadata.labels.baz
|
||||
value: overridden
|
||||
|
||||
@@ -21,3 +21,23 @@ tests:
|
||||
- equal:
|
||||
path: spec.minAvailable
|
||||
value: 2
|
||||
|
||||
- it: sets extraLabels on PodDisruptionBudget
|
||||
values:
|
||||
- ../.lint/pdb.yaml
|
||||
set:
|
||||
extraLabels:
|
||||
podDisruptionBudget:
|
||||
foo: bar
|
||||
baz: override-me
|
||||
auth:
|
||||
extraLabels:
|
||||
podDisruptionBudget:
|
||||
baz: overridden
|
||||
asserts:
|
||||
- equal:
|
||||
path: metadata.labels.foo
|
||||
value: bar
|
||||
- equal:
|
||||
path: metadata.labels.baz
|
||||
value: overridden
|
||||
|
||||
@@ -85,3 +85,22 @@ tests:
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 0
|
||||
|
||||
- it: sets extraLabels on PersistentVolumeClaim
|
||||
set:
|
||||
chartMode: standalone
|
||||
extraLabels:
|
||||
persistentVolumeClaim:
|
||||
foo: bar
|
||||
baz: override-me
|
||||
auth:
|
||||
extraLabels:
|
||||
persistentVolumeClaim:
|
||||
baz: overridden
|
||||
asserts:
|
||||
- equal:
|
||||
path: metadata.labels.foo
|
||||
value: bar
|
||||
- equal:
|
||||
path: metadata.labels.baz
|
||||
value: overridden
|
||||
|
||||
@@ -30,3 +30,23 @@ tests:
|
||||
- equal:
|
||||
path: metadata.annotations.azure\.workload\.identity/client-id
|
||||
value: "1234"
|
||||
|
||||
- it: sets extraLabels on ServiceAccount
|
||||
values:
|
||||
- ../.lint/annotations.yaml
|
||||
set:
|
||||
extraLabels:
|
||||
serviceAccount:
|
||||
foo: bar
|
||||
baz: override-me
|
||||
auth:
|
||||
extraLabels:
|
||||
serviceAccount:
|
||||
baz: overridden
|
||||
asserts:
|
||||
- equal:
|
||||
path: metadata.labels.foo
|
||||
value: bar
|
||||
- equal:
|
||||
path: metadata.labels.baz
|
||||
value: overridden
|
||||
|
||||
@@ -536,3 +536,23 @@ tests:
|
||||
value: helm-lint-tls-secret
|
||||
- matchSnapshot:
|
||||
path: spec.tls
|
||||
|
||||
- it: sets extraLabels on Ingress
|
||||
values:
|
||||
- ../.lint/ingress.yaml
|
||||
set:
|
||||
extraLabels:
|
||||
ingress:
|
||||
foo: bar
|
||||
baz: override-me
|
||||
proxy:
|
||||
extraLabels:
|
||||
ingress:
|
||||
baz: overridden
|
||||
asserts:
|
||||
- equal:
|
||||
path: metadata.labels.foo
|
||||
value: bar
|
||||
- equal:
|
||||
path: metadata.labels.baz
|
||||
value: overridden
|
||||
|
||||
@@ -109,3 +109,82 @@ tests:
|
||||
value: myRegistryKeySecretName
|
||||
- matchSnapshot:
|
||||
path: spec.template.spec.imagePullSecrets
|
||||
|
||||
- it: should set extraLabels on auth predeploy job when set in values
|
||||
template: auth/predeploy_job.yaml
|
||||
set:
|
||||
clusterName: helm-lint
|
||||
extraLabels:
|
||||
job:
|
||||
foo: bar
|
||||
baz: override-me
|
||||
auth:
|
||||
extraLabels:
|
||||
job:
|
||||
baz: overridden
|
||||
asserts:
|
||||
- equal:
|
||||
path: metadata.labels.foo
|
||||
value: bar
|
||||
- equal:
|
||||
path: metadata.labels.baz
|
||||
value: overridden
|
||||
|
||||
- it: should set extraLabels on auth predeploy config when set in values
|
||||
template: auth/predeploy_config.yaml
|
||||
set:
|
||||
clusterName: helm-lint
|
||||
extraLabels:
|
||||
config:
|
||||
foo: bar
|
||||
baz: override-me
|
||||
auth:
|
||||
extraLabels:
|
||||
config:
|
||||
baz: overridden
|
||||
asserts:
|
||||
- equal:
|
||||
path: metadata.labels.foo
|
||||
value: bar
|
||||
- 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:
|
||||
clusterName: helm-lint
|
||||
extraLabels:
|
||||
job:
|
||||
foo: bar
|
||||
baz: override-me
|
||||
proxy:
|
||||
extraLabels:
|
||||
job:
|
||||
baz: overridden
|
||||
asserts:
|
||||
- equal:
|
||||
path: metadata.labels.foo
|
||||
value: bar
|
||||
- equal:
|
||||
path: metadata.labels.baz
|
||||
value: overridden
|
||||
|
||||
- it: should set extraLabels on proxy predeploy config when set in values
|
||||
template: proxy/predeploy_config.yaml
|
||||
set:
|
||||
clusterName: helm-lint
|
||||
extraLabels:
|
||||
config:
|
||||
foo: bar
|
||||
baz: override-me
|
||||
proxy:
|
||||
extraLabels:
|
||||
config:
|
||||
baz: overridden
|
||||
asserts:
|
||||
- equal:
|
||||
path: metadata.labels.foo
|
||||
value: bar
|
||||
- equal:
|
||||
path: metadata.labels.baz
|
||||
value: overridden
|
||||
|
||||
@@ -192,3 +192,23 @@ tests:
|
||||
- notEqual:
|
||||
path: spec.dnsNames[4]
|
||||
value: "teleport.test.com"
|
||||
|
||||
- it: sets extraLabels on Certificate Secret
|
||||
values:
|
||||
- ../.lint/cert-manager.yaml
|
||||
set:
|
||||
extraLabels:
|
||||
certSecret:
|
||||
foo: bar
|
||||
baz: override-me
|
||||
proxy:
|
||||
extraLabels:
|
||||
certSecret:
|
||||
baz: overridden
|
||||
asserts:
|
||||
- equal:
|
||||
path: spec.secretTemplate.labels.foo
|
||||
value: bar
|
||||
- equal:
|
||||
path: spec.secretTemplate.labels.baz
|
||||
value: overridden
|
||||
|
||||
@@ -256,3 +256,23 @@ tests:
|
||||
- notMatchRegex:
|
||||
path: data.teleport\.yaml
|
||||
pattern: 'proxy_protocol:'
|
||||
|
||||
- it: sets extraLabels on Configmap
|
||||
values:
|
||||
- ../.lint/annotations.yaml
|
||||
set:
|
||||
extraLabels:
|
||||
config:
|
||||
foo: bar
|
||||
baz: override-me
|
||||
proxy:
|
||||
extraLabels:
|
||||
config:
|
||||
baz: overridden
|
||||
asserts:
|
||||
- equal:
|
||||
path: metadata.labels.foo
|
||||
value: bar
|
||||
- equal:
|
||||
path: metadata.labels.baz
|
||||
value: overridden
|
||||
|
||||
@@ -164,6 +164,35 @@ tests:
|
||||
- matchSnapshot:
|
||||
path: spec.template.spec
|
||||
|
||||
- it: should set podSecurityContext when set in values
|
||||
template: proxy/deployment.yaml
|
||||
values:
|
||||
- ../.lint/pod-security-context.yaml
|
||||
asserts:
|
||||
- equal:
|
||||
path: spec.template.spec.securityContext.fsGroup
|
||||
value: 99
|
||||
- equal:
|
||||
path: spec.template.spec.securityContext.fsGroupChangePolicy
|
||||
value: OnRootMismatch
|
||||
- equal:
|
||||
path: spec.template.spec.securityContext.runAsGroup
|
||||
value: 99
|
||||
- equal:
|
||||
path: spec.template.spec.securityContext.runAsNonRoot
|
||||
value: true
|
||||
- equal:
|
||||
path: spec.template.spec.securityContext.runAsUser
|
||||
value: 99
|
||||
|
||||
- it: should not set podSecurityContext when is empty object (default value)
|
||||
template: proxy/deployment.yaml
|
||||
values:
|
||||
- ../.lint/pod-security-context-empty.yaml
|
||||
asserts:
|
||||
- isNull:
|
||||
path: spec.template.spec.securityContext
|
||||
|
||||
- it: should set securityContext when set in values
|
||||
template: proxy/deployment.yaml
|
||||
values:
|
||||
@@ -224,6 +253,25 @@ tests:
|
||||
- matchSnapshot:
|
||||
path: spec.template.spec
|
||||
|
||||
- it: should set resources for wait-auth-update initContainer when set in values
|
||||
template: proxy/deployment.yaml
|
||||
values:
|
||||
- ../.lint/resources.yaml
|
||||
asserts:
|
||||
- equal:
|
||||
path: spec.template.spec.initContainers[0].resources.requests.cpu
|
||||
value: 0.1
|
||||
- equal:
|
||||
path: spec.template.spec.initContainers[0].resources.requests.memory
|
||||
value: 256Mi
|
||||
- equal:
|
||||
path: spec.template.spec.initContainers[0].resources.limits.cpu
|
||||
value: 1
|
||||
- equal:
|
||||
path: spec.template.spec.initContainers[0].resources.limits.memory
|
||||
value: 512Mi
|
||||
- matchSnapshot:
|
||||
path: spec.template.spec
|
||||
|
||||
- it: should not set securityContext for initContainers when is empty object (default value)
|
||||
template: proxy/deployment.yaml
|
||||
@@ -939,3 +987,45 @@ tests:
|
||||
mountPath: /var/run/secrets/kubernetes.io/serviceaccount
|
||||
name: proxy-serviceaccount-token
|
||||
readOnly: true
|
||||
|
||||
- it: sets extraLabels on Deployment
|
||||
template: proxy/deployment.yaml
|
||||
values:
|
||||
- ../.lint/annotations.yaml
|
||||
set:
|
||||
extraLabels:
|
||||
deployment:
|
||||
foo: bar
|
||||
baz: override-me
|
||||
proxy:
|
||||
extraLabels:
|
||||
deployment:
|
||||
baz: overridden
|
||||
asserts:
|
||||
- equal:
|
||||
path: metadata.labels.foo
|
||||
value: bar
|
||||
- equal:
|
||||
path: metadata.labels.baz
|
||||
value: overridden
|
||||
|
||||
- it: sets extraLabels on Deployment Pods
|
||||
template: proxy/deployment.yaml
|
||||
values:
|
||||
- ../.lint/annotations.yaml
|
||||
set:
|
||||
extraLabels:
|
||||
pod:
|
||||
foo: bar
|
||||
baz: override-me
|
||||
proxy:
|
||||
extraLabels:
|
||||
pod:
|
||||
baz: overridden
|
||||
asserts:
|
||||
- equal:
|
||||
path: spec.template.metadata.labels.foo
|
||||
value: bar
|
||||
- equal:
|
||||
path: spec.template.metadata.labels.baz
|
||||
value: overridden
|
||||
|
||||
@@ -21,3 +21,23 @@ tests:
|
||||
- equal:
|
||||
path: spec.minAvailable
|
||||
value: 2
|
||||
|
||||
- it: sets extraLabels on PodDisruptionBudget
|
||||
values:
|
||||
- ../.lint/pdb.yaml
|
||||
set:
|
||||
extraLabels:
|
||||
podDisruptionBudget:
|
||||
foo: bar
|
||||
baz: override-me
|
||||
proxy:
|
||||
extraLabels:
|
||||
podDisruptionBudget:
|
||||
baz: overridden
|
||||
asserts:
|
||||
- equal:
|
||||
path: metadata.labels.foo
|
||||
value: bar
|
||||
- equal:
|
||||
path: metadata.labels.baz
|
||||
value: overridden
|
||||
|
||||
@@ -379,3 +379,23 @@ tests:
|
||||
asserts:
|
||||
- matchSnapshot:
|
||||
path: spec.ports
|
||||
|
||||
- it: sets extraLabels on Service
|
||||
values:
|
||||
- ../.lint/annotations.yaml
|
||||
set:
|
||||
extraLabels:
|
||||
service:
|
||||
foo: bar
|
||||
baz: override-me
|
||||
proxy:
|
||||
extraLabels:
|
||||
service:
|
||||
baz: overridden
|
||||
asserts:
|
||||
- equal:
|
||||
path: metadata.labels.foo
|
||||
value: bar
|
||||
- equal:
|
||||
path: metadata.labels.baz
|
||||
value: overridden
|
||||
|
||||
@@ -20,3 +20,23 @@ tests:
|
||||
- equal:
|
||||
path: metadata.name
|
||||
value: "helm-lint-proxy"
|
||||
|
||||
- it: sets extraLabels on ServiceAccount
|
||||
values:
|
||||
- ../.lint/annotations.yaml
|
||||
set:
|
||||
extraLabels:
|
||||
serviceAccount:
|
||||
foo: bar
|
||||
baz: override-me
|
||||
proxy:
|
||||
extraLabels:
|
||||
serviceAccount:
|
||||
baz: overridden
|
||||
asserts:
|
||||
- equal:
|
||||
path: metadata.labels.foo
|
||||
value: bar
|
||||
- equal:
|
||||
path: metadata.labels.baz
|
||||
value: overridden
|
||||
|
||||
@@ -943,6 +943,11 @@
|
||||
"type": "object",
|
||||
"default": {}
|
||||
},
|
||||
"podSecurityContext": {
|
||||
"$id": "#/properties/podSecurityContext",
|
||||
"type": "object",
|
||||
"default": {}
|
||||
},
|
||||
"securityContext": {
|
||||
"$id": "#/properties/securityContext",
|
||||
"type": "object",
|
||||
|
||||
@@ -276,7 +276,10 @@ operator:
|
||||
podSecurityPolicy:
|
||||
enabled: true
|
||||
|
||||
# Labels is a map of key-value pairs about this cluster
|
||||
# Labels is a map of key-value pairs about this cluster. Those labels are used
|
||||
# in Teleport to access the Kuebrnetes cluster. They must not be confused with
|
||||
# `extraLabels` which are additional labels to add on Kubernetes resources
|
||||
# created by the Helm chart.
|
||||
labels: {}
|
||||
|
||||
# Mode to deploy the chart in. The default is "standalone". Options:
|
||||
@@ -348,9 +351,34 @@ aws:
|
||||
# The DynamoDB table name to use for audit log storage. Teleport will attempt to create this table automatically if it does not exist.
|
||||
# The container will need an appropriately-provisioned IAM role with permissions to create DynamoDB tables.
|
||||
# This MUST NOT be the same table name as used for 'backendTable' as the schemas are different.
|
||||
#
|
||||
# If you are using the Athena backend, you don't need to set this value.
|
||||
# If you set this value, audit logs will be sent both to the Athena and DynamoDB
|
||||
# backends, this is useful when migrating backends.
|
||||
# If both `aws.athenaURL` and `aws.auditLogTable` (DynamoDB) are set, the
|
||||
# `aws.auditLogPrimaryBackend` value configures which backend is used for querying.
|
||||
# Teleport queries the audit backend to display the audit log in the web UI, export events
|
||||
# using the audit log collector, or perform any action that needs to inspect past audit events.
|
||||
auditLogTable: ""
|
||||
# Whether to mirror audit log entries to stdout in JSON format (useful for external log collectors)
|
||||
auditLogMirrorOnStdout: false
|
||||
# auditLogPrimaryBackend controls which backend is used for queries when multiple
|
||||
# audit backends are enabled. This setting has no effect when a single audit
|
||||
# log backend is enabled.This setting is used when migrating from DynamoDB to
|
||||
# Athena.
|
||||
#
|
||||
# Possible values are `dynamo` and `athena`.
|
||||
auditLogPrimaryBackend: ""
|
||||
# athenaURL contains the Athena audit log backend configuration
|
||||
# When this value is set, Teleport will export events to the Athena audit backend.
|
||||
#
|
||||
# To use the Athena audit backend, you must set up the required infrastructure
|
||||
# (S3 buckets, SQS queue, AthenaDB, IAM roles and permissions, ...).
|
||||
# The requirements are described in the documentation: https://goteleport.com/docs/reference/backends/#athena
|
||||
#
|
||||
# If both `aws.athenaURL` and `aws.auditLogTable` (DynamoDB) are set, the
|
||||
# `aws.auditLogPrimaryBackend` value configures which backend is used for querying.
|
||||
athenaURL: ""
|
||||
# The S3 bucket name to use for recorded session storage. Teleport will attempt to create this bucket automatically if it does not exist.
|
||||
# The container will need an appropriately-provisioned IAM role with permissions to create S3 buckets.
|
||||
sessionRecordingBucket: ""
|
||||
@@ -358,6 +386,10 @@ aws:
|
||||
backups: false
|
||||
|
||||
# Whether Teleport should configure DynamoDB's autoscaling.
|
||||
#
|
||||
# WARNING: DynamoDB autoscaling is no longer recommended. Teleport now
|
||||
# defaults to "on demand" DynamoDB billing, which has more reliable performance.
|
||||
#
|
||||
# Requires additional statements in the IAM Teleport Policy to be allowed to configure the autoscaling.
|
||||
# See https://goteleport.com/docs/setup/reference/backends/#dynamodb-autoscaling
|
||||
dynamoAutoScaling: false
|
||||
@@ -371,6 +403,20 @@ aws:
|
||||
writeMaxCapacity: null # Integer
|
||||
writeTargetValue: null # Float
|
||||
|
||||
# accessMonitoring configures the Access Monitoring feature of the Auth Service.
|
||||
# Using this features requires setting up specific AWS infrastructure as described
|
||||
# in https://goteleport.com/docs/access-controls/access-monitoring/#configuration
|
||||
# The Terraform example code will output the chart values for this section.
|
||||
accessMonitoring:
|
||||
enabled: false
|
||||
# reportResults is the bucket uri where query results are reported.
|
||||
# Example: "s3://example-athena-long-term/report_results"
|
||||
reportResults: ""
|
||||
# roleARN is the ARN of the role that is assumed to run the reports.
|
||||
roleARN: ""
|
||||
# workgroup is the Athena workgroup in which Teleport runs queries.
|
||||
workgroup: ""
|
||||
|
||||
##################################################
|
||||
# GCP-specific settings (only used in "gcp" mode)
|
||||
##################################################
|
||||
@@ -573,6 +619,44 @@ annotations:
|
||||
# Annotations for the Ingress object
|
||||
ingress: {}
|
||||
|
||||
# extraLabels -- contains additional Kubernetes labels to apply on the resources
|
||||
# created by the chart.
|
||||
# See [the Kubernetes label documentation
|
||||
# ](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/)
|
||||
# for more information.
|
||||
#
|
||||
# Note: for PodMonitor labels, see `podMonitor.additionalLabels` instead.
|
||||
extraLabels:
|
||||
# extraLabels.certSecret(object) -- are labels to set on the certificate secret
|
||||
# generated by cert-manager v1.5+ when `highAvailability.certManager.enabled`
|
||||
# is true.
|
||||
certSecret: {}
|
||||
# extraLabels.clusterRole(object) -- are labels to set on the ClusterRole.
|
||||
clusterRole: {}
|
||||
# extraLabels.clusterRoleBinding(object) -- are labels to set on the ClusterRoleBinding.
|
||||
clusterRoleBinding: {}
|
||||
# extraLabels.role(object) -- are labels to set on the Role.
|
||||
config: {}
|
||||
# extraLabels.deployment(object) -- are labels to set on the Deployment.
|
||||
deployment: {}
|
||||
# extraLabels.ingress(object) -- are labels to set on the Ingress.
|
||||
ingress: {}
|
||||
# extraLabels.job(object) -- are labels to set on the Job run by the Helm hook.
|
||||
job: {}
|
||||
# extraLabels.persistentVolumeClaim(object) -- are labels to set on the PersistentVolumeClaim.
|
||||
persistentVolumeClaim: {}
|
||||
# extraLabels.pod(object) -- are labels to set on the Pods created by the
|
||||
# Deployment.
|
||||
pod: {}
|
||||
# extraLabels.podDisruptionBudget(object) -- are labels to set on the podDisruptionBudget.
|
||||
podDisruptionBudget: {}
|
||||
# extraLabels.secret(object) -- are labels to set on the Secret.
|
||||
secret: {}
|
||||
# extraLabels.service(object) -- are labels to set on the Service.
|
||||
service: {}
|
||||
# extraLabels.serviceAccount(object) -- are labels to set on the ServiceAccount.
|
||||
serviceAccount: {}
|
||||
|
||||
# Kubernetes service account to create/use.
|
||||
serviceAccount:
|
||||
# Specifies whether a ServiceAccount should be created
|
||||
@@ -676,6 +760,10 @@ resources: {}
|
||||
# limits:
|
||||
# memory: "2Gi"
|
||||
|
||||
# Pod security context for any pods created by the chart
|
||||
podSecurityContext: {}
|
||||
# fsGroup: 65532
|
||||
|
||||
# Security context to add to the container
|
||||
securityContext: {}
|
||||
# runAsUser: 99
|
||||
|
||||
Reference in New Issue
Block a user