-
Notifications
You must be signed in to change notification settings - Fork 0
/
values-dsc.yaml
1796 lines (1681 loc) · 63 KB
/
values-dsc.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
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
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# should argo-cd applications be created?
argoApplications: false
#Sub-Chart configuration
activation-service:
# Enable the deployment of application: activation-service
deploymentEnabled: true
activation-service:
## Configuration of activation service execution
activationService:
# -- Number of (gunicorn) workers that should be created
workers: 1
# -- Maximum header size in bytes
maxHeaderSize: 32768
# -- Log Level
logLevel: "debug"
## Add Ingress or OpenShift Route
route:
enabled: false
ingress:
enabled: true
annotations:
cert-manager.io/cluster-issuer: letsencrypt-fiware-eks
kubernetes.io/ingress.class: nginx
hosts:
- host: ips-as.dsba.aws.fiware.io
paths:
- /
tls:
- hosts:
- ips-as.dsba.aws.fiware.io
secretName: as-ips-dsba-tls
## CCS config
ccs:
endpoint: "http://ips-dsc-credentials-config-service:8080/"
id: "ips-activation-service"
defaultOidcScope: "default"
oidcScopes:
default:
- type: "VerifiableCredential"
trustedParticipantsLists: [
"https://tir.dsba.fiware.dev"
]
trustedIssuersLists: [
"http://ips-dsc-trusted-issuers-list:8080"
]
- type: "IpsActivationService"
trustedParticipantsLists: [
"https://tir.dsba.fiware.dev"
]
trustedIssuersLists: [
"http://ips-dsc-trusted-issuers-list:8080"
]
## AS config
config:
# DB
db:
# -- Use sqlite in-memory database
useMemory: true
# -- Enable tracking of modifications
modTracking: false
# -- Enable SQL logging to stderr
echo: true
# Configuration for additional API keys to protect certain endpoints
apikeys:
# Config for Trusted-Issuers-List flow
issuer:
# Header name
headerName: "AS-API-KEY"
# API key (auto-generated if left empty)
apiKey: "77ab4a67-ea3c-4348-98bd-2e9f0304bfb8"
# Enable for /issuer endpoint (API key will be required)
enabledIssuer: true
issuer:
clientId: "ips-activation-service"
providerId: "did:web:ips.dsba.aws.fiware.io:did"
tilUri: "http://ips-dsc-trusted-issuers-list:8080"
verifierUri: "https://ips-verifier.dsba.aws.fiware.io"
samedevicePath: "/api/v1/samedevice"
jwksPath: "/.well-known/jwks"
algorithms:
- "ES256"
roles:
createRole: "CREATE_ISSUER"
updateRole: "UPDATE_ISSUER"
deleteRole: "DELETE_ISSUER"
credentials-config-service:
# Enable the deployment of application: credentials-config-service
deploymentEnabled: true
credentials-config-service:
# Database config
database:
persistence: true
host: mysql-ips
name: ccs
# Should use Secret in production environment
username: root
password: "dbPassword"
dsba-pdp:
# Enable the deployment of application: dsba-pdp
deploymentEnabled: true
dsba-pdp:
# DB
db:
enabled: false
migrate:
enabled: false
deployment:
# Log level
logLevel: DEBUG
# iSHARE config
ishare:
existingSecret: ips-dsc-vcwaltid-tls-sec
clientId: did:web:ips.dsba.aws.fiware.io:did
# Initial list of fingerprints for trusted CAs. This will be overwritten
# after the first update from the trust anchor.
trustedFingerprints:
- D2F62092F982CF783D4632BD86FA86C3FBFDB2D8C8A58BC6809163FCF5CD030B
ar:
id: "did:web:ips.dsba.aws.fiware.io:did"
delegationPath: "/ar/delegation"
tokenPath: "/oauth2/token"
url: "https://ar-ips.dsba.aws.fiware.io"
trustAnchor:
id: "EU.EORI.FIWARESATELLITE"
tokenPath: "/token"
trustedListPath: "/trusted_list"
url: "https://tir.dsba.fiware.dev"
# Verifier
trustedVerifiers:
- https://ips-verifier.dsba.aws.fiware.io/.well-known/jwks
# Provider DID
providerId: "did:web:ips.dsba.aws.fiware.io:did"
# ENVs
additionalEnvVars:
- name: ISHARE_CERTIFICATE_PATH
value: /iShare/tls.crt
- name: ISHARE_KEY_PATH
value: /iShare/tls.key
kong:
# Enable the deployment of application: kong
deploymentEnabled: true
kong:
replicaCount: 1
proxy:
enabled: true
tls:
enabled: false
# Provide Ingress or Route config here
ingress:
enabled: true
annotations:
kubernetes.io/ingress.class: nginx
cert-manager.io/cluster-issuer: letsencrypt-fiware-eks
ingressClassName: nginx
tls: kong-ips-dsba-tls
hostname: ips-kong.dsba.aws.fiware.io
route:
enabled: false
# Provide the kong.yml configuration (either as existing CM, secret or directly in the values.yaml)
dblessConfig:
configMap: ""
secret: ""
config: |
_format_version: "2.1"
_transform: true
consumers:
- username: token-consumer
keyauth_credentials:
- tags:
- token-key
- tir-key
services:
- host: "ips-dsc-orion"
name: "ips"
port: 1026
protocol: http
routes:
- name: ips
paths:
- /ips
strip_path: true
plugins:
- name: pep-plugin
config:
pathprefix: "/ips"
authorizationendpointtype: ExtAuthz
authorizationendpointaddress: http://ips-dsc-dsba-pdp:8080/authz
- name: request-transformer
config:
remove:
headers:
- Authorization
- authorization
mongodb:
# Enable the deployment of application: mongodb
deploymentEnabled: true
mongodb:
# DB Authorization
auth:
enabled: true
# Should use a Secret on production deployments
rootPassword: "dbPassword"
# Required for permissions to PVC
podSecurityContext:
enabled: true
fsGroup: 1001
containerSecurityContext:
enabled: true
runAsUser: 1001
runAsGroup: 0
runAsNonRoot: true
# Set resources
resources:
limits:
cpu: 200m
memory: 512Mi
persistence:
enabled: true
size: 8Gi
mysql:
# Enable the deployment of application: mysql
deploymentEnabled: true
mysql:
fullnameOverride: mysql-ips
auth:
# Should use a Secret on production deployments
rootPassword: "dbPassword"
password: "dbPassword"
orion-ld:
# Enable the deployment of application: orion-ld
deploymentEnabled: true
orion:
broker:
db:
auth:
user: root
password: "dbPassword"
mech: "SCRAM-SHA-1"
hosts:
- ips-dsc-mongodb
initData:
initEnabled: true
hook: post-install
backoffLimit: 6
entities:
- name: deliveryorder_happypets001.json
data: |
{
"id": "urn:ngsi-ld:DELIVERYORDER:HAPPYPETS001",
"type": "DELIVERYORDER",
"issuer": {
"type": "Property",
"value": "Happy Pets"
},
"destinee": {
"type": "Property",
"value": "Happy Pets customer via IPS"
},
"deliveryAddress": {
"type": "Property",
"value": {
"addressCountry": "DE",
"addressRegion": "Berlin",
"addressLocality": "Berlin",
"postalCode": "12345",
"streetAddress": "Customer Strasse 23"
}
},
"originAddress": {
"type": "Property",
"value": {
"addressCountry": "DE",
"addressRegion": "Berlin",
"addressLocality": "Berlin",
"postalCode": "12345",
"streetAddress": "HappyPets Strasse 15"
}
},
"pda": {
"type": "Property",
"value": "2021-10-03"
},
"pta": {
"type": "Property",
"value": "14:00:00"
},
"eda": {
"type": "Property",
"value": "2021-10-02"
},
"eta": {
"type": "Property",
"value": "14:00:00"
},
"@context": [
"https://schema.lab.fiware.org/ld/context"
]
}
- name: deliveryorder_happypets002.json
data: |
{
"id": "urn:ngsi-ld:DELIVERYORDER:HAPPYPETS002",
"type": "DELIVERYORDER",
"issuer": {
"type": "Property",
"value": "Happy Pets"
},
"destinee": {
"type": "Property",
"value": "Happy Pets 2nd customer via IPS"
},
"deliveryAddress": {
"type": "Property",
"value": {
"addressCountry": "DE",
"addressRegion": "Hamburg",
"addressLocality": "Hamburg",
"postalCode": "23456",
"streetAddress": "Customer Str. 19"
}
},
"originAddress": {
"type": "Property",
"value": {
"addressCountry": "DE",
"addressRegion": "Berlin",
"addressLocality": "Berlin",
"postalCode": "12345",
"streetAddress": "HappyPets Strasse 15"
}
},
"pda": {
"type": "Property",
"value": "2021-11-12"
},
"pta": {
"type": "Property",
"value": "11:00:00"
},
"eda": {
"type": "Property",
"value": "2021-11-12"
},
"eta": {
"type": "Property",
"value": "11:00:00"
},
"@context": [
"https://schema.lab.fiware.org/ld/context"
]
}
postgres:
# Enable the deployment of application: postgres
deploymentEnabled: true
postgresql:
fullnameOverride: postgresql-ips
auth:
# Should use a Secret for PWs on production deployments
# Credentials for Keycloak DB
username: keycloak
password: "dbPassword"
enablePostgresUser: true
# Credentials for postgres admin user
postgresPassword: "dbRootPassword"
# Init DB
primary:
initdb:
scripts:
create.sh: |
psql postgresql://postgres:${POSTGRES_POSTGRES_PASSWORD}@localhost:5432 -c "CREATE DATABASE keycloak_ips;"
trusted-issuers-list:
# Enable the deployment of application: trusted-issuers-list
deploymentEnabled: true
trusted-issuers-list:
# Ingress
ingress:
til:
enabled: true
annotations:
cert-manager.io/cluster-issuer: letsencrypt-fiware-eks
kubernetes.io/ingress.class: nginx
hosts:
- host: til-ips.dsba.aws.fiware.io
tls:
- hosts:
- til-ips.dsba.aws.fiware.io
secretName: til-ips-dsba-til-tls
tir:
enabled: true
annotations:
cert-manager.io/cluster-issuer: letsencrypt-fiware-eks
kubernetes.io/ingress.class: nginx
hosts:
- host: tir-ips.dsba.aws.fiware.io
tls:
- hosts:
- tir-ips.dsba.aws.fiware.io
secretName: til-ips-dsba-tir-tls
# Database config
database:
persistence: true
host: mysql-ips
name: til
# Should use Secret in production environment
username: root
password: "dbPassword"
# Init data
initData:
initEnabled: true
hook: post-install
backoffLimit: 6
issuers:
- name: mp_create
issuer:
did: "did:web:marketplace.dsba.fiware.dev:did"
credentials:
- validFor:
from: "2022-07-21T17:32:28Z"
to: "2040-07-21T17:32:28Z"
credentialsType: "IpsActivationService"
claims:
- name: "roles"
allowedValues:
- - names:
- "CREATE_ISSUER"
target: "did:web:ips.dsba.aws.fiware.io:did"
- validFor:
from: "2022-07-21T17:32:28Z"
to: "2040-07-21T17:32:28Z"
credentialsType: "VerifiableCredential"
vcwaltid:
# Enable the deployment of application: vcwaltid
deploymentEnabled: true
# Organisation DID
did: did:web:ips.dsba.aws.fiware.io:did
ingress:
enabled: true
host: ips.dsba.aws.fiware.io
annotations:
cert-manager.io/cluster-issuer: letsencrypt-fiware-eks
tls:
enabled: true
route:
enabled: false
# Walt-id config
vcwaltid:
# Persistence
persistence:
enabled: true
pvc:
size: 1Gi
# List of templates to be created
templates:
GaiaXParticipantCredential.json: |
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://registry.lab.dsba.eu/development/api/trusted-shape-registry/v1/shapes/jsonld/trustframework#"
],
"type": [
"VerifiableCredential"
],
"id": "did:web:raw.githubusercontent.com:egavard:payload-sign:master",
"issuer": "did:web:raw.githubusercontent.com:egavard:payload-sign:master",
"issuanceDate": "2023-03-21T12:00:00.148Z",
"credentialSubject": {
"id": "did:web:raw.githubusercontent.com:egavard:payload-sign:master",
"type": "gx:LegalParticipant",
"gx:legalName": "dsba compliant participant",
"gx:legalRegistrationNumber": {
"gx:vatID": "MYVATID"
},
"gx:headquarterAddress": {
"gx:countrySubdivisionCode": "BE-BRU"
},
"gx:legalAddress": {
"gx:countrySubdivisionCode": "BE-BRU"
},
"gx-terms-and-conditions:gaiaxTermsAndConditions": "70c1d713215f95191a11d38fe2341faed27d19e083917bc8732ca4fea4976700"
}
}
NaturalPersonCredential.json: |
{
"@context": ["https://www.w3.org/2018/credentials/v1"],
"credentialSchema": {
"id": "https://raw.githubusercontent.com/FIWARE-Ops/tech-x-challenge/main/schema.json",
"type": "FullJsonSchemaValidator2021"
},
"credentialSubject": {
"type": "gx:NaturalParticipant",
"familyName": "Happy",
"firstName": "User",
"roles": [{
"names": ["LEGAL_REPRESENTATIVE"],
"target": "did:web:onboarding"
}]
},
"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", "LegalPersonCredential"]
}
MarketplaceUserCredential.json: |
{
"@context": ["https://www.w3.org/2018/credentials/v1"],
"credentialSchema": {
"id": "https://raw.githubusercontent.com/FIWARE-Ops/tech-x-challenge/main/schema.json",
"type": "FullJsonSchemaValidator2021"
},
"credentialSubject": {
"type": "gx:NaturalParticipant",
"email": "[email protected]",
"familyName": "IPS",
"firstName": "employee",
"lastName": "IPS",
"roles": [{
"names": ["LEGAL_REPRESENTATIVE"],
"target": "did:web:onboarding"
}]
},
"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": ["MarketplaceUserCredential"]
}
EmployeeCredential.json: |
{
"@context": ["https://www.w3.org/2018/credentials/v1"],
"credentialSchema": {
"id": "https://raw.githubusercontent.com/FIWARE-Ops/tech-x-challenge/main/schema.json",
"type": "FullJsonSchemaValidator2021"
},
"credentialSubject": {
"type": "gx:NaturalParticipant",
"email": "[email protected]",
"familyName": "IPS",
"firstName": "employee",
"lastName": "IPS",
"roles": [{
"names": ["LEGAL_REPRESENTATIVE"],
"target": "did:web:onboarding"
}]
},
"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": ["EmployeeCredential"]
}
verifier:
# Enable the deployment of application: verifier
deploymentEnabled: true
vcverifier:
ingress:
enabled: true
annotations:
cert-manager.io/cluster-issuer: letsencrypt-fiware-eks
kubernetes.io/ingress.class: nginx
hosts:
- host: ips-verifier.dsba.aws.fiware.io
paths:
- /
tls:
- hosts:
- ips-verifier.dsba.aws.fiware.io
secretName: verifier-ips-dsba-tls
deployment:
# Logging
logging:
level: DEBUG
pathsToSkip:
- "/health"
# Server config
server:
# Place external host here when publishing verifier with public URL
host: https://ips-verifier.dsba.aws.fiware.io
# Walt-id config
ssikit:
auditorUrl: http://ips-dsc-vcwaltid:7003
# Verifier config
verifier:
# URL endpoint of data space trusted issuers registry
tirAddress: https://tir.dsba.fiware.dev/v3/issuers
# DID of organisation
did: did:web:ips.dsba.aws.fiware.io:did
# Config service
configRepo:
configEndpoint: http://ips-dsc-credentials-config-service:8080/
keyrock:
# Enable the deployment of application: keyrock
deploymentEnabled: true
keyrock:
fullnameOverride: keyrock-ips
# DB config
db:
user: root
password: "dbPassword"
host: mysql-ips
# Admin user to be created
admin:
user: admin
password: "admin"
email: [email protected]
# External hostname of Keyrock
host: https://ar-ips.dsba.aws.fiware.io
# Ingress
ingress:
enabled: true
annotations:
cert-manager.io/cluster-issuer: letsencrypt-fiware-eks
kubernetes.io/ingress.class: nginx
hosts:
- host: ar-ips.dsba.aws.fiware.io
paths:
- /
tls:
- hosts:
- ar-ips.dsba.aws.fiware.io
secretName: ar-ips-dsba-tls
## Theme configuration for Keyrock
theme:
## -- Enable theme
enabled: false
## Configuration of Authorisation Registry (AR)
authorisationRegistry:
# -- Enable usage of authorisation registry
enabled: true
# -- Identifier (EORI) of AR
identifier: "did:web:ips.dsba.aws.fiware.io:did"
# -- URL of AR
url: "internal"
## Configuration of iSHARE Satellite
satellite:
# -- Enable usage of satellite
enabled: true
# -- Identifier (EORI) of satellite
identifier: "EU.EORI.FIWARESATELLITE"
# -- URL of satellite
url: "https://tir.dsba.fiware.dev"
# -- Token endpoint of satellite
tokenEndpoint: "https://tir.dsba.fiware.dev/token"
# -- Parties endpoint of satellite
partiesEndpoint: "https://tir.dsba.fiware.dev/parties"
## -- Configuration of local key and certificate for validation and generation of tokens
token:
# -- Enable storage of local key and certificate
enabled: false
# ENV variables for Keyrock
additionalEnvVars:
- name: IDM_TITLE
value: "IPS AR"
- name: IDM_DEBUG
value: "true"
- name: DEBUG
value: "*"
- name: IDM_DB_NAME
value: ar_idm_ips
- name: IDM_DB_SEED
value: "true"
- name: IDM_SERVER_MAX_HEADER_SIZE
value: "32768"
- name: IDM_PR_CLIENT_ID
value: "did:web:ips.dsba.aws.fiware.io:did"
- name: IDM_PR_CLIENT_KEY
valueFrom:
secretKeyRef:
name: ips-dsc-vcwaltid-tls-sec
key: tls.key
- name: IDM_PR_CLIENT_CRT
valueFrom:
secretKeyRef:
name: ips-dsc-vcwaltid-tls-sec
key: tls.crt
# Init data
initData:
initEnabled: true
hook: post-install
backoffLimit: 6
command:
- /bin/sh
- /scripts/create.sh
volumeMount:
name: scripts
mountPath: /scripts
env:
- name: DB_PASSWORD
value: "dbPassword"
scriptData:
create.sh: |-
mysql -h mysql-ips -u root -p$DB_PASSWORD ar_idm_ips <<EOF
-- Static objects
SET @rules := JSON_ARRAY(
JSON_OBJECT(
"effect", "Permit"
)
);
SET @subjectGold := "GOLD_CUSTOMER";
SET @subjectStandard := "STANDARD_CUSTOMER";
-- Policies Gold
SET @policiesGold := JSON_ARRAY(
JSON_OBJECT(
"rules", CAST(@rules as JSON),
"target", JSON_OBJECT(
"actions", JSON_ARRAY("PATCH"),
"resource", JSON_OBJECT(
"type", "DELIVERYORDER",
"attributes", JSON_ARRAY("pta","pda"),
"identifiers", JSON_ARRAY("*")
)
)
),
JSON_OBJECT(
"rules", CAST(@rules as JSON),
"target", JSON_OBJECT(
"actions", JSON_ARRAY("GET"),
"resource", JSON_OBJECT(
"type", "DELIVERYORDER",
"attributes", JSON_ARRAY("*"),
"identifiers", JSON_ARRAY("*")
)
)
)
);
-- Policies Standard
SET @policiesStandard := JSON_ARRAY(
JSON_OBJECT(
"rules", CAST(@rules as JSON),
"target", JSON_OBJECT(
"actions", JSON_ARRAY("GET"),
"resource", JSON_OBJECT(
"type", "DELIVERYORDER",
"attributes", JSON_ARRAY("*"),
"identifiers", JSON_ARRAY("*")
)
)
)
);
-- Insert Delegation Evidence Gold VC
SET @delegationGoldVC := JSON_OBJECT(
"target", JSON_OBJECT(
"accessSubject", @subjectGold
),
"notBefore", 1616583866,
"notOnOrAfter", 1735817171,
"policyIssuer", "did:web:ips.dsba.aws.fiware.io:did",
"policySets", JSON_ARRAY(
JSON_OBJECT(
"target", JSON_OBJECT(
"environment", JSON_OBJECT(
"licenses", JSON_ARRAY("ISHARE.0001")
)
),
"policies", CAST(@policiesGold as JSON)
)
)
);
INSERT IGNORE INTO delegation_evidence (policy_issuer, access_subject,policy) VALUES ("did:web:ips.dsba.aws.fiware.io:did", @subjectGold, @delegationGoldVC);
-- Insert Delegation Evidence Standard VC
SET @delegationStandardVC := JSON_OBJECT(
"target", JSON_OBJECT(
"accessSubject", @subjectStandard
),
"notBefore", 1616583866,
"notOnOrAfter", 1735817171,
"policyIssuer", "did:web:ips.dsba.aws.fiware.io:did",
"policySets", JSON_ARRAY(
JSON_OBJECT(
"target", JSON_OBJECT(
"environment", JSON_OBJECT(
"licenses", JSON_ARRAY("ISHARE.0001")
)
),
"policies", CAST(@policiesStandard as JSON)
)
)
);
INSERT IGNORE INTO delegation_evidence (policy_issuer, access_subject,policy) VALUES ("did:web:ips.dsba.aws.fiware.io:did", @subjectStandard, @delegationStandardVC);
COMMIT;
EOF
keycloak:
# Enable the deployment of application: keycloak
deploymentEnabled: true
# Config to create DID
didConfig:
# Enable creation of ConfigMap for loading the DID into walt-id
# When disabling, also remove the load-did initContainer from the list above
loadDidWebEnabled: true
# Domain for DID web
domain: "ips.dsba.aws.fiware.io"
# x5u for DID web
x5u: "https://ips.dsba.aws.fiware.io/certs/tls.crt"
keycloak:
# Logging
logging:
level: DEBUG
# Replica
replicaCount: 1
# Admin account
auth:
adminUser: fiwareAdmin
adminPassword: fiwareAdmin
# Ingress
ingress:
enabled: true
ingressClassName: nginx
hostname: ips-kc.dsba.aws.fiware.io
tls: true
annotations:
kubernetes.io/ingress.class: nginx
cert-manager.io/cluster-issuer: letsencrypt-fiware-eks
# ENVs
extraEnvVars:
- name: KEYCLOAK_PROXY_ADDRESS_FORWARDING
value: "true"
- name: KEYCLOAK_LOG_LEVEL
value: DEBUG
- name: VCISSUER_ISSUER_DID
value: "did:web:ips.dsba.aws.fiware.io:did"
- name: VCISSUER_WALTID_ADDRESS
value: "http://ips-dsc-vcwaltid"
# Volumes
extraVolumes:
- name: data
emptyDir: {}
- name: profiles
configMap:
name: ips-dsc-keycloak-profile
- name: providers
emptyDir: {}
- name: did-config
configMap:
name: ips-dsc-keycloak-did-config
- name: did-secret
secret:
secretName: ips-dsc-vcwaltid-tls-sec
# Init containers for VC issuer and loading of DID
initContainers:
- name: add-vc-issuer
image: quay.io/fiware/keycloak-vc-issuer:0.5.0
imagePullPolicy: Always
volumeMounts:
- name: providers
mountPath: /target
- name: load-did
image: quay.io/opencloudio/curl:4.2.0-build.8
imagePullPolicy: Always
command:
- /bin/sh
- /opt/did/script/import.sh
env:
- name: WALTID_CORE_ADDRESS
value: "ips-dsc-vcwaltid:7000"
volumeMounts:
- name: did-config
mountPath: /opt/did/script
- name: did-secret
mountPath: /opt/did/secret
# Disable internal DB
postgresql:
enabled: false
# Config for external DB
externalDatabase:
host: postgresql-ips
user: postgres
password: "dbRootPassword"
database: keycloak_ips
# CLI config
keycloakConfigCli:
enabled: true
# Realm config - either provide configuration or existing ConfigMap
configuration:
realm.json: |-
{
"id": "fiware-server",
"realm": "fiware-server",
"accountTheme": "siop-2",
"displayName": "IPS Keycloak",
"displayNameHtml": "<div class=\"kc-logo-text\"><span>IPS Keycloak</span></div>",
"enabled": true,
"attributes": {
"frontendUrl": "https://ips-kc.dsba.aws.fiware.io"