summaryrefslogtreecommitdiffstats
path: root/certServiceClient/src/main/java
AgeCommit message (Collapse)AuthorFilesLines
2020-12-18[OOM-CERT-SERVICE] Align implementation with RFC4210Piotr Marcinkiewicz2-4/+4
- change MAC algorithm - limit iterations to random value from 1000-2000 range - correct caName validation to allow URL safe characters Issue-ID: OOM-2656 Signed-off-by: Piotr Marcinkiewicz <piotr.marcinkiewicz@nokia.com> Change-Id: I2c320607e7a02996cd249f45ac224e3f3a8aa3c9
2020-12-02[OOM CERT-SERVICE-CLIENT] Fix null pointer when sans empty2.3.1Remigiusz Janeczek1-1/+2
Issue-ID: OOM-2632 Signed-off-by: Remigiusz Janeczek <remigiusz.janeczek@nokia.com> Change-Id: I5e05eb2923b96313cb1d37eb844862289d6acae1
2020-11-25[OOM cert-service-client] Add validation of email, ip and domain namekjaniak14-84/+292
Added SanMapper to distinguish types of SANS. ExitableException changed to RuntimeException. Introcudced intermediate object San. Issue-ID: OOM-2559 Signed-off-by: kjaniak <kornel.janiak@nokia.com> Change-Id: I060de9869ab9fd737a474f683a251abd8431d224
2020-11-20[OOM CERT-SERVICE-CLIENT] Improve readability of URI regexTomasz Wrobel1-15/+34
Issue-ID: OOM-2632 Signed-off-by: Tomasz Wrobel <tomasz.wrobel@nokia.com> Change-Id: Ic016c788d4dfde95ecd5eca955508385cd144bb4
2020-11-19Merge "[OOM CERT-SERVICE-CLIENT] Add URI validator (RFC 3986)"Bogumil Zebek2-0/+53
2020-11-19[OOM CERT-SERVICE-CLIENT] Add URI validator (RFC 3986)Tomasz Wrobel2-0/+53
Issue-ID: OOM-2632 Signed-off-by: Tomasz Wrobel <tomasz.wrobel@nokia.com> Change-Id: Ia71d413a56f65b0a51ff5c2e7522035f41e06faf
2020-11-18[CLIENT] Change certService client to use comma as SANS delimiterRemigiusz Janeczek1-1/+1
Issue-ID: OOM-2632 Signed-off-by: Remigiusz Janeczek <remigiusz.janeczek@nokia.com> Change-Id: I12a39cd514261a555081addb333ef1a99a481424
2020-11-13[OOM ext-cert-provider] Refacor in validation (intermediate solution)kjaniak9-116/+196
Atomic validation function moved to BasicValidationFunctions More complex validation is served by ValidatorsFactory Sans property class object changed to List<String> Signed-off-by: kjaniak <kornel.janiak@nokia.com> Issue-ID: OOM-2559 Change-Id: I4719499dde969db95e2caa172f767674690c40e1
2020-08-05Removing AAF references from Cert-Service in OOM repo.baniewsk48-185/+185
Certificates regenerated External files (from legacy AAF) removed Still left: * Sonar link, * Link to documentation, * Names of K8s resources in RTD documentation, * Link to CSITs Issue-ID: OOM-2526 Signed-off-by: Pawel Baniewski <pawel.baniewski@nokia.com> Change-Id: I675f7485160b9b8e46e9ea573550e62ed28ca607
2020-07-13Add subfolders creationkjaniak3-3/+17
Added new not existing subfolders creation in output path to allow CMPv2 integration. Top up version to 1.2.0 Issue-ID: DCAEGEN2-2252 Change-Id: I59f8dfa7fddc5eb3a3fdd80ce18eb3e2272e1bfb Signed-off-by: kjaniak <kornel.janiak@nokia.com>
2020-06-25Fix sonar issuesPiotr Marcinkiewicz1-4/+8
Issue-ID: AAF-1152 Signed-off-by: Piotr Marcinkiewicz <piotr.marcinkiewicz@nokia.com> Change-Id: I6e6ec500720204af32b8581e97fc563ac5c81acb
2020-06-25Fix checkstyle warnings1.1.0Piotr Marcinkiewicz8-18/+18
Issue-ID: AAF-1152 Signed-off-by: Piotr Marcinkiewicz <piotr.marcinkiewicz@nokia.com> Change-Id: I77777db7080000c22ef3db9ff8e755dac8258c9e
2020-06-23Move ArtifcatsCreationProvider one level higherkjaniak29-76/+96
Code style cleanup (warnings from checkstyle). Issue-ID: AAF-1152 Signed-off-by: kjaniak <kornel.janiak@nokia.com> Change-Id: I0a8bbd998cd6aed4cf818ffe10c7fbffe99e9d22
2020-06-19Add creation JKS artifactPiotr Marcinkiewicz6-60/+113
Issue-ID: AAF-1152 Signed-off-by: Piotr Marcinkiewicz <piotr.marcinkiewicz@nokia.com> Change-Id: I8b38dc07ddbf6758e0c4c036100572b350dceab9
2020-06-18Add PEM artifacts creationJoanna Jeremicz8-106/+194
with unit tests Issue-ID: AAF-1152 Change-Id: I95afd62330f3111f916507d628d142262ff951cc Signed-off-by: Joanna Jeremicz <joanna.jeremicz@nokia.com>
2020-06-18Add validation for OUTPUT_TYPE parameter (2)pwielebs3-7/+18
Issue-ID: AAF-1152 Signed-off-by: pwielebs <piotr.wielebski@nokia.com> Change-Id: I026d7979dcb35ccd3c953217b2eccf376cfaf85b
2020-06-17Add validation for OUTPUT_TYPE parameterpwielebs2-2/+16
Issue-ID: AAF-1152 Signed-off-by: pwielebs <piotr.wielebski@nokia.com> Change-Id: Iec46b8a7b8e1818b62877f5272368636dc1929a0
2020-06-16Remove unnecessary exceptionsTomasz Wrobel4-89/+2
Issue-ID: AAF-1152 Signed-off-by: Tomasz Wrobel <tomasz.wrobel@nokia.com> Change-Id: Ie343cd2e3006f9217db5b8454c060eb8c1d3e9e3
2020-06-16Refactor flow of cert files generation, based on OUTPUT_TYPE parameterTomasz Wrobel6-25/+129
-Add artifacts creator provider (strategy pattern) -Refactor KeystoreTruststoreCreator -Add new exception: CertOutputTypeNotSupported -Change Unit tests Issue-ID: AAF-1152 Signed-off-by: Tomasz Wrobel <tomasz.wrobel@nokia.com> Change-Id: If2b2fa50d551e72f19319d781bfb6079d07c7b83
2020-06-15Merge "Added new status code and exception for input parameter validation."Paweł Baniewski2-1/+36
2020-06-10Add output type env to certservice client configurationPiotr Marcinkiewicz4-3/+24
- add new enum value OUTPUT_TYPE - add reading new OUTPUT_TYPE env in EnvsForClient - add handling output type to ClientConfigurationFactory Issue-ID: AAF-1152 Signed-off-by: Piotr Marcinkiewicz <piotr.marcinkiewicz@nokia.com> Change-Id: I60269c3befff90f685e16a8e7255674df6ca9368
2020-06-10Added new status code and exception for input parameter validation.Jan Malkiewicz2-1/+36
- new exit code OUTPUT_TYPE_PARAMETER_VALIDATION_EXCEPTION - new exception OutputTypeParameterValidationException Issue-ID: AAF-1152 Signed-off-by: Jan Malkiewicz <jan.malkiewicz@nokia.com> Change-Id: I3b76c05057250dd86651fa30828a977a8fa1cd2d
2020-05-20Improve code coverage for CertServiceClientpwielebs2-2/+2
Issue-ID: AAF-996 Signed-off-by: pwielebs <piotr.wielebski@nokia.com> Change-Id: I2d9c5143446be73e3576f006359e734f5f2300d4
2020-04-24Fix wrong ExitStatus for TLS ExceptionAdam Wudzinski1-1/+1
Issue-ID: AAF-1132 Signed-off-by: Adam Wudzinski <adam.wudzinski@nokia.com> Change-Id: I4c7039416277a8cf9eb31e149a91c44e06367308
2020-04-06Fix sonar issue RandomPasswordGeneratoredyta1-2/+3
Issue-ID: AAF-1118 Signed-off-by: Edyta Krukowska <edyta.krukowska@nokia.com> Change-Id: Idfd7e957b6dda043d7343ddffe334c5400620217
2020-04-03Merge "Fix sonar issue with nosonar annotation"Bogumil Zebek2-10/+9
2020-04-03Switch client and server to communicate over TLSawudzins10-14/+223
Issue-ID: AAF-1084 Signed-off-by: Adam Wudziński <adam.wudzinski@nokia.com> Change-Id: I7f11b27c7dcdf4fc3eba2d5e64b6dc775c80dd74
2020-04-03Fix sonar issue with nosonar annotationedyta2-10/+9
Issue-ID: AAF-1118 Signed-off-by: Edyta Krukowska <edyta.krukowska@nokia.com> Change-Id: Ibcde00c211e3ab1965c576c7d2436d2d9869482b
2020-04-02Merge "Fix sonar issue Password"Bogumil Zebek2-9/+13
2020-04-02Fix sonar secure issue RandomPasswordGeneratoredyta1-0/+4
Issue-ID: AAF-1118 Signed-off-by: Edyta Krukowska <edyta.krukowska@nokia.com> Change-Id: I687b4af22ae07ce6d0bbbc5abfdf53635f30f54f
2020-04-02Fix sonar issue Passwordedyta2-9/+13
Issue-ID: AAF-1118 Signed-off-by: Edyta Krukowska <edyta.krukowska@nokia.com> Change-Id: I07b50976f57c97c17ae5ffcd36775c7aba089c4f
2020-04-02Merge "Fix sonar issue KeyPairFactory"Paweł Baniewski1-1/+1
2020-04-01Fix sonar issue KeyPairFactoryedyta1-1/+1
Issue-ID: AAF-1118 Signed-off-by: Edyta Krukowska <edyta.krukowska@nokia.com> Change-Id: Ic52bb4f32ac1fb694222ad6f6895430cecb676d4
2020-04-01Merge "Fix sonar issue Password"Bogumil Zebek1-1/+1
2020-04-01Merge "Fix sonar issue AppExitHandler"Bogumil Zebek1-2/+2
2020-03-31Fix sonar issue KeyPairFactoryedyta2-4/+5
Issue-ID: AAF-1118 Signed-off-by: Edyta Krukowska <edyta.krukowska@nokia.com> Change-Id: I61d714f30c2f4d21b3b4c538e0d85da55b9b322c
2020-03-31Fix sonar issue AppExitHandleredyta1-2/+2
Issue-ID: AAF-1118 Signed-off-by: Edyta Krukowska <edyta.krukowska@nokia.com> Change-Id: I9ed1b206dd0f8130aee11d453f1cdd6eaa534a58
2020-03-31Fix sonar issue Passwordedyta1-1/+1
Issue-ID: AAF-1118 Signed-off-by: Edyta Krukowska <edyta.krukowska@nokia.com> Change-Id: I762d04feda617f84c558860c7ac37b73c50d9fdf
2020-03-31Fix sonar issue KeyPairFactoryedyta1-2/+2
Issue-ID: AAF-1118 Signed-off-by: edyta <edyta.krukowska@nokia.com> Change-Id: Ie9512a772c64a4217539eb80c3b31f90054fab33
2020-03-24Merge "Improve code coverage"Paweł Baniewski1-1/+5
2020-03-23Improve code coverageBogumil Zebek1-1/+5
Issue-ID: AAF-1107 Signed-off-by: Zebek Bogumil <bogumil.zebek@nokia.com> Change-Id: I117eefc86867f388509b56e19e6b1d0d78df9d0b
2020-03-23Merge "Improve readability of logs for positive path"Bogumil Zebek10-20/+57
2020-03-23Improve readability of logs for positive pathmharazin10-20/+57
Issue-ID: AAF-1107 Signed-off-by: Mateusz Harazin <mateusz.harazin@nokia.com> Change-Id: If6501ad59955cac6611bc233d3fcd4ef95829b66
2020-03-23Fix timeout issue when cert service is unavailableTomasz Wrobel1-1/+5
Issue-ID: AAF-1107 Signed-off-by: Tomasz Wrobel <tomasz.wrobel@nokia.com> Change-Id: I0fd5f2615345e9d018af766b665971b90de6c3a0
2020-03-23Improve exceptions logging in certservice clientTomasz Wrobel19-98/+99
Issue-ID: AAF-1107 Signed-off-by: Tomasz Wrobel <tomasz.wrobel@nokia.com> Change-Id: I94a6477a7b1f086b698be4f0388e7a3ded0cd0f3
2020-03-19Improve validation of country code (2)pwielebs1-7/+4
Issue-ID: AAF-1107 Signed-off-by: pwielebs <piotr.wielebski@nokia.com> Change-Id: I2de9d1ddb01212d6953699c82556a342ab8c70cd
2020-03-18Improve validation of country codepwielebs1-4/+9
Issue-ID: AAF-1107 Signed-off-by: pwielebs <piotr.wielebski@nokia.com> Change-Id: Id8c1ca149fd65746a02ee480cfc8abbb6b9f7b5c
2020-03-12Removal of EnvValidationUtils class and cleanupkjaniak4-81/+47
Issue-ID: AAF-996 Change-Id: Iccbbf5d746ed5772a0327a30fa8bdbc57bc8fe46 Signed-off-by: kjaniak <kornel.janiak@nokia.com>
2020-03-11Add docker-compose with certservice-client container succesful runRemigiusz Janeczek1-1/+1
Fix client default request url to match default url from helm deployment of certservice-api Issue-ID: AAF-996 Signed-off-by: Remigiusz Janeczek <remigiusz.janeczek@nokia.com> Change-Id: Icfaf1043b6d6583cdf663a45dabd7b46d407dd2f
2020-03-10Fix sonar issue.Tomasz Wrobel6-10/+5
Issue-ID: AAF-996 Signed-off-by: Tomasz Wrobel <tomasz.wrobel@nokia.com> Change-Id: Iecac5c31b7c7177abe3ef7e598d8cec3262c8d34