summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2021-08-06Leave xacml-pdp REST server always runningJim Hahn4-47/+20
Liveness checks depend on the xacml-pdp REST server being available. However, the REST server is only running when PAP puts it in an active state. Modified the code to always leave it running. In a subsequent review, we should split the healthcheck REST service onto its own port so it can be left running, while the other services are started/stopped in response to PAP active/passive requests. Issue-ID: POLICY-3531 Change-Id: I412064abaf91bb966d40adc46cee771b3a0a5dfc Signed-off-by: Jim Hahn <jrh3@att.com>
2021-07-30Add tutorial example for multi-decisionsPamela Dragosh6-28/+380
Issue-ID: POLICY-3514 Change-Id: Ifcaa56d35ef359f2b24cc111ca9af4021000514f Signed-off-by: Pamela Dragosh <pd1248@att.com>
2021-07-21Add attribute return example into TutorialPamela Dragosh5-20/+84
Used the tutorial to demonstrate returning of attributes back into the Decision response. Needed to update the docker compose for both tutorials to ensure they are using the master branch versions of api and pap. Issue-ID: POLICY-2865 Change-Id: Ia568dfae27d659d940217ddf8d9295dd8409f0e3 Signed-off-by: Pamela Dragosh <pd1248@att.com>
2021-07-21Merge "Include returned attributes in Decision"Jim Hahn6-4/+143
2021-07-21Merge "Use docker registry properties in xacml-pdp"Ajith Sreekumar1-3/+1
2021-07-20Use docker registry properties in xacml-pdpJim Hahn1-3/+1
Issue-ID: POLICY-3374 Change-Id: I492d69bcebb394219d0a70bac0be6caa289abda8 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-07-20Include returned attributes in DecisionPamela Dragosh6-4/+143
Adds new method to return attributes in a decision, which can be configurable. By default it is turned off which ensures that the current functionality is maintained for our client applications. Enhanced the JUnits for the applications to ensure that no extra information is passed, thus maintaining backward compatibility. Issue-ID: POLICY-2865 Change-Id: Ia533e5462c0cb475cb1f72f34e95f128d6c52678 Signed-off-by: Pamela Dragosh <pd1248@att.com>
2021-07-19Use new RestClientParameters class in xacml-pdpJim Hahn26-153/+122
Replaced generic BusTopicParams with more specific RestClientParameters. Also modified code to pass the HttpClient around instead of passing the client parameters around. Issue-ID: POLICY-3456 Change-Id: Ic07b710645eeab696e6df0a015171578ad08ca83 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-07-16Remove spaces from postman collectionPamela Dragosh1-0/+0
Issue-ID: POLICY-3163 Change-Id: I116b9f1f3aa4b17b83d1d56de733b58840d682f4 Signed-off-by: Pamela Dragosh <pd1248@att.com>
2021-07-16Add exclusions parameterPamela Dragosh10-11/+166
Adds the exclusions parameter to exclude applications that are in the java classpath. This allows overriding default packaged applications with another that can support new policy types and/or modify existing functionality. Issue-ID: POLICY-3326 Change-Id: Iaad8d26fc4122ad17226ad1e83b72c9f284e6ebd Signed-off-by: Pamela Dragosh <pd1248@att.com>
2021-07-14Use lombok in xacml-pdpJim Hahn25-210/+64
Also: - changed a few fields to private/protected. - swwapped out gson for coder Issue-ID: POLICY-3400 Change-Id: I9a4dba939b77078f78583ada00af182b1a7d95c5 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-07-13Change config to add Application groupPamela Dragosh17-30/+163
First step for configuration which applications should be loaded and mapped to actions is to add a new parameter group for application parameters. Issue-ID: POLICY-3326 Change-Id: I3867b4e927d57e1e81519dee32d10eed3dabc667 Signed-off-by: Pamela Dragosh <pd1248@att.com>
2021-06-28Use unique name in xacml-pdp PdpStatus messagesJim Hahn4-11/+16
Added unique name to PdpStatus and HealthCheckReports. Issue-ID: POLICY-3410 Change-Id: Ife2248ffee9afae76f3eaab7f8b33dba8bdb4019 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-06-28Update xacml-pdp for checkstyle 8.43liamfallon1-44/+70
Updates are indentation changes on annotations. Issue-ID: POLICY-3209 Change-Id: I64ee5517996dbb2ae8a043d215c7ccddad121fe3 Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-06-24Use protected methods vs privatePamela Dragosh8-23/+24
Application and common code in xacml-pdp is meant to be available for developers to re-use and/or extend as desired. Private methods are unnecessary at this time, but could be re-visited in a later release. For Honolulu, simply moving to protected to keep functionality the same. Possibly for Istanbul we can make more changes to support mixing of ONAP application with custom applications during runtime. Issue-ID: POLICY-3305 Change-Id: I6db23bda3c81fdbbf86e39cc2cd2e706d8bee63d Signed-off-by: Pamela Dragosh <pdragosh@research.att.com> (cherry picked from commit 8e0aa0ffa5cef537de1c841acf38300832c52a56) Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2021-06-18Fix new checkstyle issues in xacml-pdpJim Hahn2-4/+4
The new version of checkstyle identified new issues. Fixed those. Issue-ID: POLICY-3288 Change-Id: I334e9eb67c9270c4e53b2fb34e576b8bfbf8ec8b Signed-off-by: Jim Hahn <jrh3@att.com>
2021-06-10Fix sonars in xacml-pdpJim Hahn2-2/+2
Fixed sonars: - use "var" Issue-ID: POLICY-3288 Change-Id: If4f685e0d645f6d6fbdd2cdb86c6b67336f6839a Signed-off-by: Jim Hahn <jrh3@att.com>
2021-06-01Update junits for bean validator field nameJim Hahn1-2/+2
Now that the bean validator uses the serialized field name in its error messages, updated the junits to use the serialized names, too. Issue-ID: POLICY-3333 Change-Id: I017aa654480baef06f2869116d4b5264bb32c721 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-05-27Replace validation code with annotationsJim Hahn8-262/+297
Instead of having code to validate various values, created POJOs to represent the decoded data so that bean validation annotations could be used instead. Didn't see any obvious ways to use annotations in the Optimization code, but did notice a bug (passed role instead of provisions). Extracted a common method which fixed the bug as a side-effect. Issue-ID: POLICY-2418 Change-Id: I9ef589086fc8f7f66810b66405fbf302d7570e5a Signed-off-by: Jim Hahn <jrh3@att.com>
2021-05-26Merge "Change indexes on Op History table"Ajith Sreekumar2-3/+9
2021-05-25Change indexes on Op History tableJim Hahn2-3/+9
This is the companion change to that made in policy-models. Per review comments: - added index to s3p sql script Issue-ID: POLICY-2874 Change-Id: Ic270b8da92be8b921b3a865ff1ce923af21faaab Signed-off-by: Jim Hahn <jrh3@att.com>
2021-05-25Support delta policy lists in xacml-pdpJim Hahn2-33/+112
Updated xacml-pdp to use the deploy & undeploy lists in the PDP-UPDATE message. Added more code coverage to the junit test class. Per review: - added logging for unexpected cases Issue-ID: POLICY-3188 Change-Id: I0f899abcd497f7eb711d4df358e455fd2d50e904 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-05-13Remove csit folder from policy/xacml-pdpRam Krishna Verma9-297/+0
The csit test files for all repos have been consolidated in policy/docker to maintain them at single place and allow us to trigger verify jobs in gerrit reviews. Issue-ID: POLICY-3257 Change-Id: I54e93a2b43de0e4b36ac74a5cd94eda741bad5fa Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-05-11Fix xacml-pdp csit test casesRam Krishna Verma1-12/+12
In the recent runs, it was found that get statitcs might take few seconds longer after the actual deployment of policies. So, increasing the "max" wait time for the test cases to 1 min. And it won't slow down the tests as the check will be made every 15 sec to verify if the assertions are passing. The moment they pass, it will move on. Issue-ID: POLICY-3257 Change-Id: I505c6e95e78a35b8bf1ee9921efbfcb4bd4874fb Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-05-07Refactor policy/xacml-pdp csit testsRam Krishna Verma1-129/+70
* Removed the deprecated methods. * Removed duplicated code. * Created method hierarchy to improve the readability. * Updated the assertions on various tests. Issue-ID: POLICY-3257 Change-Id: If9562b19e1a9b16ee0d5a5211a557b4f818f62c3 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-05-07Merge "Fix sonars in xacml-pdp"Pamela Dragosh39-244/+235
2021-05-06Fix sonars in xacml-pdpJim Hahn39-244/+235
Fixed: - use "var" instead of actual type Issue-ID: POLICY-3285 Change-Id: Id17142d1f2e3e5f9dfbffcb96aff7fe76321a56b Signed-off-by: Jim Hahn <jrh3@att.com>
2021-05-06Update tutorials to point to honolulu imagesPamela Dragosh2-12/+12
These should point to released images so that the user can perform the tutorial without any problems. They can certainly update the docker-compose.yml with whatever image they want. Issue-ID: POLICY-3292 Change-Id: I85b9bb90bb959d0f1078238344c4aa25ef2b2a35 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2021-04-29Remove GroupValidationResultJim Hahn4-93/+49
Removed GroupValidationResult, replacing it with BeanValidationResult. Modified the ParameterGroup subclasses to use BeanValidator, adding annotations where needed to trigger the validations that had been automatically performed by GroupValidationResult. Issue-ID: POLICY-2059 Change-Id: I039f761745316fea41d63bdc885584c9a9c2bc6e Signed-off-by: Jim Hahn <jrh3@att.com>
2021-04-07Use sh instead of ash in xacml-pdpJim Hahn2-4/+4
Issue-ID: POLICY-3160 Change-Id: I168a7d4630c487dd9d219f25383cd2f4fd781028 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-03-29Change pap deploy response code to 202 for jmeterjhh1-4/+4
Issue-ID: POLICY-3108 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I04ef297c2a7941dd2d174ce2ce95337c0776efa4
2021-03-19Delete keystores from xacmlJim Hahn3-4/+4
The Keystore is no longer needed in the tarball, as it is supplied externally by the CSITs and Helm charts. Deleted that file. Also modified the junits to use utils-test to generates keystores at runtime, thus deleted the junit keystore file, too. Issue-ID: POLICY-3143 Change-Id: If4966538452a16b22ea3a338eb9656a295641402 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-03-17Change RestServerParameters to BusTopicParamsJim Hahn33-136/+129
HTTP client parameters should be based on BusTopicParams instead of RestServerParameters, modified the policyApiParameters. Issue-ID: POLICY-3147 Change-Id: I73aa34bec3ab7e27e7a3474260f411ed55b6f933 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-03-16Update policy-keystore with newer certificatesjhh2-0/+0
Issue-ID: POLICY-3139 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: Ia0c86441b1c95b45959be070015ea57f106d7002
2021-03-12Remove more unnecessary plugins from xacml-pdpJim Hahn1-44/+3
Issue-ID: POLICY-3126 Change-Id: Ic20b00aa1f2eaac0272792809a059a851bfbfffc Signed-off-by: Jim Hahn <jrh3@att.com>
2021-03-12Address plugin-not-found issuesJim Hahn1-31/+0
Removed references to archetype-packaging and lifecycle-mapping, where unnecessary due to pom inheritance. Issue-ID: POLICY-3126 Change-Id: Ic48a4482b44f40000549bacf9627894e608977a3 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-03-11Bump xacml-pdp 2.5.0-SNAPSHOTPamela Dragosh21-25/+25
Issue-ID: POLICY-3105 Change-Id: I9fd03ff6a405b127c1eabbfe301f3b9ea8327aad Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2021-03-10Merge "add a sleep 5 sec for robot"Jim Hahn1-0/+1
2021-03-10add a sleep 5 sec for robotTaka Cho1-0/+1
add a sleep time to ensure the deploypolicies received Issue-ID: POLICY-2895 Change-Id: Ib21fdfb54ab2fe550a359f04a82cb355b354026d Signed-off-by: Taka Cho <takamune.cho@att.com>
2021-03-09Bump xacml to 2.4.2-SNAPSHOTPamela Dragosh21-21/+21
Issue-ID: POLICY-3127 Change-Id: I586fc25f730b708d047999706fd74d6b965bb130 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2021-03-09Release xacml-pdp 2.4.1 dockerPamela Dragosh1-0/+8
Issue-ID: POLICY-3127 Change-Id: I1421920c16de5f9f9d8bf6208d022e4e4d987bfa Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2021-03-09Release xacml-pdp 2.4.1 mavenPamela Dragosh1-0/+5
Issue-ID: POLICY-3127 Change-Id: Iac7bb6264de5f5726926da94560d59a4c93ff16a Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2021-03-09Point to released models 2.4.1Pamela Dragosh1-1/+1
Issue-ID: POLICY-3127 Change-Id: I1c3255e15bff18185705465ebbfc0db6cc0b5f22 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2021-03-05modify filename and path for csit - xcamlTaka Cho1-1/+1
after doing a test in jenkins sandbox found some errors have to be fixed. Issue-ID: POLICY-2895 Change-Id: Iaa470749f62dbd7c2f90ef9c7367176c6e70aa05 Signed-off-by: Taka Cho <takamune.cho@att.com>
2021-02-26move xacml csit to xacml repoTaka Cho9-0/+355
move tests/plans to from csit repo to xacml repo Issue-ID: POLICY-2895 Change-Id: If8840f286c35136ae76314a6557cf186a9bf8a4a Signed-off-by: Taka Cho <takamune.cho@att.com>
2021-02-24Update info.yaml in xacml-pdpRam Krishna Verma1-2/+2
Issue-ID: POLICY-3028 Change-Id: Ib7719f80c7927bb9b803cc7e4ef50cfc9c7a0071 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-02-23bump poms to 2.4.1-SNAPSHOTjhh21-21/+21
Issue-ID: POLICY-3088 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I42c32bbb1ef6e275b8b3a0693492c7e4e61dd6eb
2021-02-23release 2.4.0 container imagejhh1-0/+8
Issue-ID: POLICY-3088 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I76189f2d4a7f95018ce99dab9fca5064c16eac14
2021-02-23maven release 2.4.0jhh1-0/+5
Issue-ID: POLICY-3088 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I24c82abf8ca5a769d20cbdb7dca9955f1896a0b7
2021-02-23use base policy-jre-alpine:2.2.1 imagejhh1-2/+2
Issue-ID: POLICY-3088 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I3eed92d8f3014580565efebdabb4464d9e38f13e Signed-off-by: jhh <jorge.hernandez-herrero@att.com>