Skip to content

Commit

Permalink
feat: add configuration option to enable REST API authorizations
Browse files Browse the repository at this point in the history
  • Loading branch information
Masterchen09 committed Jul 18, 2024
1 parent c8d01c4 commit aa0b94e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/datahub/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: A Helm chart for DataHub
type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 0.4.19
version: 0.4.20
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
appVersion: 0.13.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,10 @@ spec:
secretKeyRef:
name: {{ .Values.global.datahub.metadata_service_authentication.systemClientSecret.secretRef }}
key: {{ .Values.global.datahub.metadata_service_authentication.systemClientSecret.secretKey }}
{{- if .Values.global.datahub.metadata_service_authentication.restApi.authorization.enabled }}
- name: REST_API_AUTHORIZATION_ENABLED
value: "true"
{{- end }}
{{- if .Values.global.datahub.metadata_service_authentication.view.authorization.enabled }}
- name: VIEW_AUTHORIZATION_ENABLED
value: "true"
Expand Down
4 changes: 4 additions & 0 deletions charts/datahub/subcharts/datahub-gms/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,10 @@ global:
# systemClientSecret:
# secretRef: <secret-ref>
# secretKey: <secret-key>
restApi:
authorization:
# enables authorization of reads, writes, and deletes on REST APIs
enabled: false
view:
authorization:
# search/view authorization filters
Expand Down

0 comments on commit aa0b94e

Please sign in to comment.