summaryrefslogtreecommitdiffstats
path: root/csarvalidation
AgeCommit message (Collapse)AuthorFilesLines
2022-04-13Merge "Logs has to be removed while throwing exceptions"Kanagaraj Manickam1-2/+1
2022-04-12Logs has to be removed while throwing exceptionsprakash.e@huawei.com1-2/+1
https://sonarcloud.io/project/issues?resolved=false&severities=MAJOR&id=onap_vnfsdk-validation&open=AW6lcX_CwQN7qqDOuZdy Issue-ID: VNFSDK-832 Signed-off-by: prakash.e@huawei.com <prakash.e@huawei.com> Change-Id: Ifd98abaab869d4df71afe9f2eef4a9f8f1268aec
2022-04-12Merge "Vulnerability handled for zip files in code"Kanagaraj Manickam1-1/+1
2022-04-11nested comment addition on explaining why this method is emptyprakash.e@huawei.com1-1/+1
https://sonarcloud.io/project/issues?resolved=false&severities=CRITICAL&id=onap_vnfsdk-validation&open=AW6lcX-nwQN7qqDOuZds Issue-ID: VNFSDK-832 Signed-off-by: prakash.e@huawei.com <prakash.e@huawei.com> Change-Id: I35dacd498146017c556da87a95cbb3a9a302f503
2022-04-11Vulnerability handled for zip files in codeprakash.e@huawei.com1-1/+1
https://sonarcloud.io/project/issues?resolved=false&severities=BLOCKER&id=onap_vnfsdk-validation&open=AXk4ivtaWcQzNZo7t49m Issue-ID: VNFSDK-832 Signed-off-by: prakash.e@huawei.com <prakash.e@huawei.com> Change-Id: I37a9eb51d2c1896045951e86f45dcec8c39b060e
2022-04-10vnfsdk validation code refactoring in method createDirectoryprakash.e@huawei.com1-1/+5
https://sonarcloud.io/project/issues?resolved=false&severities=BLOCKER&types=VULNERABILITY&id=onap_vnfsdk-validation&open=AXk4ivruWcQzNZo7t49l Issue-ID: VNFSDK-832 Signed-off-by: prakash.e@huawei.com <prakash.e@huawei.com> Change-Id: Ib123d5f3648d81c3583119996ec7e50699f6cfec
2022-04-10Added validation for pathname in unzip methodprakash.e@huawei.com1-9/+4
https://sonarcloud.io/project/issues?resolved=false&severities=BLOCKER&id=onap_vnfsdk-validation&open=AXem3AYTgLw0BJ6Agbf8 https://sonarcloud.io/project/issues?resolved=false&severities=BLOCKER&id=onap_vnfsdk-validation&open=AXem3AYTgLw0BJ6Agbf9 https://sonarcloud.io/project/issues?resolved=false&severities=BLOCKER&id=onap_vnfsdk-validation&open=AXem3AYTgLw0BJ6Agbf7 Issue-ID: VNFSDK-832 Signed-off-by: prakash.e@huawei.com <prakash.e@huawei.com> Change-Id: Ic63fe2fbbf675d187cf7415d8889a47f6e29faa6
2022-04-10Parameter name is same as class name and it has been renamedprakash.e@huawei.com1-5/+5
https://sonarcloud.io/project/issues?resolved=false&severities=MAJOR&id=onap_vnfsdk-validation&open=AXcmGzOcttGLhQMuJU4_ Issue-ID: VNFSDK-832 Signed-off-by: prakash.e@huawei.com <prakash.e@huawei.com> Change-Id: I87fad01e01822baa10b8894e5fc16539a318c43d
2022-03-30parameter filePath is not validated before using it.prakash.e@huawei.com1-0/+4
https://sonarcloud.io/project/issues?resolved=false&severities=BLOCKER&id=onap_vnfsdk-validation&open=AXem3AYTgLw0BJ6Agbf7 Issue-ID: VNFSDK-832 Signed-off-by: prakash.e@huawei.com <prakash.e@huawei.com> Change-Id: Iefa47f59aa13ec5d13fafe1a7a6c874096fd7eb9
2022-03-25vnfsdk validation sonar cloud blocker issue fixprakash.e@huawei.com1-3/+6
https://sonarcloud.io/project/issues?resolved=false&severities=BLOCKER&id=onap_vnfsdk-validation&open=AXem3AYTgLw0BJ6Agbf8 Issue-ID: VNFSDK-832 Signed-off-by: prakash.e@huawei.com <prakash.e@huawei.com> Change-Id: I217bf91e336f1c96090f4dfd5aa4b4267a43dd24
2021-05-06Rename PM_Dictionary_Validator to Dictionary_ValidatoristanbulBartosz Gardziejewski3-3/+3
Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: Icb65e6f832804aa4a958e530422d35e079ffe3c1 Issue-ID: VNFSDK-769
2021-01-21Update documentation and fix path to python test resourcesEdyta Krukowska8-51/+152
Issue-ID: VNFSDK-731 Signed-off-by: Edyta Krukowska <edyta.krukowska@nokia.com> Change-Id: Ie7b045fd55a2192bc90c972e60de58ac5aaa66cc
2021-01-20Add release parameter to rulesBogumil Zebek50-283/+1020
- All vnf/pnf rules where updated. Release parameter was added into the info->metadata section. - VNFSDK validation logic supports optional release parameter. Parameter defines which rules should be used during validation process. By default: all rules are used during validation process. --release parameter defines which rules (parent with ancestors) should be used. For example: if user run validation with --release=dublin, then amsterdam, casablanca and dublin rules will be used during validation. Rules order is defined in the vnfreqs.properties file. Change-Id: I3e9dc1e7a899fa51c266808cbcb73e04a2e252cc Issue-ID: VNFSDK-731 Signed-off-by: Zebek Bogumil <bogumil.zebek@nokia.com>
2021-01-20Change versino to 1.2.20Bartosz Gardziejewski1-1/+1
Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I0cb2aeaeb6a804e65c5d435263eb528c448f0d52 Issue-ID: VNFSDK-714
2021-01-13Add support for signature in PCKS7 format.Bartosz Gardziejewski16-27/+421
Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: Ic98d1b9c93c11c484c86338588922c2f347b7c02 Issue-ID: VNFSDK-714
2021-01-07Change version to 1.2.19Bartosz Gardziejewski1-1/+1
Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I72bdfe2acaf3f9d8485791cda6d487271e09cfb3 Issue-ID: VNFSDK-721
2021-01-07Change version to 1.2.18Bartosz Gardziejewski1-1/+1
Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I15c9d1f872c135a92df94596c8d0c3115e458152 Issue-ID: VNFSDK-721
2020-12-29Add individual artifact validation using common cert.Bartosz Gardziejewski22-536/+1264
Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I2aa4e862f3d343a3f452e1564dc8a97a34960b83 Issue-ID: VNFSDK-714
2020-12-16Change version to 1.2.17Bartosz Gardziejewski1-1/+1
Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I492f240fdb8d3bfeffc9c23a510b2f38c3168825 Issue-ID: VNFSDK-715
2020-12-15Fix validation of error messages.Bartosz Gardziejewski1-2/+24
Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: Id0e83041823558a56932286895363503f77f6de4 Issue-ID: VNFSDK-715
2020-12-10Add signature and certificate for individual artifacts.Bartosz Gardziejewski11-82/+329
Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: Ifb9e06fffefea6b4d068a915b69b66c750ab02e8 Issue-ID: VNFSDK-714
2020-12-10Add fields for signature and certificate in source model.Bartosz Gardziejewski3-17/+367
Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I0783dd9f78c0138fba871d0977e4cd8305891872 Issue-ID: VNFSDK-714
2020-12-08Merge "Add rules parameter for selected rules validation"Bogumil Zebek4-11/+153
2020-12-02Merge "Add python script to generate table with active validation rules."Bogumil Zebek18-3/+603
2020-12-01Add python script to generate table with active validation rules.Bartosz Gardziejewski18-3/+603
Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I4c944fe6c5bd3cb7f8807d954cc85ad16743841b Issue-ID: VNFSDK-696
2020-12-01Change version to 1.2.16Pawel1-1/+1
Issue-ID: VNFSDK-713 Signed-off-by: Pawel <pawel.kasperkiewicz@nokia.com> Change-Id: Ibef6ae2369d9f9b77e31064ce7525a277844a581
2020-11-26Add possibility to validation pm-dictionary from byte arrayPawel1-2/+2
Issue-ID: VNFSDK-713 Signed-off-by: Pawel <pawel.kasperkiewicz@nokia.com> Change-Id: I2d2de2cfe066e1cbbdea3bc8fac771914779e117
2020-11-24Extract pm-dicrionary validationPawel37-3035/+5
Issue-ID: VNFSDK-713 Signed-off-by: Pawel <pawel.kasperkiewicz@nokia.com> Change-Id: Iee5a23a3a6c9215927aa2c453faab62d30453444
2020-10-29Add rules parameter for selected rules validationBartosz Gardziejewski4-11/+153
This commit will add extra, optional parameter for csar-validation command. New parameter is named "rules", and it allows to specify rules that will be validated. Using this parameter allows to use refrepo/marketplace to validate selected rules and at the same time guarantee that response format will be exactly the same as for validating all rules, this is in contrast for validating one rule using csar-validate-<rule>, that returns json significantly different then csar-validate. Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I6eb228d360354c0e249032d013e6a23d1f2713ff Issue-ID: VNFSDK-700
2020-10-23Change version to 1.2.15Bartosz Gardziejewski1-1/+1
Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: Id2edd82230f3f57eaa6473e24e976985552a07f8 Issue-ID: VNFSDK-481
2020-10-15Add handling of CSAR with no TOSCA meta and no certificate.Bartosz Gardziejewski4-2/+52
Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: Ic9914b13e0bd5d9844849f20051d99d18e369ae9 Issue-ID: VNFSDK-481
2020-10-13Add error when CMS and TOSCA meta file are present, however TOSCA does not ↵Bartosz Gardziejewski4-34/+36
contains ETSI-Entry-Certificate Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I238ac7544f1eda9fa1bc0f2a89120dc3ae33437a Issue-ID: VNFSDK-660
2020-10-13Revert "Update ONAP cli to 6.0.0 ."Bartosz Gardziejewski2-3/+3
This reverts commit bbb1c92f09a8ef563f6897c2afa1073ecdd4d73b. Reason for revert: Bug exist in version 6.0.0 ONAP CLI. Change-Id: I3690383252b90f918f2f708eac2c1f518faea3dc Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Issue-ID: VNFSDK-697
2020-10-12Update ONAP cli to 6.0.0 .Bartosz Gardziejewski2-3/+3
Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I03e78efbf1b22ba6b58f9d204a2dda1b97958588 Issue-ID: VNFSDK-697
2020-10-07Refactor functional tests for CSAR validation.Bartosz Gardziejewski6-180/+398
Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: Icaa53313d66a01dccc779959b49b74857402cb71 Issue-ID: VNFSDK-661
2020-09-25Release validation 1.2.13Adam Wudzinski1-1/+1
Add new field called "warnings" to oclip json response. All ignored errors are now reported as warnings. - https://jira.onap.org/browse/VNFSDK-596 Fixed rule R130206 CMS and certificate searching and validation mechanism - https://jira.onap.org/browse/VNFSDK-595 Issue-ID: VNFSDK-596 Signed-off-by: adam.wudzinski@nokia.com <adam.wudzinski@nokia.com> Change-Id: Ic235ed14976576586fe8512eeaa8d9253e4609cb
2020-09-24Fixing R130206 certificate searching mechanismBartosz Gardziejewski38-201/+764
Issue-ID: VNFSDK-595 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I8dacd924b16812378356b05291229f2097dfcbe1
2020-09-23Merge "Add warnings field to oclip json response"Bogumil Zebek3-20/+76
2020-09-21Add warnings field to oclip json responseAdam Wudzinski3-20/+76
Add new field called "warnings" to oclip json response. All ignored errors are now reported as warnings. Signed-off-by: Adam Wudzinski <adam.wudzinski@nokia.com> Issue-ID: VNFSDK-596 Change-Id: Ifebfb09b54156f0566858e942d73a7a5ef34721f
2020-09-14Merge "code improvements"Bogumil Zebek6-159/+161
2020-09-14code improvementspriyanka.akhade6-159/+161
Signed-off-by: priyanka.akhade <priyanka.akhade@huawei.com> Issue-ID: VNFSDK-608 Change-Id: Ia4b6d62bc0a3a94487e2a8748cfbfff9727a7d77
2020-09-10Change version to 1.2.13Bartosz Gardziejewski1-1/+1
Issue-ID: VNFSDK-645 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: Ic5cd36832fa251643a3fe4b1fc06e315037d5155
2020-09-04added non-vulnerable log4j versionpriyanka.akhade1-1/+1
Signed-off-by: priyanka.akhade <priyanka.akhade@huawei.com> Issue-ID: VNFSDK-553 Change-Id: I6844d21d095d6f3031382fa271babfc50eee4a98
2020-08-28Merge "Fix searching for path to PM_Dictionary in manifest file."Bogumil Zebek4-7/+44
2020-08-27Fix searching for path to PM_Dictionary in manifest file.Bartosz Gardziejewski4-7/+44
Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I3bf22f9095c560fa6c98e37b6d28b306e9af4d95 Issue-ID: VNFSDK-645
2020-08-24Fix commons-io vulnerabilityjitendra0071-1/+1
Issue-ID: VNFSDK-584 Signed-off-by: jitendra007 <jitendra.sharma1@huawei.com> Change-Id: I8a91c7f441559cd9e3ddcd9cbd1223fd9882c320
2020-08-21Migrate from java 8 to java 11Bogumil Zebek4-62/+147
Change-Id: If146dc0d99541a8a14ecc5e504c49a5c433a262f Issue-ID: VNFSDK-631 Signed-off-by: Zebek Bogumil <bogumil.zebek@nokia.com>
2020-08-21Fix commons-codec vulnerabilityjitendra0071-0/+11
Issue-ID: VNFSDK-584 Signed-off-by: jitendra007 <jitendra.sharma1@huawei.com> Change-Id: I78c1bd06c040085419155ad7bb19c070f416715a
2020-08-20Change version to 1.2.12Bartosz Gardziejewski1-1/+1
Issue-ID: VNFSDK-644 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I900ba711ff8525eb26674a76abac6d6fb45f386e
2020-08-20Wrap exceptions connected with Yaml parsing in order to send them as ↵Bartosz Gardziejewski8-1/+364
validation error. Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: Iae6c0948746bb903945de1796b6f42952d4072ba Issue-ID: VNFSDK-644