-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
647 additions
and
246 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
#pkg:golang/k8s.io/[email protected] | ||
CVE-2020-8561 until=2024-01-08 # k8s.io/[email protected] | ||
CVE-2023-47108 until=2024-01-08 # go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ include "resource.default.name" . }} | ||
namespace: {{ include "resource.default.namespace" . }} | ||
labels: | ||
{{- include "labels.common" . | nindent 4 }} | ||
type: Opaque | ||
data: | ||
appCatalog: {{ .Values.teleport.appCatalog | quote }} | ||
appName: {{ .Values.teleport.appName | quote }} | ||
appVersion: {{ .Values.teleport.appVersion | quote }} | ||
managementClusterName: {{ .Values.teleport.managementClusterName | quote }} | ||
proxyAddr: {{ .Values.teleport.proxyAddr | quote }} | ||
teleportVersion: {{ .Values.teleport.teleportVersion | quote }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,4 +32,5 @@ spec: | |
volumes: | ||
- 'projected' | ||
- 'secret' | ||
- 'configMap' | ||
{{- end }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ include "resource.default.name" . }}-tbot-config | ||
namespace: {{ include "resource.default.namespace" . }} | ||
labels: | ||
{{- include "labels.common" . | nindent 4 }} | ||
data: | ||
tbot.yaml: | | ||
version: v2 | ||
onboarding: | ||
join_method: kubernetes | ||
# ensure token is set to the name of the join token you created earlier | ||
token: {{ .Values.teleport.managementClusterName }}-bot | ||
storage: | ||
# a memory destination is used for the bots own state since the kubernetes | ||
# join method does not require persistence. | ||
type: memory | ||
# ensure this is configured to the address of your Teleport Proxy or | ||
# Auth Server. Prefer the address of the Teleport Proxy. | ||
auth_server: {{ .Values.teleport.proxyAddr }} | ||
# outputs will be filled in during the completion of an access guide. | ||
outputs: | ||
- type: identity | ||
destination: | ||
type: kubernetes_secret | ||
name: identity-output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: {{ include "resource.default.name" . }}-tbot | ||
namespace: {{ include "resource.default.namespace" . }} | ||
labels: | ||
{{- include "labels.common" . | nindent 4 }} | ||
spec: | ||
replicas: 1 | ||
strategy: | ||
type: Recreate | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: tbot | ||
template: | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: tbot | ||
spec: | ||
securityContext: | ||
runAsUser: {{ .Values.pod.user.id }} | ||
runAsGroup: {{ .Values.pod.group.id }} | ||
{{- with .Values.podSecurityContext }} | ||
{{- . | toYaml | nindent 8 }} | ||
{{- end }} | ||
containers: | ||
- name: tbot | ||
image: public.ecr.aws/gravitational/teleport:{{ .Values.teleport.teleportVersion }} | ||
command: | ||
- tbot | ||
args: | ||
- start | ||
- -c | ||
- /config/tbot.yaml | ||
env: | ||
# POD_NAMESPACE is required for the kubernetes_secret` destination | ||
# type to work correctly. | ||
- name: POD_NAMESPACE | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: metadata.namespace | ||
# KUBERNETES_TOKEN_PATH specifies the path to the service account | ||
# JWT to use for joining. | ||
# This path is based on the configuration of the volume and | ||
# volumeMount. | ||
- name: KUBERNETES_TOKEN_PATH | ||
value: /var/run/secrets/tokens/join-sa-token | ||
volumeMounts: | ||
- mountPath: /config | ||
name: config | ||
- mountPath: /var/run/secrets/tokens | ||
name: join-sa-token | ||
securityContext: | ||
{{- with .Values.containerSecurityContext }} | ||
{{- . | toYaml | nindent 10 }} | ||
{{- end }} | ||
resources: | ||
{{- toYaml .Values.resources | nindent 10 }} | ||
serviceAccountName: {{ include "resource.default.name" . }} | ||
volumes: | ||
- name: config | ||
configMap: | ||
name: {{ include "resource.default.name" . }}-tbot-config | ||
- name: join-sa-token | ||
projected: | ||
sources: | ||
- serviceAccountToken: | ||
path: join-sa-token | ||
# 600 seconds is the minimum that Kubernetes supports. We | ||
# recommend this value is used. | ||
expirationSeconds: 600 | ||
# `example.teleport.sh` must be replaced with the name of | ||
# your Teleport cluster. | ||
audience: {{ .Values.teleport.teleportClusterName }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.