Skip to content

Commit

Permalink
Merge pull request #28 from maykinmedia/2fa-openinwoner-openforms
Browse files Browse the repository at this point in the history
♻️ 2fa openinwoner and openforms
  • Loading branch information
sjoerdie authored Apr 6, 2023
2 parents 3716d28 + 3132fbf commit 62b5887
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 12 deletions.
2 changes: 1 addition & 1 deletion charts/openforms/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: openforms
description: Snel en eenvoudig slimme formulieren bouwen en publiceren

type: application
version: 1.0.6
version: 1.0.7
appVersion: 2.0.5

dependencies:
Expand Down
6 changes: 4 additions & 2 deletions charts/openforms/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# openforms

![Version: 1.0.6](https://img.shields.io/badge/Version-1.0.6-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.0.5](https://img.shields.io/badge/AppVersion-2.0.5-informational?style=flat-square)
![Version: 1.0.7](https://img.shields.io/badge/Version-1.0.7-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.0.5](https://img.shields.io/badge/AppVersion-2.0.5-informational?style=flat-square)

Snel en eenvoudig slimme formulieren bouwen en publiceren

Expand All @@ -10,6 +10,7 @@ Snel en eenvoudig slimme formulieren bouwen en publiceren
helm repo add my-repo https://maykinmedia.github.io/charts/
helm install my-release my-repo/openforms
```

## Requirements

| Repository | Name | Version |
Expand Down Expand Up @@ -172,7 +173,8 @@ helm install my-release my-repo/openforms
| settings.throttling.rateAnonymous | string | `""` | |
| settings.throttling.ratePolling | string | `""` | |
| settings.throttling.rateUser | string | `""` | |
| settings.twoFactorAuthentication | bool | `true` | |
| settings.twoFactorAuthentication.forceOtpAdmin | bool | `true` | Enforce 2 Factor Authentication in the admin or not. Default True. You'll probably want to disable this when using OIDC. |
| settings.twoFactorAuthentication.patchAdmin | bool | `true` | Whether to use the 2 Factor Authentication login flow for the admin or not. Default True. You'll probably want to disable this when using OIDC. |
| settings.useXForwardedHost | bool | `false` | |
| settings.uwsgi.harakiri | string | `""` | |
| settings.uwsgi.master | bool | `false` | |
Expand Down
4 changes: 2 additions & 2 deletions charts/openforms/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ data:
{{- if .Values.settings.elasticapm.url }}
ELASTIC_APM_SERVICE_NAME: {{ .Values.settings.elasticapm.serviceName | toString | quote }}
{{- end }}
TWO_FACTOR_FORCE_OTP_ADMIN: {{ if .Values.settings.twoFactorAuthentication }}"True"{{ else }}"False"{{ end }}
TWO_FACTOR_PATCH_ADMIN: {{ if .Values.settings.twoFactorAuthentication }}"True"{{ else }}"False"{{ end }}
TWO_FACTOR_FORCE_OTP_ADMIN: {{ if .Values.settings.twoFactorAuthentication.forceOtpAdmin }}"True"{{ else }}"False"{{ end }}
TWO_FACTOR_PATCH_ADMIN: {{ if .Values.settings.twoFactorAuthentication.patchAdmin }}"True"{{ else }}"False"{{ end }}
CELERY_WORKER_CONCURRENCY: {{ .Values.worker.concurrency | toString | quote }}
MAX_FILE_UPLOAD_SIZE: {{ .Values.settings.maxFileUpload | toString | quote }}
ENABLE_THROTTLING: {{ if .Values.settings.throttling.enable }}"True"{{ else }}"False"{{ end }}
Expand Down
6 changes: 5 additions & 1 deletion charts/openforms/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,11 @@ settings:

debug: false

twoFactorAuthentication: true
twoFactorAuthentication:
# -- Enforce 2 Factor Authentication in the admin or not. Default True. You'll probably want to disable this when using OIDC.
forceOtpAdmin: true
# -- Whether to use the 2 Factor Authentication login flow for the admin or not. Default True. You'll probably want to disable this when using OIDC.
patchAdmin: true

# -- Configure the maximum allowed file upload size
maxFileUpload: 50M
Expand Down
2 changes: 1 addition & 1 deletion charts/openinwoner/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: openinwoner
description: Platform voor gemeenten en overheden om producten inzichtelijker en toegankelijker te maken voor inwoners.

type: application
version: 0.9.4
version: 0.9.5
appVersion: "1.3"

dependencies:
Expand Down
6 changes: 4 additions & 2 deletions charts/openinwoner/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# openinwoner

![Version: 0.9.4](https://img.shields.io/badge/Version-0.9.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.3](https://img.shields.io/badge/AppVersion-1.3-informational?style=flat-square)
![Version: 0.9.5](https://img.shields.io/badge/Version-0.9.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.3](https://img.shields.io/badge/AppVersion-1.3-informational?style=flat-square)

Platform voor gemeenten en overheden om producten inzichtelijker en toegankelijker te maken voor inwoners.

Expand All @@ -10,6 +10,7 @@ Platform voor gemeenten en overheden om producten inzichtelijker en toegankelijk
helm repo add my-repo https://maykinmedia.github.io/charts/
helm install my-release my-repo/openinwoner
```

## Requirements

| Repository | Name | Version |
Expand Down Expand Up @@ -135,7 +136,8 @@ helm install my-release my-repo/openinwoner
| settings.loadFixtures | bool | `false` | Will load all fixtures in /app/src/open_inwoner/conf/fixtures/*.json |
| settings.secretKey | string | `""` | Generate secret key at https://djecrety.ir/ |
| settings.sentry.dsn | string | `""` | |
| settings.twoFactorAuthentication | bool | `true` | |
| settings.twoFactorAuthentication.forceOtpAdmin | bool | `true` | Enforce 2 Factor Authentication in the admin or not. Default True. You'll probably want to disable this when using OIDC. |
| settings.twoFactorAuthentication.patchAdmin | bool | `true` | Whether to use the 2 Factor Authentication login flow for the admin or not. Default True. You'll probably want to disable this when using OIDC. |
| settings.useXForwardedHost | bool | `true` | |
| settings.uwsgi.harakiri | string | `""` | |
| settings.uwsgi.master | bool | `false` | |
Expand Down
4 changes: 2 additions & 2 deletions charts/openinwoner/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ data:
{{- if .Values.settings.elasticapm.url }}
ELASTIC_APM_SERVICE_NAME: {{ .Values.settings.elasticapm.serviceName | toString | quote }}
{{- end }}
TWO_FACTOR_FORCE_OTP_ADMIN: {{ if .Values.settings.twoFactorAuthentication }}"True"{{ else }}"False"{{ end }}
TWO_FACTOR_PATCH_ADMIN: {{ if .Values.settings.twoFactorAuthentication }}"True"{{ else }}"False"{{ end }}
TWO_FACTOR_FORCE_OTP_ADMIN: {{ if .Values.settings.twoFactorAuthentication.forceOtpAdmin }}"True"{{ else }}"False"{{ end }}
TWO_FACTOR_PATCH_ADMIN: {{ if .Values.settings.twoFactorAuthentication.patchAdmin }}"True"{{ else }}"False"{{ end }}
{{- if .Values.settings.uwsgi.master }}
UWSGI_MASTER: {{ if .Values.settings.uwsgi.master }}"1"{{ else }}"0"{{ end }}
{{- end }}
Expand Down
6 changes: 5 additions & 1 deletion charts/openinwoner/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,11 @@ settings:

debug: false

twoFactorAuthentication: true
twoFactorAuthentication:
# -- Enforce 2 Factor Authentication in the admin or not. Default True. You'll probably want to disable this when using OIDC.
forceOtpAdmin: true
# -- Whether to use the 2 Factor Authentication login flow for the admin or not. Default True. You'll probably want to disable this when using OIDC.
patchAdmin: true

uwsgi:
master: false
Expand Down

0 comments on commit 62b5887

Please sign in to comment.