Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IMN-539 Add scaffold for authorization-process #527

Merged
merged 893 commits into from
Jun 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
893 commits
Select commit Hold shift + click to select a range
1f0136f
Merge branch 'IMN-445_get-risk-analysis-document' into IMN-444_delete…
taglioni-r May 2, 2024
bc94207
Merge branch 'main' into IMN-431_implement-purpose-consumer-service-v1
taglioni-r May 2, 2024
c2fad24
Merge branch 'IMN-431_implement-purpose-consumer-service-v1' into IMN…
taglioni-r May 2, 2024
27d2ffc
Merge branch 'main' into IMN-455_add-purpose-api-converter
taglioni-r May 2, 2024
81374cc
Merge branch 'IMN-455_add-purpose-api-converter' into IMN-440_get-pur…
taglioni-r May 2, 2024
23d1fa4
Merge branch 'main' into IMN-440_get-purpose-by-id
taglioni-r May 2, 2024
bd5b928
Fix
taglioni-r May 2, 2024
1a7a572
Fix
taglioni-r May 2, 2024
02daaa3
Refactor
taglioni-r May 3, 2024
3e9fd58
Change error
taglioni-r May 3, 2024
031aa04
Refactor
taglioni-r May 3, 2024
2a58cdb
Merge branch 'main' into IMN-440_get-purpose-by-id
taglioni-r May 3, 2024
7c2e618
Fix
taglioni-r May 3, 2024
3d98495
Minor changes
taglioni-r May 3, 2024
3249561
Merge branch 'IMN-438_create-reverse-purpose' into IMN-447_clone-purpose
taglioni-r May 3, 2024
2d6e886
Fix
taglioni-r May 3, 2024
0840566
Fix
taglioni-r May 3, 2024
648b0f4
WIP
AsterITA May 3, 2024
95ff186
Merge branch 'main' into IMN-440_get-purpose-by-id
taglioni-r May 6, 2024
c532d6b
Merge branch 'IMN-440_get-purpose-by-id' into IMN-445_get-risk-analys…
taglioni-r May 6, 2024
3ab7381
Merge branch 'IMN-445_get-risk-analysis-document' into IMN-444_delete…
taglioni-r May 6, 2024
b23f7eb
Merge branch 'IMN-444_delete-purpose-version' into IMN-456_reject-pur…
taglioni-r May 6, 2024
b5483e1
Fix import
taglioni-r May 6, 2024
3b94a6b
Fix import
taglioni-r May 6, 2024
023b115
Merge branch 'IMN-444_delete-purpose-version' into IMN-456_reject-pur…
taglioni-r May 6, 2024
bb23fcd
Fix import
taglioni-r May 6, 2024
a3e9166
implemented endpoint
AsterITA May 6, 2024
93ffde4
Merge branch 'IMN-456_reject-purpose-version' into IMN-441_updatePurpose
AsterITA May 6, 2024
4def5fa
fix update title
AsterITA May 6, 2024
fcbf012
updated tests
AsterITA May 6, 2024
7ddd824
fixed implementation by reusing already implemented code
AsterITA May 6, 2024
93a8925
fix import
AsterITA May 6, 2024
b4a7218
implemented tests
AsterITA May 6, 2024
2e29956
Add to do
taglioni-r May 7, 2024
fe31bf9
implemented suggestions from review
AsterITA May 7, 2024
28cedaa
Draft
taglioni-r May 7, 2024
ef77332
Improvement
taglioni-r May 7, 2024
00469be
Refactor
taglioni-r May 7, 2024
1a4e4d7
Fix pnpm-lock file
taglioni-r May 7, 2024
f445228
Revert changes
taglioni-r May 7, 2024
8b3930c
Revert
taglioni-r May 7, 2024
1c682c7
Draft
taglioni-r May 7, 2024
ac3fc02
Draft
taglioni-r May 7, 2024
d894527
Revert
taglioni-r May 7, 2024
ba7d89d
Revert
taglioni-r May 7, 2024
783560e
Revert
taglioni-r May 7, 2024
6d5f0e1
Fix import
taglioni-r May 7, 2024
839e56c
Draft
taglioni-r May 7, 2024
f6f56aa
Refactor
taglioni-r May 7, 2024
e5b240c
Merge branch 'IMN-452_retrieveRiskAnalysisConfigurationByVersion' int…
taglioni-r May 7, 2024
d3c5e70
Refactor
taglioni-r May 8, 2024
0e5cbfa
Refactor
taglioni-r May 8, 2024
371f17c
minor fix
AsterITA May 8, 2024
acd0fa8
Add test
taglioni-r May 8, 2024
5607057
Update env file
taglioni-r May 8, 2024
1768871
Test
taglioni-r May 8, 2024
cd7b8a1
Test
taglioni-r May 8, 2024
75d69cb
Test
taglioni-r May 8, 2024
9694289
Revert "Test"
taglioni-r May 8, 2024
a6cb380
Revert "Test"
taglioni-r May 8, 2024
2d9e528
Test
taglioni-r May 8, 2024
235ef7b
Fix
taglioni-r May 8, 2024
2a3071f
Test
taglioni-r May 8, 2024
4787dff
Test
taglioni-r May 8, 2024
647b7fb
Fix typo
taglioni-r May 8, 2024
bf76c0a
Test
taglioni-r May 8, 2024
281827c
Improvement
taglioni-r May 8, 2024
4a03ec3
Merge branch 'main' into IMN-445_get-risk-analysis-document
taglioni-r May 8, 2024
4b56c54
Remove unused function
taglioni-r May 8, 2024
13c9adb
Fix import
taglioni-r May 8, 2024
ff8cb5c
Merge branch 'IMN-445_get-risk-analysis-document' into IMN-444_delete…
taglioni-r May 8, 2024
e4c72b8
Fix
taglioni-r May 8, 2024
de2b923
Fix test
taglioni-r May 8, 2024
763a2d7
Fix test
taglioni-r May 8, 2024
9a603e0
Merge branch 'IMN-445_get-risk-analysis-document' into IMN-444_delete…
taglioni-r May 8, 2024
e1a234f
Fix test
taglioni-r May 8, 2024
2b9e0d1
Merge branch 'main' into IMN-445_get-risk-analysis-document
taglioni-r May 8, 2024
feb36ae
Merge branch 'IMN-445_get-risk-analysis-document' into IMN-444_delete…
taglioni-r May 8, 2024
ad7444d
Merge branch 'IMN-444_delete-purpose-version' into IMN-456_reject-pur…
taglioni-r May 8, 2024
4f25a09
minor fix
AsterITA May 8, 2024
18e43a3
implemented retrieveLatestRiskAnalysis
AsterITA May 8, 2024
be95364
Merge branch 'IMN-452_retrieveRiskAnalysisConfigurationByVersion' int…
AsterITA May 8, 2024
4bd230d
fix test
AsterITA May 8, 2024
18cdefc
Merge branch 'IMN-452_retrieveRiskAnalysisConfigurationByVersion' int…
AsterITA May 8, 2024
2b41c0d
missed error in erroMapper
AsterITA May 8, 2024
8c6de7b
missed test's call
AsterITA May 8, 2024
58fd048
fix test
AsterITA May 8, 2024
20a2ca3
Merge branch 'main' into IMN-456_reject-purpose-version
taglioni-r May 8, 2024
4144dcc
Merge branch 'IMN-456_reject-purpose-version' into IMN-441_updatePurpose
AsterITA May 8, 2024
72b8bfd
Apply suggestions from code review
AsterITA May 8, 2024
6f5ae17
applied suggestions from review and update tests
AsterITA May 8, 2024
40b2e4d
applied suggestions
AsterITA May 8, 2024
d7a8ee7
fix tests
AsterITA May 8, 2024
f1aede4
Refactor
taglioni-r May 9, 2024
d13c2f9
Minor fix
taglioni-r May 9, 2024
d5f2fee
Minor fix
taglioni-r May 9, 2024
19bd2ec
Minor fix
taglioni-r May 9, 2024
eadbc5e
Minor fix
taglioni-r May 9, 2024
409d441
Minor fix
taglioni-r May 9, 2024
f9df0a7
Merge branch 'IMN-441_updatePurpose' into IMN-442_delete-purpose
taglioni-r May 9, 2024
1696c86
Merge branch 'IMN-442_delete-purpose' into IMN-449_archive-purpose
taglioni-r May 9, 2024
72129cb
Merge branch 'IMN-438_create-reverse-purpose' into IMN-447_clone-purpose
taglioni-r May 9, 2024
58559dd
Fix
taglioni-r May 9, 2024
f553055
Fix
taglioni-r May 9, 2024
5fffac5
Fix test
taglioni-r May 9, 2024
d07ebda
Fix
taglioni-r May 9, 2024
7ed5b6f
Merge branch 'IMN-442_delete-purpose' into IMN-449_archive-purpose
taglioni-r May 9, 2024
fcac620
Fix
taglioni-r May 9, 2024
23e5c2f
Fix
taglioni-r May 9, 2024
bcff5cb
Merge branch 'IMN-449_archive-purpose' into IMN-448_suspend-purpose
taglioni-r May 9, 2024
87cf406
Fix
taglioni-r May 9, 2024
810634e
Minor refactor
taglioni-r May 9, 2024
b9758da
Merge branch 'IMN-448_suspend-purpose' into IMN-436_get-purposes
taglioni-r May 9, 2024
4b8923f
Fix
taglioni-r May 9, 2024
065385d
Fix
taglioni-r May 9, 2024
070ede8
Fix test
taglioni-r May 9, 2024
0148114
Minor refactor
taglioni-r May 9, 2024
16244bc
Fix import
taglioni-r May 9, 2024
fc82d16
Update model
taglioni-r May 9, 2024
6d3b0dc
Remove field
taglioni-r May 9, 2024
23078eb
Remove endpoint
taglioni-r May 9, 2024
55456b8
Revert "fix test"
taglioni-r May 9, 2024
b25d060
Revert "missed test's call"
taglioni-r May 9, 2024
959041e
Revert "missed error in erroMapper"
taglioni-r May 9, 2024
d6c0bad
Revert "Merge branch 'IMN-452_retrieveRiskAnalysisConfigurationByVers…
taglioni-r May 9, 2024
4ad0337
Revert "Merge branch 'IMN-452_retrieveRiskAnalysisConfigurationByVers…
taglioni-r May 9, 2024
6a49c70
Revert "implemented retrieveLatestRiskAnalysis"
taglioni-r May 9, 2024
c69bf88
Merge branch 'IMN-409_notifier-seeder-purpose' into IMN-516_remove-ex…
taglioni-r May 9, 2024
7a086e3
Fix
taglioni-r May 9, 2024
366998d
Improvement
taglioni-r May 9, 2024
f30c6cf
Revert "Improvement"
taglioni-r May 9, 2024
492a5e4
Improvement
taglioni-r May 9, 2024
fe2ef39
Merge branch 'IMN-452_retrieveRiskAnalysisConfigurationByVersion' int…
taglioni-r May 9, 2024
ea91918
Merge branch 'IMN-409_notifier-seeder-purpose' into IMN-516_remove-ex…
taglioni-r May 9, 2024
0720834
Merge branch 'main' into IMN-441_updatePurpose
AsterITA May 9, 2024
ea94244
Merge branch 'IMN-441_updatePurpose' into IMN-442_delete-purpose
taglioni-r May 9, 2024
d3b142d
deleted unused error
AsterITA May 9, 2024
1007faa
Merge branch 'IMN-441_updatePurpose' into IMN-442_delete-purpose
taglioni-r May 9, 2024
0b80f81
Merge branch 'IMN-442_delete-purpose' into IMN-449_archive-purpose
taglioni-r May 9, 2024
e116de2
Merge branch 'IMN-449_archive-purpose' into IMN-448_suspend-purpose
taglioni-r May 9, 2024
6311dea
Merge branch 'main' into IMN-442_delete-purpose
taglioni-r May 9, 2024
104e0c7
Merge branch 'IMN-442_delete-purpose' into IMN-449_archive-purpose
taglioni-r May 9, 2024
d899a98
Merge branch 'main' into IMN-449_archive-purpose
taglioni-r May 9, 2024
63fa296
Merge branch 'IMN-449_archive-purpose' into IMN-448_suspend-purpose
taglioni-r May 9, 2024
529b4aa
Merge branch 'main' into IMN-448_suspend-purpose
taglioni-r May 9, 2024
b2b247d
Merge branch 'IMN-448_suspend-purpose' into IMN-436_get-purposes
taglioni-r May 9, 2024
d05bdff
Merge branch 'IMN-436_get-purposes' into IMN-437_createPurpose
rGregnanin May 9, 2024
802e75a
fix tests
rGregnanin May 9, 2024
c576664
Merge branch 'main' into IMN-436_get-purposes
taglioni-r May 9, 2024
36872fc
Revert renaming
taglioni-r May 9, 2024
4e2fe26
Merge branch 'main' into IMN-436_get-purposes
taglioni-r May 9, 2024
ca4023a
Minor fix
taglioni-r May 10, 2024
a178eae
Minor fixes
taglioni-r May 10, 2024
7e5561d
Merge branch 'IMN-437_createPurpose' into IMN-438_create-reverse-purpose
taglioni-r May 10, 2024
71bbdbc
Fix
taglioni-r May 10, 2024
f69879e
Fix
taglioni-r May 10, 2024
f4487e1
Fix
taglioni-r May 10, 2024
ec90504
Fix
taglioni-r May 10, 2024
b06cf34
Merge branch 'main' into IMN-436_get-purposes
taglioni-r May 10, 2024
a205fb6
Merge branch 'IMN-447_clone-purpose' into IMN-452_retrieveRiskAnalysi…
AsterITA May 10, 2024
7439c42
Merge branch 'IMN-436_get-purposes' into IMN-437_createPurpose
rGregnanin May 10, 2024
9e5603c
fix
rGregnanin May 10, 2024
515183b
fix as suggest
rGregnanin May 10, 2024
a7fe2d5
fix as suggest
rGregnanin May 10, 2024
8cdca0c
Merge branch 'IMN-437_createPurpose' into IMN-438_create-reverse-purpose
taglioni-r May 13, 2024
dfd5e81
Merge branch 'IMN-438_create-reverse-purpose' into IMN-447_clone-purpose
taglioni-r May 13, 2024
a253911
Fix
taglioni-r May 13, 2024
7c27520
Fix test
taglioni-r May 13, 2024
322bade
merge from IMN-447
AsterITA May 13, 2024
278398d
fix tests
AsterITA May 13, 2024
f6d0305
Merge branch 'main' into IMN-438_create-reverse-purpose
taglioni-r May 13, 2024
322669a
Fix
taglioni-r May 13, 2024
decfafc
Merge branch 'main' into IMN-438_create-reverse-purpose
taglioni-r May 13, 2024
824cc6d
Fix
taglioni-r May 13, 2024
b5a876e
Merge branch 'IMN-452_retrieveRiskAnalysisConfigurationByVersion' int…
taglioni-r May 13, 2024
0e4df57
Merge branch 'IMN-409_notifier-seeder-purpose' into IMN-516_remove-ex…
taglioni-r May 13, 2024
3f5cf97
Merge branch 'main' into IMN-438_create-reverse-purpose
taglioni-r May 13, 2024
ce4c9ca
Merge branch 'IMN-438_create-reverse-purpose' into IMN-447_clone-purpose
taglioni-r May 13, 2024
4650776
Merge branch 'IMN-447_clone-purpose' into IMN-452_retrieveRiskAnalysi…
AsterITA May 13, 2024
0ef6b40
Merge branch 'IMN-452_retrieveRiskAnalysisConfigurationByVersion' int…
taglioni-r May 13, 2024
34c6c5a
Fix
taglioni-r May 13, 2024
dacde22
Merge branch 'IMN-409_notifier-seeder-purpose' of https://github.com/…
taglioni-r May 13, 2024
2ea3b4e
Merge branch 'main' into IMN-438_create-reverse-purpose
taglioni-r May 14, 2024
d420a1a
Merge branch 'IMN-438_create-reverse-purpose' into IMN-447_clone-purpose
taglioni-r May 14, 2024
e202457
Merge branch 'IMN-409_notifier-seeder-purpose' into IMN-516_remove-ex…
taglioni-r May 14, 2024
56d88e4
Fix
taglioni-r May 14, 2024
a5cd163
Merge branch 'main' into IMN-438_create-reverse-purpose
taglioni-r May 14, 2024
46997c9
Fix and refactor
taglioni-r May 14, 2024
311556c
Fix typo
taglioni-r May 14, 2024
68420d0
Refactor
taglioni-r May 14, 2024
7bf5dca
Merge branch 'main' into IMN-438_create-reverse-purpose
taglioni-r May 14, 2024
e18c018
Merge branch 'IMN-438_create-reverse-purpose' into IMN-447_clone-purpose
taglioni-r May 14, 2024
d31d7b8
Merge branch 'main' into IMN-447_clone-purpose
taglioni-r May 14, 2024
13cdc5a
Merge branch 'IMN-447_clone-purpose' into IMN-452_retrieveRiskAnalysi…
taglioni-r May 14, 2024
f66e55c
Merge branch 'IMN-452_retrieveRiskAnalysisConfigurationByVersion' int…
taglioni-r May 14, 2024
aa8b5f8
Merge branch 'IMN-409_notifier-seeder-purpose' into IMN-516_remove-ex…
taglioni-r May 14, 2024
a84ae3f
refactor tests
AsterITA May 15, 2024
e1f072e
Improve title logic
taglioni-r May 15, 2024
bd01b9e
Merge branch 'main' into IMN-447_clone-purpose
taglioni-r May 15, 2024
76f04b0
Merge branch 'IMN-447_clone-purpose' into IMN-452_retrieveRiskAnalysi…
AsterITA May 15, 2024
a8898d0
Remove comment
taglioni-r May 15, 2024
ab11a82
Add comment
taglioni-r May 15, 2024
ec57df2
Merge branch 'main' into IMN-447_clone-purpose
taglioni-r May 16, 2024
5b40501
Remove unused error
taglioni-r May 16, 2024
37c825c
Remove redundant operations in test
taglioni-r May 16, 2024
80a4692
Merge branch 'main' into IMN-447_clone-purpose
taglioni-r May 16, 2024
210e0bc
Merge branch 'main' into IMN-447_clone-purpose
taglioni-r May 16, 2024
5144083
Merge branch 'IMN-447_clone-purpose' into IMN-452_retrieveRiskAnalysi…
AsterITA May 17, 2024
447c6cf
Scaffold
taglioni-r May 17, 2024
7bbc114
Add comment
taglioni-r May 17, 2024
59291a2
Fix
taglioni-r May 17, 2024
5ebef22
Remove unused var
taglioni-r May 17, 2024
57cd521
Merge branch 'IMN-409_notifier-seeder-purpose' into IMN-516_remove-ex…
taglioni-r May 17, 2024
78c02e4
Merge branch 'main' into IMN-447_clone-purpose
taglioni-r May 20, 2024
0ed4c99
Fix pnpm-lock file
taglioni-r May 20, 2024
cc689e9
Update api spec
taglioni-r May 20, 2024
7eddf2d
Merge branch 'IMN-516_remove-expected-approval-date' into IMN-539_aut…
taglioni-r May 20, 2024
ea30de3
Remove empty files
taglioni-r May 20, 2024
05021e8
Remove empty file
taglioni-r May 20, 2024
23bcf3c
Merge branch 'IMN-452_retrieveRiskAnalysisConfigurationByVersion' int…
taglioni-r May 20, 2024
cbe0032
Merge branch 'IMN-447_clone-purpose' into IMN-452_retrieveRiskAnalysi…
AsterITA May 20, 2024
c676fec
Merge branch 'IMN-452_retrieveRiskAnalysisConfigurationByVersion' int…
taglioni-r May 20, 2024
389d1b8
Merge branch 'IMN-409_notifier-seeder-purpose' into IMN-516_remove-ex…
taglioni-r May 20, 2024
568c847
Merge branch 'IMN-516_remove-expected-approval-date' into IMN-539_aut…
taglioni-r May 20, 2024
312f438
Fix
taglioni-r May 20, 2024
f9e4906
Fix image
taglioni-r May 20, 2024
2c4ea8a
Fix api spec
taglioni-r May 21, 2024
c23f52e
Add sql table
taglioni-r May 22, 2024
e9eb383
Add placeholder name for authorization table
taglioni-r May 22, 2024
6edec50
Rename schema
taglioni-r May 22, 2024
0b9e6cf
Fix spacing
taglioni-r May 23, 2024
74eb05a
Add script
taglioni-r May 23, 2024
07b5347
Add latest changes in start script
taglioni-r May 24, 2024
946ab6f
Merge branch 'main' into IMN-539_auth-process-scaffold
taglioni-r May 30, 2024
fddaf2a
Fix import
taglioni-r May 30, 2024
d4982c1
Renaming
taglioni-r May 30, 2024
7ef6c1f
Merge branch 'main' into IMN-539_auth-process-scaffold
taglioni-r May 30, 2024
2f4e5f9
Merge branch 'main' into IMN-539_auth-process-scaffold
taglioni-r May 31, 2024
91dcb7a
Update pnpm-lock file
taglioni-r May 31, 2024
055d423
Merge branch 'main' into IMN-539_auth-process-scaffold
taglioni-r Jun 4, 2024
dfedcf4
Merge branch 'main' into IMN-539_auth-process-scaffold
taglioni-r Jun 10, 2024
cb5ad32
Merge branch 'main' into IMN-539_auth-process-scaffold
taglioni-r Jun 10, 2024
f59285e
Merge branch 'main' into IMN-539_auth-process-scaffold
taglioni-r Jun 11, 2024
96af158
Merge branch 'main' into IMN-539_auth-process-scaffold
taglioni-r Jun 11, 2024
2a77ffc
Update pnpm-lock file
taglioni-r Jun 11, 2024
067bc08
Merge branch 'main' into IMN-539_auth-process-scaffold
taglioni-r Jun 12, 2024
f17dbf9
Merge branch 'main' into IMN-539_auth-process-scaffold
taglioni-r Jun 13, 2024
b34f50f
Remove unused schemas in api spec
taglioni-r Jun 13, 2024
ad44371
Merge branch 'main' into IMN-539_auth-process-scaffold
taglioni-r Jun 13, 2024
063a676
Merge branch 'main' into IMN-539_auth-process-scaffold
taglioni-r Jun 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions docker/event-store-init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,22 @@ create table purpose.events (
PRIMARY KEY (sequence_num),
UNIQUE (stream_id, version)
);

create schema "authorization";
create table "authorization".events (
sequence_num bigserial NOT NULL,

stream_id uuid NOT NULL,
version bigint NOT NULL,

correlation_id text,

type text NOT NULL,
event_version int NOT NULL,
data bytea NOT NULL,

log_date timestamptz NOT NULL DEFAULT now(),

PRIMARY KEY (sequence_num),
UNIQUE (stream_id, version)
);
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"start:notifier-seeder": "turbo start --filter pagopa-interop-notifier-seeder",
"start:purpose": "turbo start --filter pagopa-interop-purpose-process",
"start:purpose-readmodel-writer": "turbo start --filter pagopa-interop-purpose-readmodel-writer",
"start:authorization": "turbo start --filter pagopa-interop-authorization-process",
"start:bff": "turbo start --filter pagopa-interop-bff",
"test": "turbo test",
"build": "turbo build",
Expand Down
20 changes: 20 additions & 0 deletions packages/authorization-process/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
HOST=0.0.0.0
PORT=3000
LOG_LEVEL=info

EVENTSTORE_DB_HOST=localhost
EVENTSTORE_DB_NAME=root
EVENTSTORE_DB_USERNAME=root
EVENTSTORE_DB_PASSWORD=root
EVENTSTORE_DB_PORT=6001
EVENTSTORE_DB_SCHEMA=authorization
EVENTSTORE_DB_USE_SSL=false

READMODEL_DB_HOST=localhost
READMODEL_DB_NAME=readmodel
READMODEL_DB_USERNAME=root
READMODEL_DB_PASSWORD=example
READMODEL_DB_PORT=27017

WELL_KNOWN_URLS="https://dev.interop.pagopa.it/.well-known/jwks.json"
ACCEPTED_AUDIENCES="dev.interop.pagopa.it/ui,refactor.dev.interop.pagopa.it/ui"
41 changes: 41 additions & 0 deletions packages/authorization-process/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
FROM node:18.20.2-slim@sha256:2697eb70c760c3720ad9811871d5ab19c4ad2f2e0a3735785e531927ab99bd39 as build

RUN corepack enable

WORKDIR /app
COPY package.json /app/
COPY pnpm-lock.yaml /app/
COPY pnpm-workspace.yaml /app/

COPY ./packages/authorization-process/package.json /app/packages/authorization-process/package.json
COPY ./packages/commons/package.json /app/packages/commons/package.json
COPY ./packages/models/package.json /app/packages/models/package.json

RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile

COPY tsconfig.json /app/
COPY turbo.json /app/
COPY ./packages/authorization-process /app/packages/authorization-process
COPY ./packages/commons /app/packages/commons
COPY ./packages/models /app/packages/models

RUN pnpm build && \
rm -rf /app/node_modules/.modules.yaml && \
rm -rf /app/node_modules/.cache && \
mkdir /out && \
cp -a --parents -t /out \
node_modules packages/authorization-process/node_modules \
package*.json packages/authorization-process/package*.json \
packages/commons/ \
packages/models/ \
packages/authorization-process/dist && \
find /out -exec touch -h --date=@0 {} \;

FROM node:18.20.2-slim@sha256:2697eb70c760c3720ad9811871d5ab19c4ad2f2e0a3735785e531927ab99bd39 as final

COPY --from=build /out /app

WORKDIR /app/packages/authorization-process
EXPOSE 3000

CMD [ "node", "." ]
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: interop-be-authorization-process-refactor
namespace: dev-refactor
data:
EVENTSTORE_DB_USE_SSL: "true"
EVENTSTORE_DB_SCHEMA: "dev-refactor_authz"
117 changes: 117 additions & 0 deletions packages/authorization-process/kubernetes/dev/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: interop-be-authorization-process-refactor
namespace: dev-refactor
labels:
app: interop-be-authorization-process-refactor
spec:
replicas: 1
selector:
matchLabels:
app: interop-be-authorization-process-refactor
template:
metadata:
labels:
app: interop-be-authorization-process-refactor
spec:
serviceAccountName: interop-be-authorization-process-refactor
containers:
- name: interop-be-authorization-process-refactor
image: ghcr.io/pagopa/authorization-process@$IMAGE_DIGEST
imagePullPolicy: Always
ports:
- name: http
containerPort: 3000
protocol: TCP
resources:
requests:
cpu: 1.0
memory: 2Gi
limits:
cpu: 1.0
memory: 2Gi
livenessProbe:
httpGet:
path: /status
port: http
initialDelaySeconds: 15
periodSeconds: 5
readinessProbe:
httpGet:
path: /status
port: http
initialDelaySeconds: 15
periodSeconds: 5
env:
- name: PORT
value: "3000"
- name: HOST
value: "0.0.0.0"
- name: LOG_LEVEL
value: info
- name: EVENTSTORE_DB_HOST
valueFrom:
configMapKeyRef:
name: interop-be-common-refactor
key: EVENTSTORE_DB_HOST
- name: EVENTSTORE_DB_NAME
valueFrom:
configMapKeyRef:
name: interop-be-common-refactor
key: EVENTSTORE_DB_NAME
- name: EVENTSTORE_DB_PORT
valueFrom:
configMapKeyRef:
name: interop-be-common-refactor
key: EVENTSTORE_DB_PORT
- name: EVENTSTORE_DB_USERNAME
valueFrom:
secretKeyRef:
name: persistence-management
key: REFACTOR_USERNAME
- name: EVENTSTORE_DB_PASSWORD
valueFrom:
secretKeyRef:
name: persistence-management
key: REFACTOR_USER_PASSWORD
- name: EVENTSTORE_DB_SCHEMA
valueFrom:
configMapKeyRef:
name: interop-be-authorization-process-refactor
key: EVENTSTORE_DB_SCHEMA
- name: EVENTSTORE_DB_USE_SSL
valueFrom:
configMapKeyRef:
name: interop-be-authorization-process-refactor
key: EVENTSTORE_DB_USE_SSL
- name: READMODEL_DB_HOST
valueFrom:
configMapKeyRef:
name: interop-be-common-refactor
key: READMODEL_DB_HOST
- name: READMODEL_DB_NAME
valueFrom:
configMapKeyRef:
name: interop-be-common-refactor
key: READMODEL_DB_NAME
- name: READMODEL_DB_PORT
valueFrom:
configMapKeyRef:
name: interop-be-common-refactor
key: READMODEL_DB_PORT
- name: WELL_KNOWN_URLS
valueFrom:
configMapKeyRef:
name: interop-be-common-refactor
key: WELL_KNOWN_URLS
- name: READMODEL_DB_USERNAME
valueFrom:
secretKeyRef:
name: read-model
key: REFACTOR_USERNAME
- name: READMODEL_DB_PASSWORD
valueFrom:
secretKeyRef:
name: read-model
key: REFACTOR_USER_PASSWORD
14 changes: 14 additions & 0 deletions packages/authorization-process/kubernetes/dev/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: interop-be-authorization-process-refactor
namespace: dev-refactor
spec:
type: ClusterIP
ports:
- port: 3000
name: http
targetPort: http
protocol: TCP
selector:
app: interop-be-authorization-process-refactor
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: interop-be-authorization-process-refactor
namespace: dev-refactor
labels:
app.kubernetes.io/name: interop-be-authorization-process-refactor
annotations:
eks.amazonaws.com/role-arn: arn:aws:iam::505630707203:role/interop-be-authorization-process-refactor-dev
Loading
Loading