Skip to content

Commit

Permalink
Adds security config for dashboard (#673)
Browse files Browse the repository at this point in the history
  • Loading branch information
michbeck100 committed Nov 30, 2023
1 parent 462df93 commit 16662c9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/apisix-dashboard/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ data:
access_log:
file_path: {{ .accessLog.filePath }}
{{- end }}
{{- if .security }}
security:
{{- toYaml .security | nindent 6 }}
{{- end }}
{{- end }}
{{- with .Values.config.authentication }}
authentication:
Expand Down
8 changes: 8 additions & 0 deletions charts/apisix-dashboard/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,14 @@ config:
accessLog:
# -- Error log path
filePath: /dev/stdout
security: {}
# access_control_allow_origin: http://httpbin.org
# access_control_allow_credentials: true # support using custom cors configration
# access_control_allow_headers: "Authorization"
# access_control-allow_methods: "*"
# x_frame_options: "deny"
# content_security_policy: "default-src 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; frame-src xx.xx.xx.xx:3000" # You can set frame-src to provide content for your grafana panel.

# -- Overrides plugins in the APISIX Dashboard conf
plugins: []
authentication:
Expand Down

0 comments on commit 16662c9

Please sign in to comment.