Skip to content

Commit

Permalink
fix: configMap formatting, issuer, etc
Browse files Browse the repository at this point in the history
  • Loading branch information
james-d-elliott committed Feb 15, 2021
1 parent e8de92f commit a7fbb83
Show file tree
Hide file tree
Showing 5 changed files with 1,339 additions and 339 deletions.
2 changes: 1 addition & 1 deletion charts/authelia/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: authelia
version: 0.1.2
version: 0.1.3
kubeVersion: ">= 1.13.0"
description: Authelia is a Single Sign-On Multi-Factor portal for web apps
type: application
Expand Down
22 changes: 22 additions & 0 deletions charts/authelia/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,26 @@
not recommended at this stage for production environments without manual intervention to check the templated manifests
match your desired state.

# Getting Started

Visit https://charts.authelia.com and follow the instructions to install the chart repo.

A more in depth guide is coming. Some key points below.

The chart values.yaml is configured by default for production environments. It expects you will configure the following
sections:

- domain (this is essential for the chart to work)
- configMap (the configMap follows a majority of the configuration options
in [the documentation](https://www.authelia.com/docs/configuration))
- secret section to setup passwords and other secret information, configuring this directly is not supported

# TODO

- CI:
- [ ] helm lint
- [ ] renovate
- [ ] yamllint config
- [ ] [chart-testing](https://github.com/helm/chart-testing)
- [ ] [chart-releaser](https://github.com/helm/chart-releaser)
- [ ] Ensure no changes to the following files can be merged without a version bump to Chart.yaml:
Expand All @@ -25,6 +40,13 @@ match your desired state.
- TraefikCRD:
- [x] IngressRoute
- [x] Middleware
- Validation:
- [ ] Add validation checks for defined providers (allow one)
- [ ] Add Statefulness validation
- [ ] Setup volumeClaimTemplates for stateful installs
- Ingress:
- [ ] Test ingress-nginx
- [ ] Test traefikCRD tls
- Values Schema:
- Future Notes?
- [x] https://github.com/CesiumGS/wetzel
Expand Down
17 changes: 11 additions & 6 deletions charts/authelia/templates/configMap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ metadata:
{{- end }}
data:
{{ default "configuration.yml" .Values.configMap.key }}: |
---
host: 0.0.0.0
port: {{ default 9091 .Values.configMap.port }}
theme: {{ default "light" .Values.configMap.theme }}
Expand All @@ -20,7 +21,7 @@ data:
{{- end }}
server: {{ toYaml .Values.configMap.server | nindent 6 }}
totp:
issuer: {{ .Values.domain }}
issuer: {{ default .Values.domain .Values.configMap.totp.issuer }}
period: {{ default 30 .Values.configMap.totp.period }}
skew: {{ default 1 .Values.configMap.totp.skew }}
{{- with $duoApi := .Values.configMap.duo_api }}
Expand All @@ -36,7 +37,7 @@ data:
{{- end }}
session:
name: {{ default "authelia_session" .Values.configMap.session.name }}
domain: {{ .Values.domain }}
domain: {{ required "A valid .Values.domain entry required!" .Values.domain }}
expiration: {{ default "1M" .Values.configMap.session.expiration }}
inactivity: {{ default "5m" .Values.configMap.session.inactivity }}
remember_me_duration: {{ default "1M" .Values.configMap.session.remember_me_duration }}
Expand All @@ -46,18 +47,22 @@ data:
regulation: {{ toYaml .Values.configMap.regulation | nindent 6 }}
storage:
{{- with $local := .Values.configMap.storage.local }}
local: {{ toYaml . | nindent 8 }}
local: {{ toYaml $local | nindent 8 }}
{{- end }}
{{- with $mysql := .Values.configMap.storage.mysql }}
mysql: {{ toYaml $mysql | nindent 8 }}
{{- end }}
{{- with $postgres := .Values.configMap.storage.postgres }}
postgres: {{ toYaml . | nindent 8 }}
postgres: {{ toYaml $postgres | nindent 8 }}
{{- end }}
{{- with $smtp := .Values.configMap.notifier.smtp }}
notifier:
disable_startup_check: {{ $.Values.configMap.notifier.disable_startup_check }}
{{- with $filesystem := .Values.configMap.notifier.filesystem }}
filesystem: {{ toYaml $filesystem | nindent 8 }}
{{- end }}
{{- with $smtp := .Values.configMap.notifier.smtp }}
smtp: {{ toYaml $smtp | nindent 8 }}
{{- end }}
access_control: {{ toYaml .Values.configMap.access_control | nindent 6 }}
{{- end }}
{{- end }}
...
Loading

0 comments on commit a7fbb83

Please sign in to comment.