Bump teleport to version 15.3.3

This commit is contained in:
2024-05-10 20:56:53 +08:00
parent c7413eae10
commit df6da4aabb
236 changed files with 6866 additions and 1322 deletions
@@ -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