You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en/security/workload_security/spire.mdx
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -162,6 +162,23 @@ metadata:
162
162
name: server-sa
163
163
namespace: example
164
164
---
165
+
apiVersion: v1
166
+
kind: Service
167
+
metadata:
168
+
name: server-workload
169
+
spec:
170
+
internalTrafficPolicy: Cluster
171
+
ports:
172
+
- appProtocol: tcp
173
+
name: web
174
+
port: 8443
175
+
protocol: TCP
176
+
targetPort: 8443
177
+
selector:
178
+
app: server-workload
179
+
sessionAffinity: None
180
+
type: ClusterIP
181
+
---
165
182
apiVersion: apps/v1
166
183
kind: Deployment
167
184
metadata:
@@ -216,6 +233,8 @@ spec:
216
233
name: spiffe-socket
217
234
```
218
235
236
+
* The `--allow-uri` flag in the `ghostunnel` configuration specifies the SPIFFE ID of the client workload that is allowed to connect to the server. In this example, only the client workload with the SPIFFE ID `spiffe://example.org/ns/example/sa/client-sa` is allowed to connect to the server.
* The `--verify-uri` flag in the `ghostunnel` configuration specifies the SPIFFE ID of the server workload that the client workload is allowed to connect to. In this example, only the server workload with the SPIFFE ID `spiffe://example.org/ns/example/sa/server-sa` is allowed to connect to the client workload.
0 commit comments