Repository navigation
Expand file tree
/
Copy pathvalues-secret.yaml.template
More file actions
53 lines (48 loc) · 1.75 KB
/
Copy pathvalues-secret.yaml.template
File metadata and controls
53 lines (48 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# A more formal description of this format can be found here:
# https://github.com/hybrid-cloud-patterns/common/tree/main/ansible/roles/vault_utils#values-secret-file-format
version: "2.0"
backingStore: vault
vaultPolicies:
basicPolicy: |
length=10
rule "charset" { charset = "abcdefghijklmnopqrstuvwxyz" min-chars = 1 }
rule "charset" { charset = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" min-chars = 1 }
rule "charset" { charset = "0123456789" min-chars = 1 }
advancedPolicy: |
length=20
rule "charset" { charset = "abcdefghijklmnopqrstuvwxyz" min-chars = 1 }
rule "charset" { charset = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" min-chars = 1 }
rule "charset" { charset = "0123456789" min-chars = 1 }
rule "charset" { charset = "!@#$%^&*" min-chars = 1 }
# Ideally you NEVER COMMIT THESE VALUES TO GIT (although if all passwords are
# automatically generated inside the vault this should not really matter)
secrets:
- name: mysql-credentials
vaultPrefixes:
- global
fields:
- name: rootpasswd
onMissingValue: generate
vaultPolicy: validatedPatternDefaultPolicy
# S4 Web UI login (merged into Kubernetes Secret s4-credentials by vp-s4-storage)
- name: s4-ui-credentials
vaultPrefixes:
- global
fields:
- name: UI_USERNAME
value: s4admin
onMissingValue: error
- name: UI_PASSWORD
onMissingValue: generate
vaultPolicy: validatedPatternDefaultPolicy
# S4 S3 API credentials (used by TempoStack object storage and S4 itself)
- name: s4-api-credentials
vaultPrefixes:
- global
fields:
- name: AWS_ACCESS_KEY_ID
value: s4admin
onMissingValue: error
- name: AWS_SECRET_ACCESS_KEY
onMissingValue: generate
vaultPolicy: validatedPatternDefaultPolicy