From 1b9d6d3ed7f465be838239c0f8c95395f442635b Mon Sep 17 00:00:00 2001 From: Masterchen09 <13187726+Masterchen09@users.noreply.github.com> Date: Sun, 26 May 2024 14:27:05 +0200 Subject: [PATCH] feat: add configuration option to enable REST API authorizations --- charts/datahub/Chart.yaml | 4 ++-- charts/datahub/subcharts/datahub-gms/Chart.yaml | 2 +- .../datahub/subcharts/datahub-gms/templates/deployment.yaml | 4 ++++ charts/datahub/subcharts/datahub-gms/values.yaml | 4 ++++ 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/charts/datahub/Chart.yaml b/charts/datahub/Chart.yaml index 906e31e00..8ca981f78 100644 --- a/charts/datahub/Chart.yaml +++ b/charts/datahub/Chart.yaml @@ -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 diff --git a/charts/datahub/subcharts/datahub-gms/Chart.yaml b/charts/datahub/subcharts/datahub-gms/Chart.yaml index 65a6919bf..e2432cd2f 100644 --- a/charts/datahub/subcharts/datahub-gms/Chart.yaml +++ b/charts/datahub/subcharts/datahub-gms/Chart.yaml @@ -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 diff --git a/charts/datahub/subcharts/datahub-gms/templates/deployment.yaml b/charts/datahub/subcharts/datahub-gms/templates/deployment.yaml index 2b3b7337e..4852398f9 100644 --- a/charts/datahub/subcharts/datahub-gms/templates/deployment.yaml +++ b/charts/datahub/subcharts/datahub-gms/templates/deployment.yaml @@ -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" diff --git a/charts/datahub/subcharts/datahub-gms/values.yaml b/charts/datahub/subcharts/datahub-gms/values.yaml index 868cc48d5..6a718de60 100644 --- a/charts/datahub/subcharts/datahub-gms/values.yaml +++ b/charts/datahub/subcharts/datahub-gms/values.yaml @@ -229,6 +229,10 @@ global: # systemClientSecret: # secretRef: # secretKey: + restApi: + authorization: + # enables authorization of reads, writes, and deletes on REST APIs + enabled: false view: authorization: # search/view authorization filters