Skip to content

Commit a9a9a48

Browse files
authored
Merge pull request #252 from pagopa/feature/PN-17700-epic
PN-17700] feat: limitare le richieste a IniPEC
2 parents 5a7ef67 + be9ab14 commit a9a9a48

File tree

78 files changed

+1051
-489
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+1051
-489
lines changed

config/application.properties

Lines changed: 31 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ aws.region-code=us-east-1
1414
aws.profile-name=default
1515
aws.endpoint-url=http://localhost:4566
1616

17-
cloud.aws.credentials.profile-name=default
18-
cloud.aws.region.static= us-east-1
19-
cloud.aws.sqs.endpoint= http://localhost:4566
17+
spring.cloud.aws.credentials.profile-name=default
18+
spring.cloud.aws.region.static= us-east-1
19+
spring.cloud.aws.sqs.endpoint= http://localhost:4566
2020

2121
# Fix null object in serialization
2222
spring.jackson.default-property-inclusion=NON_NULL
@@ -42,6 +42,7 @@ pn.national.registries.anpr.base-path=http://localhost:1080/nationalregistriesmo
4242
pn.national.registries.pdnd.anpr.secret=pn-national-registries/pdnd/ANPR
4343
pn.national.registries.trust.anpr.secret=pn-national-registries/anpr/auth
4444
pn.national.registries.anpr.table=pn-counter
45+
pn.national-registries.dao.shedlockTableName=pn-nationalRegistries-ShedLock
4546

4647
# AdE Legal
4748
pn.national.registries.ade-legal.base-path=http://localhost:1080/nationalregistriesmock/
@@ -64,19 +65,39 @@ pn.national.registries.infocamere.client-id=a7e152cac460917f3123cc2410f5a8d2
6465
pn.national.registries.ssm.infocamere.auth-rest=/pn-national-registries/infocamere-cert
6566
pn.national.registries.infocamere.token.deadline=120000
6667
pn.national.registries.inipec.ttl=1209600
67-
pn.national.registries.inipec.batch.request.delay=30000
68+
#Batch pec request configuration
69+
pn.national.registries.inipec.batch.request.delay=5000
70+
pn.national-registries.inipec.batch.request.lock-at-most=27000
71+
pn.national-registries.inipec.batch.request.lock-at-least=22000
72+
pn.national-registries.inipec.batch.request.max-retry=3
73+
pn.national.registries.inipec.batchrequest.pk.separator=~
74+
pn.national-registries.inipec.max.batch.request.size=100
75+
76+
#Batch pec polling configuration
77+
pn.national-registries.inipec.batch.polling.delay=5000
78+
pn.national-registries.inipec.batch.polling.lock-at-most=27000
79+
pn.national-registries.inipec.batch.polling.lock-at-least=22000
80+
pn.national-registries.inipec.batch.polling.max-retry=3
81+
pn.national-registries.inipec.batch.polling.inprogress.max-retry=24
82+
83+
#Batch pec recovery request configuration
6884
pn.national-registries.inipec.batch.request.recovery.delay=30000
85+
pn.national-registries.inipec.batch.request.recovery.lock-at-most=30000
86+
pn.national-registries.inipec.batch.request.recovery.lock-at-least=1000
6987
pn.national-registries.inipec.batch.request.recovery.after=3600
70-
pn.national-registries.inipec.batch.request.max-retry=3
71-
pn.national-registries.inipec.batch.polling.delay=30000
88+
89+
#Batch pec recovery batch polling configuration
7290
pn.national-registries.inipec.batch.polling.recovery.delay=30000
91+
pn.national-registries.inipec.batch.polling.recovery.lock-at-most=30000
92+
pn.national-registries.inipec.batch.polling.recovery.lock-at-least=1000
7393
pn.national-registries.inipec.batch.polling.recovery.after=3600
74-
pn.national-registries.inipec.batch.polling.max-retry=3
75-
pn.national-registries.inipec.batch.polling.inprogress.max-retry=24
94+
95+
#Batch pec send to SQS configuration
7696
pn.national-registries.inipec.batch.sqs.recovery.delay=30000
97+
pn.national-registries.inipec.batch.sqs.recovery.lock-at-most=30000
98+
pn.national-registries.inipec.batch.sqs.recovery.lock-at-least=1000
7799
pn.national.registries.sqs.queue.name=pn-national_registry_gateway_outputs
78-
pn.national.registries.inipec.batchrequest.pk.separator=~
79-
pn.national-registries.inipec.max.batch.request.size=100
100+
80101

81102
# IPA
82103
pn.national.registries.ipa.base-path=http://localhost:1080/nationalregistriesmock/
@@ -91,10 +112,5 @@ pn.national-registries.event.handler.NR_GATEWAY_INPUT=pnNationalRegistriesGatewa
91112
# Health Check
92113
pn.national.registries.health-check-path=http://localhost
93114

94-
# Queue inbound event configuration
95-
spring.cloud.stream.function.routing.enabled=true
96-
spring.cloud.stream.bindings.functionRouter-in-0.destination=pn-national_registry_gateway_inputs
97-
spring.cloud.stream.sqs.bindings.functionRouter-in-0.consumer.snsFanout=false
98-
99115
pn.national-registries.pfnewworkflowstart=1099-02-13T23:00:00Z
100116
pn.national-registries.pfnewworkflowstop=2099-03-31T23:00:00Z

docs/external/AdE/VerificaCodiceFiscale.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ components:
179179
CodiceFiscale:
180180
type: string
181181
x-field-extra-annotation: "@lombok.ToString.Exclude"
182+
format: password
182183
minLength: 11
183184
maxLength: 16
184185
pattern: '^[0-9]{11}|(?:^(?:[A-Z][AEIOU][AEIOUX]|[B-DF-HJ-NP-TV-Z]{2}[A-Z]){2}(?:[\dLMNP-V]{2}(?:[A-EHLMPR-T](?:[04LQ][1-9MNP-V]|[15MR][\dLMNP-V]|[26NS][0-8LMNP-U])|[DHPS][37PT][0L]|[ACELMRT][37PT][01LM]|[AC-EHLMPR-T][26NS][9V])|(?:[02468LNQSU][048LQU]|[13579MPRTV][26NS])B[26NS][9V])(?:[A-MZ][1-9MNP-V][\dLMNP-V]{2}|[A-M][0L](?:[1-9MNP-V][\dLMNP-V]|[0L][1-9MNP-V]))[A-Z]$)'

docs/external/anpr/C001–servizioNotifica.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ components:
144144
codiceFiscale:
145145
type: string
146146
x-field-extra-annotation: "@lombok.ToString.Exclude"
147+
format: password
147148
idANPR:
148149
type: string
149150
description: Identificativo Unico Nazionale
@@ -266,15 +267,19 @@ components:
266267
cognome:
267268
type: string
268269
x-field-extra-annotation: "@lombok.ToString.Exclude"
270+
format: password
269271
senzaCognome:
270272
type: string
271273
x-field-extra-annotation: "@lombok.ToString.Exclude"
274+
format: password
272275
nome:
273276
type: string
274277
x-field-extra-annotation: "@lombok.ToString.Exclude"
278+
format: password
275279
senzaNome:
276280
type: string
277281
x-field-extra-annotation: "@lombok.ToString.Exclude"
282+
format: password
278283
sesso:
279284
type: string
280285
dataNascita:
@@ -342,6 +347,7 @@ components:
342347
cap:
343348
type: string
344349
x-field-extra-annotation: "@lombok.ToString.Exclude"
350+
format: password
345351
comune:
346352
$ref: '#/components/schemas/TipoComune'
347353
frazione:
@@ -356,6 +362,7 @@ components:
356362
cap:
357363
type: string
358364
x-field-extra-annotation: "@lombok.ToString.Exclude"
365+
format: password
359366
localita:
360367
$ref: '#/components/schemas/TipoDatoLocalitaEstera'
361368
toponimo:
@@ -366,6 +373,7 @@ components:
366373
codFiscale:
367374
type: string
368375
x-field-extra-annotation: "@lombok.ToString.Exclude"
376+
format: password
369377
validitaCF:
370378
type: string
371379
dataAttribuzioneValidita:
@@ -415,6 +423,7 @@ components:
415423
denominazioneToponimo:
416424
type: string
417425
x-field-extra-annotation: "@lombok.ToString.Exclude"
426+
format: password
418427
toponimoFonte:
419428
type: string
420429
TipoToponimoEstero:
@@ -423,18 +432,22 @@ components:
423432
denominazione:
424433
type: string
425434
x-field-extra-annotation: "@lombok.ToString.Exclude"
435+
format: password
426436
numeroCivico:
427437
type: string
428438
x-field-extra-annotation: "@lombok.ToString.Exclude"
439+
format: password
429440
TipoNumeroCivico:
430441
type: object
431442
properties:
432443
codiceCivico:
433444
type: string
434445
x-field-extra-annotation: "@lombok.ToString.Exclude"
446+
format: password
435447
civicoFonte:
436448
type: string
437449
x-field-extra-annotation: "@lombok.ToString.Exclude"
450+
format: password
438451
numero:
439452
type: string
440453
metrico:
@@ -455,6 +468,7 @@ components:
455468
descrizioneLocalita:
456469
type: string
457470
x-field-extra-annotation: "@lombok.ToString.Exclude"
471+
format: password
458472
descrizioneStato:
459473
type: string
460474
codiceStato:

docs/external/inad/inad_extraction.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,7 @@ components:
393393
description: Codice Fiscale/Partita IVA relativa al Domicilio Digitale
394394
example: RRANGL74M28R701V
395395
x-field-extra-annotation: "@lombok.ToString.Exclude"
396+
format: password
396397
PracticalReference:
397398
type: string
398399
description: Riferimento del procedimento amministrativo per il quale si richiede l'estrazione
@@ -403,6 +404,7 @@ components:
403404
description: Indirizzo PEC del Domicilio Digitale
404405
example: example@pec.it
405406
x-field-extra-annotation: "@lombok.ToString.Exclude"
407+
format: password
406408
UUID:
407409
maxLength: 40
408410
minLength: 20

docs/external/infocamere/infocamere.yaml

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ paths:
2525
type: string
2626
description: JSON Web Signature (JWS) token
2727
x-field-extra-annotation: "@lombok.ToString.Exclude"
28+
format: password
2829
example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
2930
responses:
3031
'200':
@@ -36,6 +37,7 @@ paths:
3637
description: Authentication token
3738
example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
3839
x-field-extra-annotation: "@lombok.ToString.Exclude"
40+
format: password
3941
'401':
4042
description: Unauthorized
4143
content:
@@ -89,6 +91,7 @@ paths:
8991
schema:
9092
type: string
9193
x-field-extra-annotation: "@lombok.ToString.Exclude"
94+
format: password
9295
description: Request body for PEC list
9396
example: |
9497
{
@@ -203,8 +206,9 @@ paths:
203206
required: true
204207
schema:
205208
type: string
209+
x-field-extra-annotation: "@lombok.ToString.Exclude"
210+
format: password
206211
description: Tax ID for which to retrieve the address
207-
x-field-extra-annotation: "@lombok.ToString.Exclude"
208212
- name: client_id
209213
in: query
210214
required: false
@@ -282,8 +286,9 @@ paths:
282286
required: true
283287
schema:
284288
type: string
289+
x-field-extra-annotation: "@lombok.ToString.Exclude"
290+
format: password
285291
description: Tax ID of the person
286-
x-field-extra-annotation: "@lombok.ToString.Exclude"
287292
- name: client_id
288293
in: query
289294
required: false
@@ -344,8 +349,9 @@ paths:
344349
required: true
345350
schema:
346351
type: string
352+
x-field-extra-annotation: "@lombok.ToString.Exclude"
353+
format: password
347354
description: Tax ID of the person
348-
x-field-extra-annotation: "@lombok.ToString.Exclude"
349355
- name: client_id
350356
in: query
351357
required: false
@@ -357,8 +363,9 @@ paths:
357363
required: true
358364
schema:
359365
type: string
366+
x-field-extra-annotation: "@lombok.ToString.Exclude"
367+
format: password
360368
description: VAT number of the company
361-
x-field-extra-annotation: "@lombok.ToString.Exclude"
362369
- name: scope
363370
in: header
364371
required: true
@@ -475,10 +482,12 @@ components:
475482
type: string
476483
description: Codice Fiscale (Tax ID)
477484
x-field-extra-annotation: "@lombok.ToString.Exclude"
485+
format: password
478486
pecImpresa:
479487
type: string
480488
description: PEC address of the company
481489
x-field-extra-annotation: "@lombok.ToString.Exclude"
490+
format: password
482491
pecProfessionista:
483492
type: array
484493
description: List of PEC addresses of professionals
@@ -499,6 +508,7 @@ components:
499508
type: string
500509
description: PEC address of the professional
501510
x-field-extra-annotation: "@lombok.ToString.Exclude"
511+
format: password
502512
required:
503513
- pec
504514
example:
@@ -519,6 +529,7 @@ components:
519529
type: string
520530
description: Tax ID (Codice Fiscale)
521531
x-field-extra-annotation: "@lombok.ToString.Exclude"
532+
format: password
522533
indirizzoLocalizzazione:
523534
$ref: '#/components/schemas/LegalAddress'
524535
example:
@@ -539,30 +550,37 @@ components:
539550
type: string
540551
description: The name of the address
541552
x-field-extra-annotation: "@lombok.ToString.Exclude"
553+
format: password
542554
via:
543555
type: string
544556
description: The street of the address
545557
x-field-extra-annotation: "@lombok.ToString.Exclude"
558+
format: password
546559
comune:
547560
type: string
548561
description: The municipality of the address
549562
x-field-extra-annotation: "@lombok.ToString.Exclude"
563+
format: password
550564
provincia:
551565
type: string
552566
description: The province of the address
553567
x-field-extra-annotation: "@lombok.ToString.Exclude"
568+
format: password
554569
toponimo:
555570
type: string
556571
description: The toponym of the address
557572
x-field-extra-annotation: "@lombok.ToString.Exclude"
573+
format: password
558574
nCivico:
559575
type: string
560576
description: The street number of the address
561577
x-field-extra-annotation: "@lombok.ToString.Exclude"
578+
format: password
562579
cap:
563580
type: string
564581
description: The postal code of the address
565582
x-field-extra-annotation: "@lombok.ToString.Exclude"
583+
format: password
566584
example:
567585
denominazione: "Company Name"
568586
via: "Via Roma"
@@ -582,6 +600,7 @@ components:
582600
type: string
583601
description: Legal tax ID (Codice Fiscale) of the person
584602
x-field-extra-annotation: "@lombok.ToString.Exclude"
603+
format: password
585604
elencoImpreseRappresentate:
586605
type: array
587606
description: List of represented businesses
@@ -614,6 +633,7 @@ components:
614633
type: string
615634
description: Business tax ID (Codice Fiscale) of the institution
616635
x-field-extra-annotation: "@lombok.ToString.Exclude"
636+
format: password
617637
denominazione:
618638
type: string
619639
description: The name of the institution
@@ -635,10 +655,12 @@ components:
635655
type: string
636656
description: Tax ID (Codice Fiscale) of the person
637657
x-field-extra-annotation: "@lombok.ToString.Exclude"
658+
format: password
638659
cfImpresa:
639660
type: string
640661
description: VAT number (Partita IVA) of the company
641662
x-field-extra-annotation: "@lombok.ToString.Exclude"
663+
format: password
642664
esitoVerifica:
643665
type: string
644666
description: The result of the verification

0 commit comments

Comments
 (0)