-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathconfig.yaml
More file actions
234 lines (229 loc) · 6.43 KB
/
Copy pathconfig.yaml
File metadata and controls
234 lines (229 loc) · 6.43 KB
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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
---
common:
mongo:
uri: mongodb://mongo:27017
production: false
credential_metadata:
pid:
vctm_file_path: "/metadata/vctm_pid.json"
format: "dc+sd-jwt"
ehic:
vctm_file_path: "/metadata/vctm_ehic.json"
format: "dc+sd-jwt"
pid_mdoc:
mddl_file_path: "/metadata/pid_mdoc.mdoc.json"
format: "mso_mdoc"
mdl:
mddl_file_path: "/metadata/mdl.mdoc.json"
format: "mso_mdoc"
issuer:
issuer_url: "https://apigw.vc.docker:8080"
api_server:
addr: :8080
tls:
enable: true
cert_file_path: "/pki/tls_issuer.crt"
key_file_path: "/pki/tls_issuer.key"
grpc_server:
addr: issuer.vc.docker:8090
registry_client:
addr: registry.vc.docker:8090
key_config:
private_key_path: "/pki/signing_ec_private.pem"
chain_path: "/pki/signing_ec_chain.pem"
jwt_attribute:
issuer: https://issuer.sunet.se
enable_not_before: true
valid_duration: 3600
verifiable_credential_type: "https://credential.sunet.se/identity_credential"
pseudonym_seed: true
verifier:
api_server:
addr: :8080
tls:
enable: true
cert_file_path: "/pki/tls_verifier.crt"
key_file_path: "/pki/tls_verifier.key"
public_url: "https://verifier.vc.docker:8080"
key_config:
private_key_path: "/pki/signing_ec_private.pem"
chain_path: "/pki/signing_ec_chain.pem"
outbound:
oidc_provider:
issuer: "https://verifier.vc.docker:8080"
subject_type: "public"
subject_salt: "dev-salt-verifier"
code_duration: 300
session_duration: 3600
access_token_duration: 3600
id_token_duration: 3600
refresh_token_duration: 86400
inbound:
openid4vp:
token_endpoint: "https://verifier.vc.docker:8080/token"
clients:
"1003":
type: "public"
redirect_uri: "https://dev.wallet.sunet.se"
scopes:
- "pid"
- "ehic"
supported_credentials:
- vct: "urn:eudi:pid:1"
scopes:
- "pid"
- vct: "urn:eudi:ehic:1"
scopes:
- "ehic"
presets:
"PID":
featured: true
credentials:
pid:
exclude_claims:
- path: ["trust_anchor"]
- path: ["attestation_legal_category"]
"EHIC":
featured: true
credentials:
ehic:
"PID Age Over 18":
category: "Selective disclosure"
credentials:
pid:
claims:
- path: ["birthdate"]
validations:
- rule: "age_over"
path: ["birthdate"]
value: 18
"PID + EHIC":
category: "Combined"
credentials:
pid:
exclude_claims:
- path: ["trust_anchor"]
- path: ["attestation_legal_category"]
ehic:
registry:
api_server:
addr: :8080
tls:
enable: true
cert_file_path: "/pki/tls_registry.crt"
key_file_path: "/pki/tls_registry.key"
public_url: "https://localhost:8080"
grpc_server:
addr: :8090
# mTLS configuration (optional)
# tls:
# enable: true
# cert_file_path: "/pki/grpc_server.crt"
# key_file_path: "/pki/grpc_server.key"
# client_ca_path: "/pki/client_ca.crt" # For mutual TLS
# # Pin specific certs by fingerprint
# allowed_client_fingerprints:
# "sha256:aa:bb:cc:...": "apigw-prod"
# # Allow certs by Subject DN (key is friendly name, value is Subject DN)
# allowed_client_dns:
# apigw-acme: "CN=apigw.example.com,O=MyOrg"
# Token Status Lists configuration per draft-ietf-oauth-status-list
token_status_lists:
key_config:
private_key_path: "/pki/signing_ec_private.pem"
chain_path: "/pki/signing_ec_chain.pem"
admin_gui:
enable: true
username: "admin"
password: "admin_1234"
apigw:
key_config:
private_key_path: "/pki/signing_ec_private.pem"
chain_path: "/pki/signing_ec_chain.pem"
api_server:
addr: :8080
tls:
enable: true
cert_file_path: "/pki/tls_apigw.crt"
key_file_path: "/pki/tls_apigw.key"
api_auth:
oidc:
enable: false
issuer_url: "http://mock-oauth2.vc.docker:8080/default"
audience: "vc-apigw"
client_id: "vc-apigw"
client_secret: "vc-apigw-secret"
redirect_uri: "https://apigw.vc.docker:8080/ui/callback"
scopes: ["openid", "profile"]
public_url: "https://apigw.vc.docker:8080"
registry_public_url: "https://registry.vc.docker:8080"
issuer_client:
addr: issuer.vc.docker:8090
registry_client:
addr: registry.vc.docker:8090
identity_mapping_import:
file_paths:
- "bootstrapping/identity_mappings.json"
users:
- "100"
- "102"
data_sources:
datastore:
import:
file_paths:
- "bootstrapping/diploma.json"
- "bootstrapping/eduid.json"
- "bootstrapping/ehic.json"
- "bootstrapping/elm.json"
- "bootstrapping/pda1.json"
- "bootstrapping/pid.json"
- "bootstrapping/mdl.json"
- "bootstrapping/pid_mdoc.json"
users:
- "100"
- "102"
scopes:
pid:
auth_provider: oidc
auth_claims: ["given_name", "family_name", "birth_date"]
ehic:
auth_provider: openid4vp
auth_scopes:
pid:
auth_claims: ["given_name", "family_name", "birth_date"]
pid_mdoc:
auth_provider: oidc
auth_claims: ["given_name", "family_name", "birth_date"]
mdl:
auth_provider: oidc
auth_claims: ["given_name", "family_name", "birth_date"]
auth_providers:
oidc:
enable: true
issuer_url: "http://mock-oauth2.vc.docker:8080/default"
redirect_uri: "https://apigw.vc.docker:8080/oidcrp/callback"
scopes: ["openid", "profile"]
session_duration: 300
registration:
preconfigured:
enable: true
client_id: "vc-apigw"
client_secret: "vc-apigw-secret"
delivery:
openid4vci:
token_endpoint: "https://apigw.vc.docker:8080/token"
clients:
"1003":
type: "public"
redirect_uri: "http://localhost:3000"
scopes:
- "pid"
- "ehic"
- "pid_mdoc"
- "mdl"
credential_offers:
issuer_url: "https://apigw.vc.docker:8080"
wallets:
dev_wallet:
label: "Dev Wallet"
redirect_uri: "https://dev.wallet.sunet.se/credential-offer"