Skip to content
Snippets Groups Projects
Commit ab34824b authored by OZGCloud's avatar OZGCloud
Browse files

ozg-3938 disable grpc tls

parent fbbdd328
Branches
Tags
No related merge requests found
...@@ -146,7 +146,8 @@ spec: ...@@ -146,7 +146,8 @@ spec:
value: {{ (.Values.userManager).grpcClientNegotiationType | default "TLS" }} value: {{ (.Values.userManager).grpcClientNegotiationType | default "TLS" }}
- name: grpc_client_info-manager_address - name: grpc_client_info-manager_address
value: {{ ((.Values.ozgcloud).infoManager).address }} value: {{ ((.Values.ozgcloud).infoManager).address }}
- name: grpc_client_info-manager_negotiationType
value: {{ ((.Values.ozgcloud).infoManager).grpcClientNegotiationType | default "TLS" }}
- name: ozgcloud_user-manager_url - name: ozgcloud_user-manager_url
value: {{ include "app.ozgcloud_migration_user-manager_address" . }} value: {{ include "app.ozgcloud_migration_user-manager_address" . }}
- name: ozgcloud_zufi-manager_address - name: ozgcloud_zufi-manager_address
...@@ -222,6 +223,16 @@ spec: ...@@ -222,6 +223,16 @@ spec:
{{- if .Values.disableGrpcTls }} {{- if .Values.disableGrpcTls }}
- name: grpc_server_security_enabled - name: grpc_server_security_enabled
value: "false" value: "false"
- name: grpc_client_pluto_negotiationType
value: PLAINTEXT
- name: grpc_client_vorgang-manager_negotiationType
value: PLAINTEXT
- name: grpc_client_email_negotiationType
value: PLAINTEXT
- name: grpc_client_nachrichten-manager_negotiationType
value: PLAINTEXT
- name: grpc_client_command-manager_negotiationType
value: PLAINTEXT
{{- end }} {{- end }}
{{- if or (.Values.database).useExternal (.Values.ozgcloudProxyApi).apikey }} {{- if or (.Values.database).useExternal (.Values.ozgcloudProxyApi).apikey }}
......
...@@ -28,17 +28,37 @@ release: ...@@ -28,17 +28,37 @@ release:
namespace: sh-helm-test namespace: sh-helm-test
templates: templates:
- templates/deployment.yaml - templates/deployment.yaml
set:
ozgcloud:
environment: dev
imagePullSecret: test-image-pull-secret
tests: tests:
- it: should set the grpc info-manager client address - it: should set the grpc info-manager client address
set: set:
ozgcloud: ozgcloud:
environment: dev
infoManager: infoManager:
address: https://info-manager.my-wonderful-domain.local:9000 address: https://info-manager.my-wonderful-domain.local:9000
imagePullSecret: test-image-pull-secret
asserts: asserts:
- contains: - contains:
path: spec.template.spec.containers[0].env path: spec.template.spec.containers[0].env
content: content:
name: grpc_client_info-manager_address name: grpc_client_info-manager_address
value: https://info-manager.my-wonderful-domain.local:9000 value: https://info-manager.my-wonderful-domain.local:9000
- it: check default info-manager negotiationType
asserts:
- contains:
path: spec.template.spec.containers[0].env
content:
name: grpc_client_info-manager_negotiationType
value: TLS
- it: should set info-manager negotiationType
set:
ozgcloud:
infoManager:
grpcClientNegotiationType: PLAINTEXT
asserts:
- contains:
path: spec.template.spec.containers[0].env
content:
name: grpc_client_info-manager_negotiationType
value: PLAINTEXT
\ No newline at end of file
...@@ -94,3 +94,32 @@ tests: ...@@ -94,3 +94,32 @@ tests:
content: content:
name: grpc_server_security_enabled name: grpc_server_security_enabled
value: "false" value: "false"
- it: should set grpc negotiationType Plaintext
set:
disableGrpcTls: true
asserts:
- contains:
path: spec.template.spec.containers[0].env
content:
name: grpc_client_pluto_negotiationType
value: PLAINTEXT
- contains:
path: spec.template.spec.containers[0].env
content:
name: grpc_client_vorgang-manager_negotiationType
value: PLAINTEXT
- contains:
path: spec.template.spec.containers[0].env
content:
name: grpc_client_email_negotiationType
value: PLAINTEXT
- contains:
path: spec.template.spec.containers[0].env
content:
name: grpc_client_nachrichten-manager_negotiationType
value: PLAINTEXT
- contains:
path: spec.template.spec.containers[0].env
content:
name: grpc_client_command-manager_negotiationType
value: PLAINTEXT
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment