-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Secure Communication Channels via TLS #75
base: master
Are you sure you want to change the base?
Changes from 8 commits
06e330b
5307aa2
564347f
cb1e102
e168a31
1e88861
206a9ba
f72909b
80d7ec2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,10 +39,16 @@ spec: | |
volumeMounts: | ||
- name: config-volume | ||
mountPath: /etc/config | ||
- name: tls-secret-volume | ||
mountPath: /etc/tls | ||
readOnly: true | ||
volumes: | ||
- name: config-volume | ||
configMap: | ||
name: discovery-config | ||
- name: tls-secret-volume | ||
secret: | ||
secretName: {{ .Values.discovery.tls.secret }} | ||
serviceAccountName: discovery | ||
--- | ||
kind: Service | ||
|
@@ -74,6 +80,7 @@ data: | |
"frontendURL": "{{ .Values.discovery.frontendUrl }}", | ||
"masterHost": "{{ .Values.discovery.master.host }}", | ||
"masterPort": "{{ .Values.discovery.master.port }}", | ||
"tlsEnabled": {{ .Values.discovery.tls.enabled }}, | ||
"slave": {{ if .Values.discovery.isMaster }}false{{ else }}true{{ end }}, | ||
"playerCount": {{ .Values.playerCount }}, | ||
"stateTimeout": "{{ .Values.discovery.stateTimeout }}", | ||
|
@@ -89,12 +96,25 @@ spec: | |
selector: | ||
istio: ingressgateway # use istio default controller | ||
servers: | ||
{{- if .Values.discovery.tls.enabled }} | ||
- port: | ||
number: 31400 | ||
name: grpc-my | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hmm I know it was named |
||
protocol: HTTPS | ||
tls: | ||
mode: MUTUAL # enables mTLS on the Gateway | ||
credentialName: {{ .Values.discovery.tls.secret }} # the name of the Secret that holds the TLS certs and CA certificate | ||
hosts: | ||
- "*" | ||
{{- else }} | ||
- port: | ||
number: 31400 | ||
name: grpc-my | ||
protocol: GRPC | ||
hosts: | ||
- "*" | ||
{{- end }} | ||
|
||
--- | ||
apiVersion: networking.istio.io/v1beta1 | ||
kind: VirtualService | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please update Header |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please update Copyright Header |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please update Copyright Header |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,9 @@ discovery: | |
computationTimeout : "600s" | ||
slave: | ||
connectTimeout: "60s" | ||
tls: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. that's configured 3 times. Eventually make it "global" like |
||
enabled: false | ||
secret: | ||
|
||
ephemeral: | ||
service: | ||
|
@@ -56,6 +59,9 @@ ephemeral: | |
path: "/" | ||
tupleStock: 1000 | ||
frontendUrl: | ||
tls: | ||
enabled: false | ||
secret: | ||
discovery: | ||
host: discovery.default.svc.cluster.local | ||
port: 8080 | ||
|
@@ -81,3 +87,6 @@ networkController: | |
tag: latest | ||
pullPolicy: "IfNotPresent" | ||
pullSecrets: [] | ||
tls: | ||
enabled: false | ||
secret: |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please update Copyright Header |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please update Copyright Header |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ var _ = Describe("Main", func() { | |
} | ||
logger := zap.NewNop().Sugar() | ||
errCh := make(chan error) | ||
cl, mode, err := NewClient(conf, logger, errCh) | ||
cl, mode, err := NewClient(conf, nil, logger, errCh) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. does it make sense to add a test case with a tls config given? |
||
Expect(err).NotTo(HaveOccurred()) | ||
Expect(mode).To(Equal(ModeSlave)) | ||
Expect(cl).NotTo(BeNil()) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please update Copyright Header |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update Copyright Header