From 7db037722488ad1cf4de29280538ce194e44a995 Mon Sep 17 00:00:00 2001 From: Matt McNaughton Date: Thu, 24 May 2018 16:17:32 -0400 Subject: [PATCH] [incubator/couchdb] Increase default passwd length (#5661) * [incubator/couchdb] Increase default passwd length By default, `couchdb` will generate a secrets for a default username/password. Previously, the default length for those was 10 chars. Bump the default password length to 20 as there's no real cost, and it provides slightly more security. I tested with `kubectl get secrets RELEASE_NAME -o json | jq .data.adminPassword | sed 's/"//g' | base64 --decode` to verify the password was previously 10 chars, and is now 20 charts. * Update Chart.yaml --- incubator/couchdb/Chart.yaml | 2 +- incubator/couchdb/templates/_helpers.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/incubator/couchdb/Chart.yaml b/incubator/couchdb/Chart.yaml index adedfe1cf0..f1262e929c 100644 --- a/incubator/couchdb/Chart.yaml +++ b/incubator/couchdb/Chart.yaml @@ -1,5 +1,5 @@ name: couchdb -version: 0.1.5 +version: 0.1.6 appVersion: 2.1.1 description: A database featuring seamless multi-master sync, that scales from big data to mobile, with an intuitive HTTP/JSON API and designed for diff --git a/incubator/couchdb/templates/_helpers.tpl b/incubator/couchdb/templates/_helpers.tpl index 9586171b3b..0b2a940740 100644 --- a/incubator/couchdb/templates/_helpers.tpl +++ b/incubator/couchdb/templates/_helpers.tpl @@ -31,6 +31,6 @@ Create a random string if the supplied key does not exist {{- if . -}} {{- . | b64enc | quote -}} {{- else -}} -{{- randAlphaNum 10 | b64enc | quote -}} +{{- randAlphaNum 20 | b64enc | quote -}} {{- end -}} {{- end -}}