[stable/cerebro] Enables use of Cerebro provided auth (#14506)

* Adding auth options, based on env vars

Imported from app, https://github.com/lmenezes/cerebro/blob/f2ed031fd89258c6ad85d40d846f5ff1f610fe73/conf/application.conf

Signed-off-by: Wilfrido Vidana <wvidanas@gmail.com>

* Ability to use env vars from a secret reference

Signed-off-by: Wilfrido Vidana <wvidanas@gmail.com>

* Update README with more info

Signed-off-by: Wilfrido Vidana <wvidanas@gmail.com>

* Verison bump - new functionality

Signed-off-by: Wilfrido Vidana <wvidanas@gmail.com>

* Update stable/cerebro/Chart.yaml

Co-Authored-By: David J. M. Karlsen <davidkarlsen@gmail.com>
Signed-off-by: Wilfrido Vidana <wvidanas@gmail.com>
This commit is contained in:
Wilfrido Vidana
2019-06-17 06:22:09 -07:00
committed by Kubernetes Prow Robot
co-authored by David J. M. Karlsen
parent 14b7034e9b
commit 7897a366d8
5 changed files with 32 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: cerebro
version: 1.0.2
version: 1.1.0
appVersion: 0.8.3
apiVersion: v1
description: A Helm chart for Cerebro - a web admin tool that replaces Kopf.
+2
View File
@@ -6,6 +6,7 @@ Cerebro is an open source (MIT License) elasticsearch web admin tool built using
This chart deploys Cerebro to your cluster via a Deployment and Service.
Optionally you can also enable ingress.
Optionally you can use cerebro provided auth by uploading a Secret with the needed env vars (don't forget to set `AUTH_TYPE`).
# Prerequisites
@@ -61,6 +62,7 @@ The following table lists the configurable parameters of the cerebro chart and t
| `nodeSelector` | Settings for nodeselector | `{}` |
| `tolerations` | Settings for toleration | `{}` |
| `affinity` | Settings for affinity | `{}` |
| `envFromSecretRef` | Reference to Secret with env vars | |
| `config.basePath` | Application base path | `/` |
| `config.restHistorySize` | Rest request history size per user | `50` |
| `config.hosts` | A list of known hosts | `[]` |
+21
View File
@@ -28,6 +28,27 @@ data:
}
auth = {
# either basic or ldap
type: ${?AUTH_TYPE}
settings {
# LDAP
url = ${?LDAP_URL}
base-dn = ${?LDAP_BASE_DN}
method = ${?LDAP_METHOD}
user-template = ${?LDAP_USER_TEMPLATE}
bind-dn = ${?LDAP_BIND_DN}
bind-pw = ${?LDAP_BIND_PWD}
group-search {
base-dn = ${?LDAP_GROUP_BASE_DN}
user-attr = ${?LDAP_USER_ATTR}
user-attr-template = ${?LDAP_USER_ATTR_TEMPLATE}
group = ${?LDAP_GROUP}
}
# Basic auth
username = ${?BASIC_AUTH_USER}
password = ${?BASIC_AUTH_PWD}
}
}
hosts = [
+5
View File
@@ -54,6 +54,11 @@ spec:
mountPath: /var/db/cerebro
- name: config
mountPath: /etc/cerebro
{{- if .Values.envFromSecretRef }}
envFrom:
- secretRef:
name: "{{ .Values.envFromSecretRef }}"
{{- end }}
livenessProbe:
httpGet:
path: /
+3
View File
@@ -52,6 +52,9 @@ tolerations: []
affinity: {}
# Reference to a Secret object with environment variables
# envFromSecretRef: 'my-secret-ref'
config:
basePath: '/'
restHistorySize: 50