diff --git a/amphora-service/charts/amphora/templates/deployment.yaml b/amphora-service/charts/amphora/templates/deployment.yaml index d100c22..7600c96 100644 --- a/amphora-service/charts/amphora/templates/deployment.yaml +++ b/amphora-service/charts/amphora/templates/deployment.yaml @@ -44,6 +44,12 @@ spec: value: {{ .Values.amphora.springActiveProfiles }} - name: CASTOR_SERVICE_URI value: "{{ .Values.amphora.castor.serviceUri }}" + - name: AMPHORA_USER_ID_FIELD_NAME + value: "{{ .Values.auth.userIdFieldName }}" + - name: AMPHORA_OPA_DEFAULT_POLICY_PACKAGE + value: "{{ .Values.opa.defaultPolicyPackage }}" + - name: AMPHORA_OPA_URL + value: "{{ .Values.opa.endpoint }}" - name: MAC_KEY value: "{{ .Values.spdz.macKey }}" - name: SPDZ_PRIME diff --git a/amphora-service/charts/amphora/values.yaml b/amphora-service/charts/amphora/values.yaml index 17d995b..9c49182 100644 --- a/amphora-service/charts/amphora/values.yaml +++ b/amphora-service/charts/amphora/values.yaml @@ -73,3 +73,10 @@ spdz: prime: "" r: "" rInv: "" + +auth: + userIdFieldName: "sub" + +opa: + defaultPolicyPackage: "default" + endpoint: "http://opa.default.svc.cluster.local:8081/" \ No newline at end of file