Skip to content

Commit

Permalink
feat(feedbacksystem): add brute force protection configuration (#84)
Browse files Browse the repository at this point in the history
* feat(feedbacksystem): add brute force protection configuration

* chore(feedbacksystem): bump version to 0.31.0
  • Loading branch information
Zitrone44 authored Nov 15, 2023
1 parent 4c95e9e commit 5c9c106
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/feedbacksystem/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ sources:
- https://github.com/thm-mni-ii/feedbacksystem
home: https://github.com/thm-mni-ii/feedbacksystem
type: application
version: 0.30.0
version: 0.31.0
# renovate: image=thmmniii/fbs-core
appVersion: v1.12.0
dependencies:
Expand Down
10 changes: 10 additions & 0 deletions charts/feedbacksystem/templates/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,13 @@ metadata:
data:
bind_password: {{ .Values.core.config.ldap.bind.password | b64enc | quote }}
{{ end }}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Release.Name }}-anti-brute-force
data:
trusted_proxy_count: {{ .Values.core.config.antiBruteForce.trustedProxyCount | quote }}
interval: {{ .Values.core.config.antiBruteForce.interval | quote }}
max_attempts: {{ .Values.core.config.antiBruteForce.maxAttempts | quote }}
allow_list: {{ .Values.core.config.antiBruteForce.allowList | join "," | quote }}
20 changes: 20 additions & 0 deletions charts/feedbacksystem/templates/core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,26 @@ spec:
name: {{ .Release.Name }}-ldap
key: attribute_mail
{{ end }}
- name: TRUSTED_PROXIES
valueFrom:
configMapKeyRef:
name: {{ .Release.Name }}-anti-brute-force
key: trusted_proxy_count
- name: BRUTEFORCE_INTERVAL
valueFrom:
configMapKeyRef:
name: {{ .Release.Name }}-anti-brute-force
key: interval
- name: BRUTEFORCE_ATTEMPTS
valueFrom:
configMapKeyRef:
name: {{ .Release.Name }}-anti-brute-force
key: max_attempts
- name: BRUTEFORCE_ALLOW_LIST
valueFrom:
configMapKeyRef:
name: {{ .Release.Name }}-anti-brute-force
key: allow_list
resources:
requests:
cpu: {{ .Values.core.resources.cpu.request }}
Expand Down
5 changes: 5 additions & 0 deletions charts/feedbacksystem/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ core:
digitalClassroom: # Overwritten if digitalClassroom.enabled
url: "https://bbb.feedback.example.org"
secret: "1234"
antiBruteForce:
trustedProxyCount: 0
interval: 600
maxAttempts: 10
allowList: []
ingressRoute:
enabled: false

Expand Down

0 comments on commit 5c9c106

Please sign in to comment.