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 Jun 7, 2024
1 parent 362671f commit 1b9d6d3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions charts/datahub/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ description: A Helm chart for LinkedIn 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.16
version: 0.4.17
# 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
dependencies:
- name: datahub-gms
version: 0.2.169
version: 0.2.170
repository: file://./subcharts/datahub-gms
condition: datahub-gms.enabled
- name: datahub-frontend
Expand Down
2 changes: 1 addition & 1 deletion charts/datahub/subcharts/datahub-gms/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ description: A Helm chart for LinkedIn DataHub's datahub-gms component
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.2.169
version: 0.2.170
# 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: v0.13.1
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 1b9d6d3

Please sign in to comment.