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

1.0.0-RC1 #38

Merged
merged 479 commits into from
May 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
479 commits
Select commit Hold shift + click to select a range
89d4d07
[SLS-21] added all request headers.
Apr 13, 2023
700bc7d
[SLS-21] added original method and url validation.
Apr 13, 2023
c9e8c89
[SLS-21] added request headers validation.
Apr 13, 2023
d365501
[SLS-21] Implemented method to validate assertion period
svariant Apr 13, 2023
361608c
[SLS-21] Implemented userID (fiscalCode) validation
svariant Apr 13, 2023
c4e9255
[SLS-21] integrated assertion period, user id and thumbprint validati…
Apr 14, 2023
63c0f4d
[SLS-21] moved LollipopConsumerRequestValidationService and added in …
Apr 14, 2023
b7f7cdc
[SLS-21] added unit test for AssertionVerifierServiceImpl and do some…
Apr 14, 2023
a5efb63
[SLS-21] added unit test for LollipopConsumerCommandImpl.
Apr 14, 2023
d218664
[SLS-21] added unit test for LollipopConsumerRequestValidationService…
Apr 14, 2023
4026c0e
[SLS-21] fix javadoc.
Apr 17, 2023
7d23988
[SLS-21] applied spotless formatting.
Apr 17, 2023
341f379
[SLS-21] updated verification-metadata.xml.
Apr 17, 2023
45f20f0
[SLS-21] updated comment.
Apr 17, 2023
e63854f
[SLS-21] updated verification-metadata.xml and fix some merge errors.
Apr 17, 2023
bf3500b
[SLS-29] Introduced pre-commit hooks
svariant Apr 17, 2023
4ac9a26
Merge remote-tracking branch 'origin/SLS-21' into SLS-21
Apr 17, 2023
32a71da
Merge pull request #25 from pagopa/SLS-21
alessio-cialini Apr 17, 2023
1e75109
[SLS-29] Updated pre-commit config to include gradle checks and metad…
Apr 17, 2023
33729db
Merge pull request #26 from pagopa/SLS-29
alessio-cialini Apr 17, 2023
e9f81b3
[SLS-26] Implemented idpCertData provider and storage
svariant Apr 17, 2023
2a29811
[SLS-26] Moved identity provider storage implementation from core mod…
svariant Apr 17, 2023
e9936ca
[SLS-12] Introducing implementation of a spring interceptor using the…
Apr 17, 2023
6f363c1
[SLS-26] Defined unit tests for SimpleIdpCertStorage - added 2 tests …
svariant Apr 18, 2023
06c493b
Update pr_scan.yml
alessio-cialini Apr 18, 2023
9de2940
[SLS-26] Removed storage injection from IdpCertProvider
svariant Apr 18, 2023
53b2fc7
[SLS-12] Updated spring interceptor
Apr 18, 2023
89f1bd8
[SLS-26] Handled multiple idp certificate signatures - added unit test
svariant Apr 18, 2023
e659146
[SLS-33] Updated build.gradle
Apr 18, 2023
08fbb92
Merge remote-tracking branch 'origin/SLS-33' into SLS-33
Apr 18, 2023
b2b6358
Merge pull request #27 from pagopa/SLS-26
alessio-cialini Apr 18, 2023
1f6c275
[SLS-33] Updated pr_scan.yml
Apr 18, 2023
aad00c2
[SLS-33] Updated build.gradle
Apr 18, 2023
a2a4171
[SLS-33] Updated build.gradle
Apr 18, 2023
6f6a100
[SLS-33] Updated with src content for sonar scanner
Apr 18, 2023
91d94b0
[SLS-33] Updated build.gradle
Apr 18, 2023
e30dec7
Update pr_scan.yml
alessio-cialini Apr 18, 2023
a9214a1
Update pr_scan.yml
alessio-cialini Apr 18, 2023
c3f18d8
Merge pull request #24 from pagopa/SLS-33
alessio-cialini Apr 18, 2023
a375fe1
[SLS-12] Updated tests an docs
Apr 18, 2023
e0d860c
[SLS-12] Introducing implementation of a spring interceptor using the…
Apr 17, 2023
d8eac94
[SLS-12] Updated spring interceptor
Apr 18, 2023
6136d39
[SLS-12] Updated tests an docs
Apr 18, 2023
a92b4e9
Merge remote-tracking branch 'origin/SLS-12' into SLS-12
Apr 18, 2023
3a9ccd6
[SLS-12] Updated after rebase
Apr 18, 2023
79f5978
[SLS-12] Updated verification-metadata.xml
Apr 18, 2023
311b90d
[SLS-12] Updated build.gradle
Apr 18, 2023
3ecdc4e
[SLS-12] Updated build.gradle
Apr 18, 2023
6a979c4
[SLS-12] Updated build.gradle
Apr 19, 2023
1044e28
[SLS-12] Updated build.gradle
Apr 19, 2023
c13910b
[SLS-12] Updated build.gradle
Apr 19, 2023
ffdd491
[SLS-12] Updated build.gradle
Apr 19, 2023
e334dd5
[SLS-12] Updated build.gradle
Apr 19, 2023
e51c275
[SLS-12] Updated build.gradle
Apr 19, 2023
a370683
[SLS-12] Updated build.gradle
Apr 19, 2023
e159ea0
Merge pull request #29 from pagopa/SLS-12
alessio-cialini Apr 19, 2023
f84b65f
[core-sprint3-fixes] Updated build.gradle and pr_scan.yml
Apr 19, 2023
3b3f13d
[core-sprint3-fixes] Updated pr_scan.yml
Apr 19, 2023
944bb0b
Merge pull request #30 from pagopa/core-sprint-3-fixes
alessio-cialini Apr 19, 2023
31bece5
[core-sprint3-fixes] Fixing sonar smells
Apr 19, 2023
c73e80f
Merge pull request #31 from pagopa/core-sprint-3-fixes
alessio-cialini Apr 19, 2023
efbe465
[SLS-25] added signature validation to the assertion verification flow.
Apr 19, 2023
cf416ca
[SLS-25] Removed tag list exception - applied spotless - update metadata
svariant Apr 19, 2023
f4ee8d4
[SLS-25] Added error messages to define ErrorValidatingAssertionSigna…
svariant Apr 19, 2023
4c1178f
[SLS-25] Added tests to verify signature & idpCertData exception
svariant Apr 19, 2023
c855208
[SLS-12] Defining base for logback logging
Apr 19, 2023
f2129f8
[SLS-25] Introducing IDP Validation (Reupload from giomella commits)
Apr 19, 2023
0fe1897
[SLS-25] Applied spotless, updated verification-metadata.xml
Apr 19, 2023
40147d4
[SLS-25] resolved sonarqube code smell and added unit test for coverage.
Apr 20, 2023
09dfd9c
Merge pull request #32 from pagopa/SLS-25
alessio-cialini Apr 20, 2023
4217069
[SLS-18] Updating logger service. Defined skeleton for logback lollip…
Apr 20, 2023
e7dda13
[core-sprit-3] Fixing sonar issues
Apr 20, 2023
9e29e44
[core-sprint-3] Fixing sonar issues
Apr 20, 2023
7b9a0e3
[core-sprint-3] Fixing sonar issues
Apr 20, 2023
533497a
[core-sprint-3] Fixing sonar issues
Apr 20, 2023
47b0f5e
[core-sprint-3] Fixing sonar issues
Apr 20, 2023
da1f032
[SLS-13] Initialized spring sample
svariant Apr 19, 2023
415d3da
[SLS-13] Defined main classes and configurations for spring sample ap…
svariant Apr 20, 2023
d27a96f
[SLS-13] Fixed package scan
svariant Apr 20, 2023
b20b7dd
[SLS-13] Fixed LollipopConsumerRequestConfig injection into factory -…
svariant Apr 20, 2023
fd62cf6
[SLS-25] added signature validation to the assertion verification flow.
Apr 19, 2023
0b13991
[SLS-25] Removed tag list exception - applied spotless - update metadata
svariant Apr 19, 2023
76bb8a0
[SLS-25] Added error messages to define ErrorValidatingAssertionSigna…
svariant Apr 19, 2023
8c218fb
[SLS-25] Added tests to verify signature & idpCertData exception
svariant Apr 19, 2023
3f4f650
[SLS-25] Introducing IDP Validation (Reupload from giomella commits)
Apr 19, 2023
ba51428
[SLS-25] Applied spotless, updated verification-metadata.xml
Apr 19, 2023
07ea7fd
[SLS-25] resolved sonarqube code smell and added unit test for coverage.
Apr 20, 2023
3bb5bf0
[core-sprit-3] Fixing sonar issues
Apr 20, 2023
6677769
[core-sprint-3] Fixing sonar issues
Apr 20, 2023
bf14e3e
[core-sprint-3] Fixing sonar issues
Apr 20, 2023
e8365c4
[core-sprint-3] Fixing sonar issues
Apr 20, 2023
24b0810
[core-sprint-3] Fixing sonar issues
Apr 20, 2023
c208696
Merge pull request #34 from pagopa/SLS-13
alessio-cialini Apr 20, 2023
a1bf839
Merge remote-tracking branch 'origin/core-sprint-3' into SLS-18-new
Apr 20, 2023
bcf2e9c
[SLS-18] Updated logging service
Apr 20, 2023
651872d
[SLS-18] Introducing LollipopLogbackLoggerServiceFactoryTest
Apr 20, 2023
90de471
[SLS-18] Introducing LollipopLogbackLoggerServiceFactoryTest
Apr 20, 2023
553abab
Merge pull request #35 from pagopa/SLS-18-new
alessio-cialini Apr 20, 2023
692a531
[SLS-18] Updated LollipopConsumerCommandBuilderImplTest
Apr 21, 2023
4da3789
[core-sprint-3] Fixing code smells
Apr 21, 2023
f9f159f
[core-sprint-3] updated sample and added mock server.
Apr 21, 2023
d71be9b
[core-sprint-3] Updated samples
Apr 21, 2023
5876127
Merge pull request #33 from pagopa/core-sprint-3
alessio-cialini Apr 21, 2023
6b8bdb5
[1.0.0-RC1] Preparing for RC1 release
Apr 21, 2023
1f953a8
[1.0.0-RC1] Updated pr_scan.yml
Apr 21, 2023
00fe1b8
[1.0.0-RC1] Updated pr_scan.yml
Apr 21, 2023
79e6727
[1.0.0-RC1] Updated pr_scan.yml
Apr 21, 2023
e49b967
[SLS-14] Updated Dockerfile
Apr 26, 2023
223217e
[SLS-14] Updated Dockerfile
Apr 26, 2023
4adfe97
[SLS-14] Updated LollipopConsumerSample
Apr 26, 2023
4ed6b92
[SLS-14] Updated build.gradle
Apr 26, 2023
8121349
[SLS-14] Updated build.gradle
Apr 26, 2023
0ed69bd
[SLS-14] Updated LollipopConsumerCommandBuilderImplTest
Apr 26, 2023
43868d8
[SLS-14] Updated SampleApplicationTests
Apr 26, 2023
711e139
[SLS-14] Updated Dockerfile and release.yaml
Apr 26, 2023
23da33e
[SLS-14] Updated Dockerfile and release.yaml
Apr 26, 2023
94ba7c3
[SLS-14] Updated Dockerfile and release.yaml
Apr 26, 2023
d1af928
[SLS-14] Updated release.yaml
Apr 26, 2023
2e2e328
[SLS-14] Updated release.yaml
Apr 26, 2023
be1ec88
[SLS-14] Updated build.gradle
Apr 26, 2023
ce50def
Merge pull request #39 from pagopa/SLS-14
alessio-cialini Apr 26, 2023
a2e1650
[SLS-32] Implemented LollipopConsumerConverter with conversions methods
svariant Apr 26, 2023
2480a5e
[SLS-32] Removed code smells
svariant Apr 26, 2023
563e747
Merge pull request #40 from pagopa/SLS-32
alessio-cialini Apr 26, 2023
6c02a1d
Reworked simple assertion storage
Apr 26, 2023
a259d80
[1.0.0-RC1] Resolved code smells
svariant Apr 27, 2023
604718e
[SLS-16] updated unit test with valid data.
Apr 27, 2023
0d3b9d7
[SLS-38] Introducing transcoding to valid format for ECSA Signature, …
Apr 27, 2023
530492c
[SLS-38] Fixing code smells
Apr 27, 2023
422bca1
Merge branch '1.0.0-RC1' into SLS-38
alessio-cialini Apr 27, 2023
568c50d
[SLS-38] Applied spotless
Apr 27, 2023
5cde849
Merge pull request #43 from pagopa/SLS-38
alessio-cialini Apr 27, 2023
1b82bc4
[1.0.0-RC1] Fixing code smells
Apr 27, 2023
10d6765
[rework_simple_assertion_storage] Updated SimpleAssertionStorage
Apr 27, 2023
81e111d
Merge remote-tracking branch 'origin/SLS-16' into 1.0.0-RC1
Apr 27, 2023
0b65731
[SLS-16] updated samples data and added idp mock configuration.
Apr 27, 2023
776a540
[rework_simple_assertion_storage] Updated SimpleAssertionStorage
Apr 27, 2023
0f6fb60
[SLS-16] Updated LollipopConstants
Apr 27, 2023
2a99975
[SLS-16] Updated LollipopConstants
Apr 27, 2023
6f7c02f
[SLS-16] Defined docker-compose.yaml
svariant Apr 27, 2023
acab8ba
[SLS-16] Fixed HttpServletResponse intercepted sendError call
svariant Apr 28, 2023
4044dbe
[SLS-16] Added all environment variables to docker-compose.yaml with …
svariant Apr 28, 2023
a9b6703
[SLS-16] added e2e test collection.
Apr 28, 2023
e96510a
Merge remote-tracking branch 'origin/SLS-16' into SLS-16
Apr 28, 2023
7cbea90
[rework_simple_assertion_storage] Updated SimpleAssertionStorage
Apr 28, 2023
ea5d214
[SLS-16] Fixed multisignature test
svariant Apr 28, 2023
8c0573b
[SLS-16] Added node_modules and test reports to gitignore
svariant Apr 28, 2023
12f2f8c
[SLS-16] Added pr_scan tasks to run e2e tests
svariant Apr 28, 2023
f3aec80
[SLS-16] Added build tasks - commented tasks for testing
svariant Apr 28, 2023
8193d43
[SLS-16] Decommented gradle tasks
svariant Apr 28, 2023
cb875f5
[SLS-16] Fixed gradlew command
svariant Apr 28, 2023
4f60997
[SLS-16] Decommented gradle action
svariant Apr 28, 2023
1801f40
[SLS-16] Defined working directories for tasks
svariant Apr 28, 2023
ab70da3
[rework_simple_assertion_storage] Updated SimpleAssertionStorage
Apr 28, 2023
3b13852
[SLS-16] Added publish to maven local
svariant Apr 28, 2023
43046ed
[SLS-16] Docker compose up run in foreground
svariant Apr 28, 2023
8713b45
[SLS-16] Merged docker compose up and build
svariant Apr 28, 2023
c24a7d9
Merge pull request #44 from pagopa/rework_simple_assertion_storage
alessio-cialini Apr 28, 2023
ef4cbfd
[SLS-16] Newman failed assertion test
svariant Apr 28, 2023
e0259ea
[SLS-16] Throwing error test
svariant Apr 28, 2023
126a312
[SLS-16] Throw errors when collection tests failes
svariant Apr 28, 2023
e3829db
[SLS-16] Decommented PR scan tests - re-committed right postman colle…
svariant Apr 28, 2023
7870cad
[SLS-16] Added path matcher to interceptor sample spring
svariant Apr 28, 2023
2498fa7
Merge pull request #47 from pagopa/SLS-16
alessio-cialini Apr 28, 2023
a2cf555
[SLS-16] added config for spring sample endpoint.
May 2, 2023
b8bf510
[SLS-16] Added Mockoon to mock spring sample on docker
svariant May 2, 2023
a96a456
Merge branch 'SLS-16' of https://github.com/pagopa/eng-lollipop-consu…
svariant May 2, 2023
e9b07ed
[SLS-16] Moved env files into e2e folder
svariant May 2, 2023
376f876
[SLS-16] Fixed base url in newman env
svariant May 2, 2023
58dd84d
[SLS-16] Added endpoint config variable to docker yaml
svariant May 2, 2023
0321914
[SLS-16] Test for pr scan
svariant May 2, 2023
fcd9931
[SLS-16] Test pr scan
svariant May 2, 2023
d1fd5e1
[SLS-16] Test pr scan - decommented tasks
svariant May 2, 2023
0662e26
[SLS-16] Test pr scan
svariant May 2, 2023
5c29be9
[SLS-16] Test pr scan
svariant May 2, 2023
d222b58
[SLS-16] Test pr scan
svariant May 2, 2023
9ce7c1c
[SLS-16] Added --wait to docker compose
svariant May 2, 2023
b47dfa5
[SLS-16] Added actuator spring sample - added healtcheck and wait to …
svariant May 2, 2023
d4881b1
[SLS-16] Removed docker build - added tag image to docker compose
svariant May 2, 2023
e480449
[SLS-16] Revert docker build commit
svariant May 2, 2023
f45945b
[SLS-16] Added sleep to pr scan tasks
svariant May 2, 2023
fe2fe82
[SLS-16] Newman verbose
svariant May 2, 2023
7cea850
Merge pull request #48 from pagopa/SLS-16
alessio-cialini May 2, 2023
edafaa0
Merge pull request #49 from pagopa/core-sprint-4
alessio-cialini May 2, 2023
0f92a66
Merge pull request #50 from pagopa/develop
alessio-cialini May 2, 2023
50b3bb1
[SLS-39] Introducing baseline for general README.md
May 3, 2023
0e0f729
[SLS-39] End-to-end and Spring sample README
svariant May 3, 2023
3a01b43
[SLS-39] Updated core README.md
May 3, 2023
855c3ce
[SLS-39] Updated core README.md
May 3, 2023
2afbb49
[SLS-39] Readme of the clients' modules
svariant May 4, 2023
e36e5dd
[SLS-39] Updated core README.md with references to the E2E testing do…
May 4, 2023
0a4f555
[SLS-39] fixed typo
May 4, 2023
d38402d
[SLS-39] fixed broken references in root README.md
May 4, 2023
3aeb1ae
Merge remote-tracking branch 'origin/SLS-39' into SLS-39
May 4, 2023
2aa969d
[SLS-39] updated README.md with guidelines on how to generate new ver…
May 4, 2023
b1ab11d
[SLS-39] Fixed wrong reference
May 4, 2023
d43e0fc
[SLS-39] Updated README.md with paragraphs regarding core configurati…
May 4, 2023
216d582
[SLS-39] Fixed broken reference
May 4, 2023
2155ffc
[SLS-39] Introducing example paragraph regarding the httpMessageVerif…
May 4, 2023
95c63ba
[SLS-39] Introducing example paragraph regarding the lollipop request…
May 4, 2023
e90bca0
[SLS-39] Updated format in submodules README.md files, introduced spr…
May 4, 2023
9c426b7
[SLS-39] Updated README.md with references to native build and paragr…
May 4, 2023
fc6573b
[SLS-39] Updated README.md with references to the Assertion rest clie…
May 4, 2023
4d1c85b
[SLS-39] Updated README.md with references to the IdP rest client imp…
May 4, 2023
7f43939
[SLS-39] Updated README.md
May 4, 2023
eccab43
[SLS-27] Introducing skeleton for Redis client storage
May 4, 2023
45b87d5
[SLS-39] Added prerequisite to e2e test readme
svariant May 5, 2023
b26bbfa
[SLS-39] Added info on the usage of docker for users with arc64 cpus
svariant May 5, 2023
4ef1bb1
[SLS-39] Removed repository title on e2e readme
svariant May 5, 2023
85a0adc
[SLS-39] Added info on github environment variables
svariant May 5, 2023
d409a60
[SLS-27] Introducing redis storage implementation
May 5, 2023
5b2fec7
[Dockerfile] Updated Dockerfile.test-only in order to update dependen…
May 8, 2023
60d4319
Merge pull request #51 from pagopa/SLS-39
alessio-cialini May 8, 2023
8467e7d
Merge pull request #52 from pagopa/SLS-27
alessio-cialini May 8, 2023
32a8ab1
[SLS-39] fix Readme typo.
May 8, 2023
00a46c4
[redis extra] Introducing extra configurations for connection pooling…
May 8, 2023
a0c8ff2
[redis extra] Updated verification-metadata.xml with sha1
May 8, 2023
fba4fd7
[redis extra] Updated verification-metadata.xml
May 8, 2023
8add6f4
[redis extra] Updated verification-metadata.xml
May 8, 2023
f9f4fbd
[redis extra] Updated ClusteredRedisStorage, README.md and RedisIdpCe…
May 8, 2023
cb40dc1
[redis extra] Updated RedisStorageConfig
May 8, 2023
c3a8295
[redis extra] Updated ClusteredRedisStorage and tests
May 8, 2023
f19980d
[redis extra] Updated RedisIdpCertStorageIntegrationTest
May 8, 2023
0be4f02
Merge pull request #53 from pagopa/redis_extra
alessio-cialini May 8, 2023
e53ab7b
[SLS-28] implemented servlet filter.
May 9, 2023
e4aec60
[SLS-28] updated verification-metadata.xml with sha1.
May 9, 2023
ed1706e
[SLS-28] fix verification-metadata.xml sha1.
May 9, 2023
c5822f7
Merge pull request #54 from pagopa/SLS-28
alessio-cialini May 9, 2023
38f5344
[SLS-34] Added simple java sample application using typesafe configur…
svariant May 9, 2023
b850024
[SLS-34] Defined utility class for typesafe configuration in core module
svariant May 9, 2023
610ff4e
[SLS-34] Added typesafe sample reference to general README
svariant May 9, 2023
d9234e4
[redis extra] Updated RedisAssertionStorage, SamlAssertion, SimpleRed…
May 9, 2023
4463117
[redis extra] Introducing RedisAssertionStorage, updated SamlAssertio…
May 9, 2023
75b9260
Merge pull request #55 from pagopa/redis_extra
alessio-cialini May 9, 2023
80a7e20
[SLS-28] added sample that uses servlet-impl module.
May 9, 2023
04749d6
[SLS-34] Added info in the general README about the utility classes i…
svariant May 9, 2023
4de5727
[SLS-34] Added typesafe metadata
svariant May 9, 2023
c7323a5
Merge pull request #56 from pagopa/SLS-28
alessio-cialini May 9, 2023
e961432
[SLS-34] Added simple java sample application using typesafe configur…
svariant May 9, 2023
f38f1ac
[SLS-34] Defined utility class for typesafe configuration in core module
svariant May 9, 2023
879b889
[SLS-34] Added typesafe sample reference to general README
svariant May 9, 2023
7bbaaf9
[SLS-34] Added info in the general README about the utility classes i…
svariant May 9, 2023
7b4e767
[SLS-34] Added typesafe metadata
svariant May 9, 2023
546a227
[SLS-34] Merge commit
svariant May 9, 2023
25f7351
Merge pull request #57 from pagopa/SLS-34
alessio-cialini May 9, 2023
4ab43d4
[SLS-34] added Readme in servlet-impl module and updated SDK Readme.
May 10, 2023
6bf313e
Merge pull request #58 from pagopa/SLS-34
gioelemella May 10, 2023
d34952f
Introduced dependabot.yml with gradle package ecosystem
May 10, 2023
68142a2
Merge remote-tracking branch 'origin/1.0.0-RC1' into 1.0.0-RC1
May 10, 2023
de3a49a
[1.0.0-RC1] Fixed code smell
May 10, 2023
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
9 changes: 9 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#
# https://help.github.com/articles/dealing-with-line-endings/
#
# Linux start script should use lf
/gradlew text eol=lf

# These are Windows script files and should use crlf
*.bat text eol=crlf

37 changes: 37 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<!--- Please always add a PR description as if nobody knows anything about the context these changes come from. -->
<!--- Even if we are all from our internal team, we may not be on the same page. -->
<!--- Write this PR as you were contributing to a public OSS project, where nobody knows you and you have to earn their trust. -->
<!--- This will improve our projects in the long run! Thanks. -->

#### List of Changes

<!--- Describe your changes in detail -->

#### Motivation and Context

<!--- Why is this change required? What problem does it solve? -->

#### How Has This Been Tested?

<!--- Please describe in detail how you tested your changes. -->
<!--- Include details of your testing environment, tests ran to see how -->
<!--- your change affects other areas of the code, etc. -->

#### Screenshots (if appropriate):

#### Types of changes

<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as
expected)

#### Checklist:

<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->

- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "gradle"
directory: "/"
schedule:
interval: "daily"
101 changes: 101 additions & 0 deletions .github/workflows/pr_scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
name: Check Build and Anchore on PR

on:
pull_request:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

env:
DOCKERFILE: Dockerfile.test-only
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
PROJECT_KEY: 'pagopa_eng-lollipop-consumer-java-sdk'

jobs:
pr_scan:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write

steps:
- name: Checkout project sources
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3
with:
fetch-depth: 0
- name: Setup Gradle
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
- name: Cache SonarCloud packages
uses: actions/cache@v1
with:
path: ~/.sonar-project.properties/cache
key: ${{ runner.os }}-sonar-project.properties
restore-keys: ${{ runner.os }}-sonar-project.properties
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Run build with Gradle Wrapper
run: ./gradlew build testCodeCoverageReport
- name: Add coverage to PR
id: jacoco
uses: madrapps/jacoco-report@7a334255fbce42f385d7567c25d986a9c62e2971
with:
paths: ${{ github.workspace }}/test-coverage/build/reports/jacoco/testCodeCoverageReport/testCodeCoverageReport.xml
token: ${{ secrets.GITHUB_TOKEN }}
min-coverage-overall: 40
min-coverage-changed-files: 60
- name: Build the Docker image
run: docker build . --file ${{ env.DOCKERFILE }} --tag localbuild/testimage:latest
- name: Run the Anchore Grype scan action
uses: anchore/scan-action@d5aa5b6cb9414b0c7771438046ff5bcfa2854ed7
id: scan
with:
image: "localbuild/testimage:latest"
fail-build: true
severity-cutoff: "high"
- name: Upload Anchore Scan Report
uses: github/codeql-action/upload-sarif@9885f86fab4879632b7e44514f19148225dfbdcd
if: always()
with:
sarif_file: ${{ steps.scan.outputs.sarif }}
- name: Run Sonar Scanner on Pull Request
if: ${{ github.event_name == 'pull_request' }}
run: ./gradlew sonar --info
-Dsonar.organization=pagopa
-Dsonar.projectKey=${{ env.PROJECT_KEY }}
-Dsonar.coverage.jacoco.xmlReportPaths=**/test-coverage/build/reports/jacoco/testCodeCoverageReport/testCodeCoverageReport.xml
-Dsonar.coverage.exclusions="**/config/*","**/*Mock*","**/model/**","**/entity/*","**/*Stub*","**/*Config*,**/*Exception*"
-Dsonar.cpd.exclusions="**/model/**,**/entity/**,**/simple/internal/**"
-Dsonar.host.url=https://sonarcloud.io
-Dsonar.java.libraries="**/*.jar"
-Dsonar.login=${{ env.SONAR_TOKEN }}
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }}
-Dsonar.pullrequest.branch=${{ github.head_ref }}
-Dsonar.pullrequest.base=${{ github.base_ref }}
- name: Run Sonar Scanner
if: ${{ github.event_name != 'pull_request' }}
run: ./gradlew sonar --info
-Dsonar.organization=pagopa
-Dsonar.projectKey=${{ env.PROJECT_KEY }}
-Dsonar.coverage.jacoco.xmlReportPaths=**/test-coverage/build/reports/jacoco/testCodeCoverageReport/testCodeCoverageReport.xml
-Dsonar.coverage.exclusions="**/config/*","**/*Mock*","**/model/**","**/entity/*","**/*Stub*","**/*Config*,**/*Exception*"
-Dsonar.cpd.exclusions="**/model/**,**/entity/**,**/simple/internal/**"
-Dsonar.host.url=https://sonarcloud.io
-Dsonar.java.libraries="**/*.jar"
-Dsonar.login=${{ env.SONAR_TOKEN }}
-Dsonar.branch.name=${{ github.head_ref }}
- name: Publish to Maven Local
run: ./gradlew publishToMavenLocal
- name: Build Spring Sample
working-directory: ./samples/spring
run: chmod +x ./gradlew && ./gradlew bootJar
- name: Run Docker compose with .env.dev
run: docker compose --env-file e2e/.env.dev up -d --build --wait
- name: Sleep for 30 seconds
run: sleep 30s
shell: bash
- name: Install node modules and execute e2e tests
working-directory: ./e2e
run: npm install && npm run execute-test
- name: Shutdown docker compose
run: docker compose down
75 changes: 75 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: Publish package to GitHub Packages
on:
release:
types: [created]
env:
DOCKERFILE: Dockerfile.test-only
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8
id: cache
with:
key: OpenJDK11U-jdk_x64_linux_hotspot_11.0.18_10.tar.gz
path: |
- ${{ runner.temp }}/jdkfile.tar.gz
- ${{ runner.temp }}/jdkfile.sha256
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3
# jdkfile version hash was locally computed and checked against https://github.com/paketo-buildpacks/adoptium/releases
- if: steps.cache.outputs.cache-hit != 'true'
run: |
echo "4a29efda1d702b8ff38e554cf932051f40ec70006caed5c4857a8cbc7a0b7db7 ${{ runner.temp }}/jdkfile.tar.gz" >> ${{ runner.temp }}/jdkfile.sha256
echo {{ runner.temp }}/jdkfile.sha256
curl -L "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.18%2B10/OpenJDK11U-jdk_x64_linux_hotspot_11.0.18_10.tar.gz" -o "${{ runner.temp }}/jdkfile.tar.gz"
sha256sum --check --status "${{ runner.temp }}/jdkfile.sha256"
- uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2
with:
distribution: "jdkfile"
jdkFile: "${{ runner.temp }}/jdkfile.tar.gz"
java-version: "11"
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Publish package
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
with:
arguments: publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Make spring sample gradlew executable
run: chmod +x ./gradlew
working-directory: ./samples/spring
- name: Run build with Gradle Wrapper on Spring Sample
run: ./gradlew bootJar
working-directory: ./samples/spring
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push Docker image
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
secrets: |
"GITHUB_ACTOR=${{ secrets.GITHUB_ACTOR }}"
"GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}"
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Ignore Gradle project-specific cache directory
.gradle

# Ignore IntelliJ
.idea

# Ignore Gradle build output directory
build

# Ignore newman node modules and test reports
e2e/newman
e2e/node_modules
24 changes: 24 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# 1. `pip install pre-commit`
# 2. `pre-commit install`
repos:
- repo: https://github.com/jguttman94/pre-commit-gradle
rev: v0.2.1
hooks:
- id: gradle-task
name: update-verification-metadata-sha256
args: [ '-w', '--write-verification-metadata sha256 help']
- id: gradle-spotless
args: [ '-w']
- id: gradle-check
args: [ '-w' ]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: check-yaml
- id: check-added-large-files
- id: check-merge-conflict
- repo: https://github.com/gitleaks/gitleaks
rev: v8.16.1
hooks:
- id: gitleaks
3 changes: 3 additions & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# see https://help.github.com/en/articles/about-code-owners#example-of-a-codeowners-file

* @pagopa/pagopa-tech
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM eclipse-temurin:11-jdk-alpine as build

WORKDIR /build
COPY ./samples/spring .

FROM eclipse-temurin:11-jdk-alpine as runtime

WORKDIR /app
COPY --from=build /build/build/libs/*.jar /app/app.jar
COPY --from=build /build/build/resources/main/application.properties /app/application.properties

RUN apk --update --no-cache add curl

RUN addgroup -S appuser && adduser -S appuser -G appuser
USER appuser

EXPOSE 8080
ENTRYPOINT [ "java","-jar","/app/app.jar", "/app/application.properties" ]
10 changes: 10 additions & 0 deletions Dockerfile.test-only
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM amazoncorretto:11

RUN yum update -y --security
RUN mkdir /app

COPY core/build/libs/*.jar /app/
COPY http-verifier/build/libs/*.jar /app/
COPY redis-storage/build/libs/*.jar /app/
COPY identity-service-rest-client-native/build/libs/*.jar /app/
COPY assertion-rest-client-native/build/libs/*.jar /app/
Binary file modified README.md
Binary file not shown.
25 changes: 25 additions & 0 deletions assertion-rest-client-native/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Assertion rest client
This module is used to obtain the user's SAML assertion.

The parameters needed to get the assertion are the jwt and the assertion's ref,
both retrieved from the http request's headers.

At this moment only SAML assertion are supported, OIDC claims are not.

## Configuration
The client uri, endpoints and the entity id of the CIE identity provider are configurable and are configured by default as follows:

| VARIABLE | DEFAULT VALUE | USAGE |
|--------------------------|-----------------------|---------------------------------------------------|
| baseUri | http://localhost:3000 | base uri of the api for retrieving the assertions |
| assertionRequestEndpoint | /assertions | endpoint of the request |

## Example

In order to create a new instance of the client using the provider and an instance of the configuration class:

```
AssertionClientConfig config = AssertionSimpleClientConfig.builder().build();
AssertionClientProvider assertionClientProvider =
new AssertionSimpleClientProvider(config);
```
Loading