aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2021-10-13release docker image 2.5.1jhh1-0/+8
Issue-ID: POLICY-3696 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: Idb999cd821d49f7a3da6973ba98e659e577f4794
2021-10-13release maven artifactsjhh1-0/+5
Issue-ID: POLICY-3696 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: Ie32f21167799dc367702309be02823723d82d75f
2021-10-13Update parent/common/models/docker referencesliamfallon2-4/+4
Issue-ID: POLICY-3696 Change-Id: Ie0edcbcd7bd7d351f13d415553aa04744b5ab285 Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-09-14Bump xacml-pdp to 2.5.1-SNAPSHOTRam Krishna Verma21-21/+21
Issue-ID: POLICY-3587 Change-Id: I4e912da513ba8ecaf4bdc71659b7b273c0aaab05 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-09-14Release xacml-pdp 2.5.0 docker imageRam Krishna Verma1-0/+8
Issue-ID: POLICY-3587 Change-Id: I43d23553f26050010477614cee7e2636121f432e Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-09-14Release xacml-pdp 2.5.0 maven artifactsRam Krishna Verma1-0/+5
Issue-ID: POLICY-3587 Change-Id: I62e8466153769f91c90d5e0b27d01f2be88c65b3 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-09-13Use released common and modelsliamfallon1-2/+2
Issue-ID: POLICY-3587 Change-Id: I71cfb4a8f554618d48bfd9e3696934450b8c4f5e Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-09-09Remove blank line from INFO.yamlliamfallon1-1/+0
Issue-ID: POLICY-3587 Change-Id: I0ac07acbd91523d448f6004e07531c8736b88848 Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-09-09Point at released policy-parentliamfallon1-1/+1
Issue-ID: POLICY-3587 Change-Id: I3ef745b1051e5fbdbbc563d64ff28077496fd6c5 Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-09-09Merge "Update INFO.yaml"Pamela Dragosh1-11/+15
2021-09-08Update INFO.yamlliamfallon1-11/+15
Update the INFO.yaml file with latest information. Issue-ID: POLICY-3552 Change-Id: I9e06af4343686af920e09a7aa7c5e4d91fe3c04d Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-09-06Decrease eclipselink verbosity to warningjhh1-1/+1
Issue-ID: POLICY-3611 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I63b78252f7c46d039d3709c4356ebdef4f4a96c6
2021-08-30Add metrics to permanent servicesjhh1-1/+1
Issue-ID: POLICY-3531 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I30ac993f161f2ed7e86a968e3f51631d3654b516
2021-08-26Use policy/docker image 2.3.0Jim Hahn1-1/+1
Issue-ID: POLICY-3587 Change-Id: I30c13c533635147d0ce70f58d42aaa8ac1a09604 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-08-23Add filter to control xacml-pdp rest apiJim Hahn10-34/+287
Added a filter class for the REST server that only allows "API" services (i.e., decision API services) through when the API is enabled, disallowing them otherwise. The filter always allows PDP-wide services (e.g., "healthcheck"). Per review comments: - modified the new class to "implement Filter" rather than "extends AafFilter" Issue-ID: POLICY-3531 Change-Id: I7055e21045eea270e454a47a443b29476d9a85ee Signed-off-by: Jim Hahn <jrh3@att.com>
2021-08-23Merge "Fix junits broken by change in is-alive type"Jim Hahn1-1/+3
2021-08-23Fix junits broken by change in is-alive typeJim Hahn1-1/+3
Issue-ID: POLICY-3531 Change-Id: I5eadaa6dbb0c66940a5af0c552894a3d874d51a1 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-08-23Enable prometheus by default in xacml-pdpa.sreekumar1-1/+2
Change-Id: Ifae3e0bd9eac90ce843e7b987088dc86907dbd23 Issue-ID: POLICY-3538 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2021-08-20Revert "Leave xacml-pdp REST server always running"Jim Hahn4-20/+43
This reverts commit 031a0fe51dff21445034befc8a6d8732622acd07. Issue-ID: POLICY-3531 Change-Id: I20eddfc11589b6ab4822a93b8c8c3d3f209537c0 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-08-19Wait for pdp-pap topic in xacml-pdpJim Hahn5-32/+168
Added code to use the new topic-checker functionality to verify communication on the PDP-PAP topic before sending the first heartbeat. This functionality can be disabled by setting probeHeartbeatTopicMs to 0 in the xacml config file. Issue-ID: POLICY-3531 Change-Id: I113792c67aa26fbb188767d3e973b21dbe04f570 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-08-17Synchronize updates to xacml-pdp stateJim Hahn2-6/+12
Perhaps this will fix the issue wherein xacml-pdp heartbeats continue to say "PASSIVE" even after it's set to "ACTIVE". Issue-ID: POLICY-3531 Change-Id: I6639ed7ca793a899f62e5c80b336408f5e8b2dc6 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-08-09use url resource for docker-tag -- xacmlTaka Cho1-20/+6
use groovy url resource from docker repo to identify the tag for docker. Also, rename to dist.project.version for the unified docker-tag.groovy Issue-ID: POLICY-3378 Change-Id: I68c739b315d3d794baa4685a3f141e3b7cf9ef31 Signed-off-by: Taka Cho <takamune.cho@att.com>
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>