Skip to content

Commit

Permalink
HPCC-32273 Ensure all secret categories are present in the values schema
Browse files Browse the repository at this point in the history
Signed-off-by: Gavin Halliday <[email protected]>
  • Loading branch information
ghalliday committed Jul 24, 2024
1 parent 466476f commit 39e33a1
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 16 deletions.
2 changes: 1 addition & 1 deletion helm/hpcc/templates/issuers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ spec:
{{- range $k, $v := .Values.certificates.issuers }}
{{- include "hpcc.addIssuer" (dict "root" $ "issuerKeyName" $k "me" $v ) }}
{{- end }}
{{- $categories := list "system" "storage" "esp" "codeSign" "codeVerify" "authn" "eclUser" "ecl" "git" "jfrog" -}}
{{- $categories := list "authn" "codeSign" "codeVerify" "ecl" "eclUser" "esp" "git" "jfrog" "storage" "system" -}}
{{- range $category := $categories }}
{{ include "hpcc.addVaultClientCertificate" (dict "root" $ "category" $category) }}
{{- end }}
Expand Down
36 changes: 21 additions & 15 deletions helm/hpcc/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,13 @@
"timeout": {
"type": "integer"
},
"storage": {
"authn": {
"$ref": "#/definitions/secrets"
},
"authn": {
"codeSign": {
"$ref": "#/definitions/secrets"
},
"codeVerify": {
"$ref": "#/definitions/secrets"
},
"ecl": {
Expand All @@ -81,20 +84,19 @@
"eclUser": {
"$ref": "#/definitions/secrets"
},
"codeSign": {
"esp": {
"$ref": "#/definitions/secrets"
},
"codeVerify": {
"git": {
"$ref": "#/definitions/secrets"
},
"git": {
"jfrog": {
"$ref": "#/definitions/secrets"
},
"system": {
"storage": {
"$ref": "#/definitions/secrets"
}
,
"esp": {
},
"system": {
"$ref": "#/definitions/secrets"
}
},
Expand All @@ -107,13 +109,13 @@
"timeout": {
"type": "integer"
},
"storage": {
"authn": {
"$ref": "#/definitions/vaultCategory"
},
"authn": {
"codeSign": {
"$ref": "#/definitions/vaultCategory"
},
"esp": {
"codeVerify": {
"$ref": "#/definitions/vaultCategory"
},
"ecl": {
Expand All @@ -122,16 +124,20 @@
"eclUser": {
"$ref": "#/definitions/vaultCategory"
},
"codeSign": {
"esp": {
"$ref": "#/definitions/vaultCategory"
},
"codeVerify": {
"git": {
"$ref": "#/definitions/vaultCategory"
},
"git": {
"jfrog": {
"$ref": "#/definitions/vaultCategory"
},
"storage": {
"$ref": "#/definitions/vaultCategory"
}
},
"$comment": "The system secrets are used for vault configuration so cannot themselves be defined in a vault",
"additionalProperties": false
},
"bundles": {
Expand Down

0 comments on commit 39e33a1

Please sign in to comment.