-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathonionservice-authorizedclients.yaml
56 lines (50 loc) · 1.53 KB
/
onionservice-authorizedclients.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
# Check https://community.torproject.org/onion-services/advanced/client-auth/
# to learn how to generate client keypairs for your hidden services
# kubectl create secret generic --dry-run=client -o yaml onion-service-client-secret-a \
# --from-literal=publicKey=N2NU7BSRL6YODZCYPN4CREB54TYLKGIE2KYOQWLFYC23ZJVCE5DQ \
# --from-literal=privateKey=ZDUVQQ7IKBXSGR2WWOBNM3VP5ELNOYSSINDK7CAUN2WD7A3EKZWQ
apiVersion: v1
kind: Secret
metadata:
creationTimestamp: null
name: onion-service-client-secret-a
data:
publicKey: TjJOVTdCU1JMNllPRFpDWVBONENSRUI1NFRZTEtHSUUyS1lPUVdMRllDMjNaSlZDRTVEUQ==
privateKey: TjJOVTdCU1JMNllPRFpDWVBONENSRUI1NFRZTEtHSUUyS1lPUVdMRllDMjNaSlZDRTVEUQ==
---
apiVersion: v1
kind: Secret
metadata:
creationTimestamp: null
name: onion-service-client-secret-b
data:
authKey: ZGVzY3JpcHRvcjp4MjU1MTk6TjJOVTdCU1JMNllPRFpDWVBONENSRUI1NFRZTEtHSUUyS1lPUVdMRllDMjNaSlZDRTVEUQ==
---
apiVersion: v1
kind: Secret
metadata:
creationTimestamp: null
name: onion-service-client-secret-c
data:
otherAuthKey: ZGVzY3JpcHRvcjp4MjU1MTk6TjJOVTdCU1JMNllPRFpDWVBONENSRUI1NFRZTEtHSUUyS1lPUVdMRllDMjNaSlZDRTVEUQ==
---
apiVersion: tor.k8s.torproject.org/v1alpha2
kind: OnionService
metadata:
name: example-onion-service
spec:
version: 3
rules:
- port:
number: 80
backend:
service:
name: http-app
port:
number: 8080
authorizedClients:
- name: onion-service-client-secret-a
- name: onion-service-client-secret-b
- name: onion-service-client-secret-c
key: otherAuthKey