-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathwaltid.yaml
167 lines (167 loc) · 5.08 KB
/
waltid.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
---
apiVersion: v1
kind: ConfigMap
metadata:
name: waltid-sm
data:
service-matrix.properties: |
id.walt.services.ecosystems.essif.didebsi.DidEbsiService=id.walt.services.ecosystems.essif.didebsi.WaltIdDidEbsiService
id.walt.services.ecosystems.essif.jsonrpc.JsonRpcService=id.walt.services.ecosystems.essif.jsonrpc.WaltIdJsonRpcService
id.walt.services.vc.JsonLdCredentialService=id.walt.services.vc.WaltIdJsonLdCredentialService
id.walt.services.vc.JwtCredentialService=id.walt.services.vc.WaltIdJwtCredentialService
id.walt.services.crypto.CryptoService=id.walt.services.crypto.SunCryptoService
id.walt.services.keystore.KeyStoreService=id.walt.services.keystore.SqlKeyStoreService
id.walt.services.key.KeyService=id.walt.services.key.WaltIdKeyService
id.walt.services.jwt.JwtService=id.walt.services.jwt.WaltIdJwtService
id.walt.services.vcstore.VcStoreService=id.walt.services.vcstore.FileSystemVcStoreService
id.walt.services.hkvstore.HKVStoreService=id.walt.services.hkvstore.FileSystemHKVStore:config/fsStore.conf
id.walt.services.context.ContextManager=id.walt.services.context.WaltIdContextManager
id.walt.signatory.Signatory=id.walt.signatory.WaltIdSignatory:/config/signatory.conf
id.walt.custodian.Custodian=id.walt.custodian.WaltIdCustodian
id.walt.auditor.Auditor=id.walt.auditor.WaltIdAuditor
id.walt.services.ecosystems.gaiax.GaiaxService=id.walt.services.ecosystems.gaiax.WaltIdGaiaxService
---
apiVersion: v1
kind: ConfigMap
metadata:
name: waltid-cm
data:
walt.yaml: |
hikariDataSource:
autoCommit: false
dataSource:
fullColumnNames: false
journalMode: WAL
jdbcUrl: jdbc:sqlite:data/walt.db
maximumPoolSize: 5
signatory.conf: |
proofConfig {
issuerDid="To-be-decided"
issuerVerificationMethod="todo"
proofType="LD_PROOF"
domain="TEST"
nonce="todo"
}
templatesFolder: "/vc-templates-runtime"
---
apiVersion: v1
kind: ConfigMap
metadata:
name: waltid-templates
data:
BatteryPassAuthCredential.json: |
{
"@context": ["https://www.w3.org/2018/credentials/v1"],
"credentialSchema": {
"id": "https://raw.githubusercontent.com/FIWARE-Ops/batterypass-demonstrator/main/docs/schema.json",
"type": "FullJsonSchemaValidator2021"
},
"credentialSubject": {
"familyName": "Happy",
"firstName": "User",
"email": "test@test.test",
"id": "did:ebsi:2AEMAqXWKYMu1JHPAgGcga4dxu7ThgfgN95VyJBJGZbSJUtp",
"roles": [{
"names": ["P.Info.gold"],
"target": "did:elsi:target"
}]
},
"id": "urn:uuid:3add94f4-28ec-42a1-8704-4e4aa51006b4",
"issued": "2021-08-31T00:00:00Z",
"issuer": "did:ebsi:2A9BZ9SUe6BatacSpvs1V5CdjHvLpQ7bEsi2Jb6LdHKnQxaN",
"validFrom": "2021-08-31T00:00:00Z",
"issuanceDate": "2021-08-31T00:00:00Z",
"type": ["VerifiableCredential", "BatteryPassAuthCredential"]
}
---
kind: Deployment
apiVersion: apps/v1
metadata:
name: waltid
spec:
replicas: 1
selector:
matchLabels:
app: waltid
template:
metadata:
labels:
app: waltid
annotations:
deployment/id: "_DEFAULT_DEPLOYMENT_"
spec:
containers:
- name: waltid
image: waltid/ssikit:1.2306281817.jwt-sign-rsa
imagePullPolicy: IfNotPresent
args:
- serve
- -b
- 0.0.0.0
ports:
- containerPort: 7000
name: core-api
- containerPort: 7001
name: signatory-api
- containerPort: 7002
name: custodian-api
- containerPort: 7003
name: auditor-api
- containerPort: 7004
name: essif-api
volumeMounts:
- mountPath: /app/data
name: data-volume
- mountPath: /vc-templates-runtime
name: templates-volume
- mountPath: /config
name: config-volume
- mountPath: /app/service-matrix.properties
name: sm-volume
subPath: service-matrix.properties
- mountPath: /app/walt.yaml
name: config-volume
subPath: walt.yaml
volumes:
- name: data-volume
emptyDir:
sizeLimit: 500Mi
- name: config-volume
configMap:
name: waltid-cm
- name: templates-volume
configMap:
name: waltid-templates
- name: sm-volume
configMap:
name: waltid-sm
---
kind: Service
apiVersion: v1
metadata:
name: waltid
spec:
type: LoadBalancer
ports:
- name: http-core
port: 7000
targetPort: core-api
protocol: TCP
- name: http-signatory
port: 7001
targetPort: signatory-api
protocol: TCP
- name: http-custodian
port: 7002
targetPort: custodian-api
protocol: TCP
- name: http-auditor
port: 7003
targetPort: auditor-api
protocol: TCP
- name: http-essif
port: 7004
targetPort: essif-api
protocol: TCP
selector:
app: waltid