Skip to content

Commit

Permalink
[kots]: collect the user config in support bundles
Browse files Browse the repository at this point in the history
This is redacted to ensure that sensitive data is not included in the
support bundles
  • Loading branch information
Simon Emms committed Aug 6, 2022
1 parent 06a686a commit 03f3d96
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
25 changes: 25 additions & 0 deletions install/kots/manifests/kots-redactor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright (c) 2022 Gitpod GmbH. All rights reserved.
# Licensed under the MIT License. See License-MIT.txt in the project root for license information.

apiVersion: troubleshoot.sh/v1beta2
kind: Redactor
metadata:
name: gitpod
spec:
redactors:
- name: kots-config
fileSelector:
file: kots-config/*/*/*
removals:
yamlPath:
- "spec.values.reg_incluster_storage_s3_secretkey"
- "spec.values.reg_password"
- "spec.values.db_encryption_keys"
- "spec.values.db_gcp_credentials"
- "spec.values.db_password"
- "spec.values.store_azure_access_key"
- "spec.values.store_gcp_credentials"
- "spec.values.store_s3_secret_access_key"
- "spec.values.tls_ca_crt"
- "spec.values.tls_crt"
- "spec.values.tls_key"
14 changes: 14 additions & 0 deletions install/kots/manifests/kots-support-bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,17 @@ spec:
selector:
- app=gitpod
namespace: '{{repl Namespace }}'
- exec:
name: kots-config
selector:
- app=kotsadm
namespace: '{{repl Namespace }}'
command:
- /kots
args:
- get
- config
- --appslug
- '{{repl LicenseFieldValue "numSeats" }}'
- --namespace
- '{{repl Namespace }}'

0 comments on commit 03f3d96

Please sign in to comment.