policy/xacml-pdp.git
19 months agoUpgrade xacml engine to 3.1.0 80/130880/1 istanbul
jhh [Tue, 6 Sep 2022 17:24:29 +0000 (12:24 -0500)]
Upgrade xacml engine to 3.1.0

Issue-ID: POLICY-4275
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: Ia1422e168465dbb9dca1961e7d0f5371ea619f62
(cherry picked from commit e233b1bf56718760659045ab50bd1dd822638441)
(cherry picked from commit 7da13422e12dead035c91dba5ca7c424fcf7f50e)

20 months agoUpdate PF base image 45/130845/1
liamfallon [Sun, 11 Sep 2022 18:21:42 +0000 (19:21 +0100)]
Update PF base image

Update PF base image to snapshot

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4338
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I0b86deb7b74f7911d392f3f05937d404ee4ab546

22 months agoupdate policy models references 43/129843/1
liamfallon [Mon, 11 Jul 2022 12:44:26 +0000 (13:44 +0100)]
update policy models references

updated policy models references

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-4233
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I7350926e7895a4268ec53d90814bde984784015b

22 months agoFix Raw XACML Decision API Serialization 22/129822/1
dc443y [Wed, 6 Jul 2022 19:25:55 +0000 (14:25 -0500)]
Fix Raw XACML Decision API Serialization

Issue-ID: POLICY-4274
Signed-off-by: dc443y <dc443y@att.com>
Change-Id: I0d367d35e7ec52c7587ec75194b654cc41303868
Signed-off-by: dc443y <dc443y@att.com>
23 months agoSet the default tag of image policy-xacml-pdp to be project version on istanbul 30/129230/1
xudan16 [Wed, 18 May 2022 02:57:47 +0000 (10:57 +0800)]
Set the default tag of image policy-xacml-pdp to be project version on istanbul

The default tag of image policy-xacml-pdp was latest.
When building on istanbul branch, the latest tag generated
will override the one generated on master branch.

Issue-ID: POLICY-4186
Signed-off-by: xudan16 <xudan16@huawei.com>
Change-Id: I211396c1bcdc98602b199d52655bec43d865fc84

2 years agoUpdate snapshot and/or references of policy/xacml-pdp to latest snapshots 21/127421/1
liamfallon [Tue, 1 Mar 2022 16:34:15 +0000 (16:34 +0000)]
Update snapshot and/or references of policy/xacml-pdp to latest snapshots

policy/xacml-pdp updated to its latest own and reference snapshots

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-3958
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I59a3f8406f4f95580f4473fe5a3089acf7472af4

2 years agoRelease docker images for policy/xacml-pdp: 2.5.2 02/127402/1
liamfallon [Tue, 1 Mar 2022 13:27:14 +0000 (13:27 +0000)]
Release docker images for policy/xacml-pdp: 2.5.2

This commit releases docker images for repo policy/xacml-pdp.

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-3958
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I20ffb916305ecf3a5529dc73dcd2832979fc530e

2 years agoRelease policy/xacml-pdp: 2.5.2 80/127380/1
liamfallon [Mon, 28 Feb 2022 17:15:57 +0000 (17:15 +0000)]
Release policy/xacml-pdp: 2.5.2

This commit releases repo policy/xacml-pdp.

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-3958
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: Id344f5ac0b6e3e73bf695a627647079d1c7ca188

2 years agoupdate references in policy/xacml-pdp pom 68/127368/1
liamfallon [Mon, 28 Feb 2022 14:49:05 +0000 (14:49 +0000)]
update references in policy/xacml-pdp pom

updated references in the policy/xacml-pdp pom

*** This commit is generated by a PF release script ***

Issue-ID: POLICY-3958
Signed-off-by: liamfallon <liam.fallon@est.tech>
Change-Id: I7dcf0a1a9bce2e6ad32f5d3a1782e6b3456880ad

2 years agoPoint to Istanbul snapshot dependency 55/125355/1 9.0.0-ONAP
Ram Krishna Verma [Mon, 25 Oct 2021 22:49:18 +0000 (18:49 -0400)]
Point to Istanbul snapshot dependency

Issue-ID: POLICY-3788
Change-Id: I4a0a3481936484395d6d6a175df2ce862e9019f7
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2 years agoChange policy-xacml-pdp default branch on istanbul 95/124995/1
a.sreekumar [Thu, 14 Oct 2021 12:55:37 +0000 (13:55 +0100)]
Change policy-xacml-pdp default branch on istanbul

Change-Id: Ia9aa5cd6341a263cf4ccdab25ce3c2a0a98604e9
Issue-ID: POLICY-3696
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2 years agoBump policy/xacml-pdp to 2.5.2-SNAPSHOT 78/124978/2
liamfallon [Thu, 14 Oct 2021 11:18:42 +0000 (12:18 +0100)]
Bump policy/xacml-pdp to 2.5.2-SNAPSHOT

Issue-ID: POLICY-3696
Change-Id: I892219ee37f689eaa250142d0a1e6610a8b227ff
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agorelease docker image 2.5.1 24/124924/1
jhh [Thu, 14 Oct 2021 00:07:27 +0000 (19:07 -0500)]
release docker image 2.5.1

Issue-ID: POLICY-3696
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: Idb999cd821d49f7a3da6973ba98e659e577f4794

2 years agorelease maven artifacts 18/124918/1
jhh [Wed, 13 Oct 2021 21:24:58 +0000 (16:24 -0500)]
release maven artifacts

Issue-ID: POLICY-3696
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: Ie32f21167799dc367702309be02823723d82d75f

2 years agoUpdate parent/common/models/docker references 99/124899/1
liamfallon [Wed, 13 Oct 2021 14:30:08 +0000 (15:30 +0100)]
Update parent/common/models/docker references

Issue-ID: POLICY-3696
Change-Id: Ie0edcbcd7bd7d351f13d415553aa04744b5ab285
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoBump xacml-pdp to 2.5.1-SNAPSHOT 09/124209/1
Ram Krishna Verma [Tue, 14 Sep 2021 21:37:38 +0000 (17:37 -0400)]
Bump xacml-pdp to 2.5.1-SNAPSHOT

Issue-ID: POLICY-3587
Change-Id: I4e912da513ba8ecaf4bdc71659b7b273c0aaab05
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2 years agoRelease xacml-pdp 2.5.0 docker image 04/124204/1
Ram Krishna Verma [Tue, 14 Sep 2021 20:36:52 +0000 (16:36 -0400)]
Release xacml-pdp 2.5.0 docker image

Issue-ID: POLICY-3587
Change-Id: I43d23553f26050010477614cee7e2636121f432e
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2 years agoRelease xacml-pdp 2.5.0 maven artifacts 93/124193/1
Ram Krishna Verma [Tue, 14 Sep 2021 18:45:02 +0000 (14:45 -0400)]
Release xacml-pdp 2.5.0 maven artifacts

Issue-ID: POLICY-3587
Change-Id: I62e8466153769f91c90d5e0b27d01f2be88c65b3
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2 years agoUse released common and models 85/124085/1
liamfallon [Mon, 13 Sep 2021 15:43:45 +0000 (16:43 +0100)]
Use released common and models

Issue-ID: POLICY-3587
Change-Id: I71cfb4a8f554618d48bfd9e3696934450b8c4f5e
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoRemove blank line from INFO.yaml 12/124012/1
liamfallon [Thu, 9 Sep 2021 20:54:43 +0000 (21:54 +0100)]
Remove blank line from INFO.yaml

Issue-ID: POLICY-3587
Change-Id: I0ac07acbd91523d448f6004e07531c8736b88848
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoPoint at released policy-parent 02/124002/1
liamfallon [Thu, 9 Sep 2021 15:00:30 +0000 (16:00 +0100)]
Point at released policy-parent

Issue-ID: POLICY-3587
Change-Id: I3ef745b1051e5fbdbbc563d64ff28077496fd6c5
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoMerge "Update INFO.yaml"
Pamela Dragosh [Thu, 9 Sep 2021 13:36:54 +0000 (13:36 +0000)]
Merge "Update INFO.yaml"

2 years agoUpdate INFO.yaml 58/123958/1
liamfallon [Wed, 8 Sep 2021 12:17:10 +0000 (13:17 +0100)]
Update INFO.yaml

Update the INFO.yaml file with latest information.

Issue-ID: POLICY-3552
Change-Id: I9e06af4343686af920e09a7aa7c5e4d91fe3c04d
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoDecrease eclipselink verbosity to warning 05/123905/1
jhh [Tue, 7 Sep 2021 00:25:12 +0000 (19:25 -0500)]
Decrease eclipselink verbosity to warning

Issue-ID: POLICY-3611
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I63b78252f7c46d039d3709c4356ebdef4f4a96c6

2 years agoAdd metrics to permanent services 02/123702/1
jhh [Mon, 30 Aug 2021 22:54:21 +0000 (17:54 -0500)]
Add metrics to permanent services

Issue-ID: POLICY-3531
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I30ac993f161f2ed7e86a968e3f51631d3654b516

2 years agoUse policy/docker image 2.3.0 18/123618/1
Jim Hahn [Thu, 26 Aug 2021 17:40:11 +0000 (13:40 -0400)]
Use policy/docker image 2.3.0

Issue-ID: POLICY-3587
Change-Id: I30c13c533635147d0ce70f58d42aaa8ac1a09604
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoAdd filter to control xacml-pdp rest api 22/123422/3
Jim Hahn [Mon, 23 Aug 2021 19:53:55 +0000 (15:53 -0400)]
Add filter to control xacml-pdp rest api

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>
2 years agoMerge "Fix junits broken by change in is-alive type"
Jim Hahn [Mon, 23 Aug 2021 19:49:06 +0000 (19:49 +0000)]
Merge "Fix junits broken by change in is-alive type"

2 years agoFix junits broken by change in is-alive type 70/123470/1
Jim Hahn [Mon, 23 Aug 2021 18:44:54 +0000 (14:44 -0400)]
Fix junits broken by change in is-alive type

Issue-ID: POLICY-3531
Change-Id: I5eadaa6dbb0c66940a5af0c552894a3d874d51a1
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoEnable prometheus by default in xacml-pdp 57/123457/1
a.sreekumar [Mon, 23 Aug 2021 14:39:05 +0000 (15:39 +0100)]
Enable prometheus by default in xacml-pdp

Change-Id: Ifae3e0bd9eac90ce843e7b987088dc86907dbd23
Issue-ID: POLICY-3538
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2 years agoRevert "Leave xacml-pdp REST server always running" 21/123421/1
Jim Hahn [Fri, 20 Aug 2021 13:50:44 +0000 (09:50 -0400)]
Revert "Leave xacml-pdp REST server always running"

This reverts commit 031a0fe51dff21445034befc8a6d8732622acd07.

Issue-ID: POLICY-3531
Change-Id: I20eddfc11589b6ab4822a93b8c8c3d3f209537c0
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoWait for pdp-pap topic in xacml-pdp 01/123401/1
Jim Hahn [Thu, 19 Aug 2021 13:43:49 +0000 (09:43 -0400)]
Wait for pdp-pap topic in xacml-pdp

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>
2 years agoSynchronize updates to xacml-pdp state 38/123338/1
Jim Hahn [Tue, 17 Aug 2021 21:22:26 +0000 (17:22 -0400)]
Synchronize updates to xacml-pdp state

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>
2 years agouse url resource for docker-tag -- xacml 04/123204/2
Taka Cho [Mon, 9 Aug 2021 20:29:29 +0000 (16:29 -0400)]
use url resource for docker-tag -- xacml

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>
2 years agoLeave xacml-pdp REST server always running 74/123174/1
Jim Hahn [Fri, 6 Aug 2021 20:57:45 +0000 (16:57 -0400)]
Leave xacml-pdp REST server always running

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>
2 years agoAdd tutorial example for multi-decisions 18/123018/1
Pamela Dragosh [Fri, 30 Jul 2021 17:17:12 +0000 (13:17 -0400)]
Add tutorial example for multi-decisions

Issue-ID: POLICY-3514
Change-Id: Ifcaa56d35ef359f2b24cc111ca9af4021000514f
Signed-off-by: Pamela Dragosh <pd1248@att.com>
2 years agoAdd attribute return example into Tutorial 98/122798/2
Pamela Dragosh [Wed, 21 Jul 2021 14:58:13 +0000 (10:58 -0400)]
Add attribute return example into Tutorial

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>
2 years agoMerge "Include returned attributes in Decision"
Jim Hahn [Wed, 21 Jul 2021 13:50:44 +0000 (13:50 +0000)]
Merge "Include returned attributes in Decision"

2 years agoMerge "Use docker registry properties in xacml-pdp"
Ajith Sreekumar [Wed, 21 Jul 2021 11:35:41 +0000 (11:35 +0000)]
Merge "Use docker registry properties in xacml-pdp"

2 years agoUse docker registry properties in xacml-pdp 54/122754/2
Jim Hahn [Tue, 20 Jul 2021 13:59:53 +0000 (09:59 -0400)]
Use docker registry properties in xacml-pdp

Issue-ID: POLICY-3374
Change-Id: I492d69bcebb394219d0a70bac0be6caa289abda8
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoInclude returned attributes in Decision 45/122745/4
Pamela Dragosh [Mon, 19 Jul 2021 18:37:41 +0000 (14:37 -0400)]
Include returned attributes in Decision

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>
2 years agoUse new RestClientParameters class in xacml-pdp 18/122718/2
Jim Hahn [Mon, 19 Jul 2021 15:59:46 +0000 (11:59 -0400)]
Use new RestClientParameters class in xacml-pdp

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>
2 years agoRemove spaces from postman collection 82/122682/1
Pamela Dragosh [Fri, 16 Jul 2021 19:59:51 +0000 (15:59 -0400)]
Remove spaces from postman collection

Issue-ID: POLICY-3163
Change-Id: I116b9f1f3aa4b17b83d1d56de733b58840d682f4
Signed-off-by: Pamela Dragosh <pd1248@att.com>
2 years agoAdd exclusions parameter 67/122667/5
Pamela Dragosh [Thu, 15 Jul 2021 19:27:05 +0000 (15:27 -0400)]
Add exclusions parameter

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>
2 years agoUse lombok in xacml-pdp 40/122640/2
Jim Hahn [Wed, 14 Jul 2021 20:47:14 +0000 (16:47 -0400)]
Use lombok in xacml-pdp

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>
2 years agoChange config to add Application group 99/122599/2
Pamela Dragosh [Tue, 13 Jul 2021 14:12:14 +0000 (10:12 -0400)]
Change config to add Application group

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>
2 years agoUse unique name in xacml-pdp PdpStatus messages 40/122340/1
Jim Hahn [Mon, 28 Jun 2021 18:47:42 +0000 (14:47 -0400)]
Use unique name in xacml-pdp PdpStatus messages

Added unique name to PdpStatus and HealthCheckReports.

Issue-ID: POLICY-3410
Change-Id: Ife2248ffee9afae76f3eaab7f8b33dba8bdb4019
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoUpdate xacml-pdp for checkstyle 8.43 68/122268/1
liamfallon [Mon, 28 Jun 2021 10:19:40 +0000 (11:19 +0100)]
Update xacml-pdp for checkstyle 8.43

Updates are indentation changes on annotations.

Issue-ID: POLICY-3209
Change-Id: I64ee5517996dbb2ae8a043d215c7ccddad121fe3
Signed-off-by: liamfallon <liam.fallon@est.tech>
2 years agoUse protected methods vs private 76/121976/2
Pamela Dragosh [Wed, 23 Jun 2021 15:05:05 +0000 (11:05 -0400)]
Use protected methods vs private

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>
2 years agoFix new checkstyle issues in xacml-pdp 53/122053/1
Jim Hahn [Fri, 18 Jun 2021 18:03:38 +0000 (14:03 -0400)]
Fix new checkstyle issues in xacml-pdp

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>
2 years agoFix sonars in xacml-pdp 62/121862/1
Jim Hahn [Thu, 10 Jun 2021 19:51:02 +0000 (15:51 -0400)]
Fix sonars in xacml-pdp

Fixed sonars:
- use "var"

Issue-ID: POLICY-3288
Change-Id: If4f685e0d645f6d6fbdd2cdb86c6b67336f6839a
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoUpdate junits for bean validator field name 83/121683/1
Jim Hahn [Tue, 1 Jun 2021 19:12:15 +0000 (15:12 -0400)]
Update junits for bean validator field name

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>
2 years agoReplace validation code with annotations 75/121575/3
Jim Hahn [Thu, 27 May 2021 19:10:18 +0000 (15:10 -0400)]
Replace validation code with annotations

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>
2 years agoMerge "Change indexes on Op History table"
Ajith Sreekumar [Wed, 26 May 2021 11:38:05 +0000 (11:38 +0000)]
Merge "Change indexes on Op History table"

2 years agoChange indexes on Op History table 32/121532/3
Jim Hahn [Tue, 25 May 2021 13:06:50 +0000 (09:06 -0400)]
Change indexes on Op History table

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>
2 years agoSupport delta policy lists in xacml-pdp 22/121522/3
Jim Hahn [Mon, 24 May 2021 17:13:07 +0000 (13:13 -0400)]
Support delta policy lists in xacml-pdp

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>
3 years agoRemove csit folder from policy/xacml-pdp 48/121348/1
Ram Krishna Verma [Thu, 13 May 2021 19:32:12 +0000 (15:32 -0400)]
Remove csit folder from policy/xacml-pdp

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>
3 years agoFix xacml-pdp csit test cases 60/121260/1
Ram Krishna Verma [Tue, 11 May 2021 13:22:43 +0000 (09:22 -0400)]
Fix xacml-pdp csit test cases

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>
3 years agoRefactor policy/xacml-pdp csit tests 04/121204/1
Ram Krishna Verma [Fri, 7 May 2021 20:52:47 +0000 (16:52 -0400)]
Refactor policy/xacml-pdp csit tests

* 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>
3 years agoMerge "Fix sonars in xacml-pdp"
Pamela Dragosh [Fri, 7 May 2021 12:37:05 +0000 (12:37 +0000)]
Merge "Fix sonars in xacml-pdp"

3 years agoFix sonars in xacml-pdp 43/121143/1
Jim Hahn [Thu, 6 May 2021 18:57:24 +0000 (14:57 -0400)]
Fix sonars in xacml-pdp

Fixed:
- use "var" instead of actual type

Issue-ID: POLICY-3285
Change-Id: Id17142d1f2e3e5f9dfbffcb96aff7fe76321a56b
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoUpdate tutorials to point to honolulu images 34/121134/2
Pamela Dragosh [Thu, 6 May 2021 14:44:53 +0000 (10:44 -0400)]
Update tutorials to point to honolulu images

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>
3 years agoRemove GroupValidationResult 82/120982/2
Jim Hahn [Tue, 27 Apr 2021 15:39:56 +0000 (11:39 -0400)]
Remove GroupValidationResult

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>
3 years agoUse sh instead of ash in xacml-pdp 41/120241/2
Jim Hahn [Tue, 6 Apr 2021 19:44:33 +0000 (15:44 -0400)]
Use sh instead of ash in xacml-pdp

Issue-ID: POLICY-3160
Change-Id: I168a7d4630c487dd9d219f25383cd2f4fd781028
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoChange pap deploy response code to 202 for jmeter 99/119999/1
jhh [Mon, 29 Mar 2021 20:41:55 +0000 (15:41 -0500)]
Change pap deploy response code to 202 for jmeter

Issue-ID: POLICY-3108
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I04ef297c2a7941dd2d174ce2ce95337c0776efa4

3 years agoDelete keystores from xacml 54/119554/1
Jim Hahn [Fri, 19 Mar 2021 16:13:26 +0000 (12:13 -0400)]
Delete keystores from xacml

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>
3 years agoChange RestServerParameters to BusTopicParams 52/119452/3
Jim Hahn [Wed, 17 Mar 2021 19:10:17 +0000 (15:10 -0400)]
Change RestServerParameters to BusTopicParams

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>
3 years agoUpdate policy-keystore with newer certificates 89/119389/1
jhh [Tue, 16 Mar 2021 15:35:56 +0000 (10:35 -0500)]
Update policy-keystore with newer certificates

Issue-ID: POLICY-3139
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: Ia0c86441b1c95b45959be070015ea57f106d7002

3 years agoRemove more unnecessary plugins from xacml-pdp 78/119278/3
Jim Hahn [Fri, 12 Mar 2021 22:49:41 +0000 (17:49 -0500)]
Remove more unnecessary plugins from xacml-pdp

Issue-ID: POLICY-3126
Change-Id: Ic20b00aa1f2eaac0272792809a059a851bfbfffc
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoAddress plugin-not-found issues 65/119265/1
Jim Hahn [Fri, 12 Mar 2021 17:00:11 +0000 (12:00 -0500)]
Address plugin-not-found issues

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>
3 years agoBump xacml-pdp 2.5.0-SNAPSHOT 90/119190/1
Pamela Dragosh [Thu, 11 Mar 2021 20:36:39 +0000 (15:36 -0500)]
Bump xacml-pdp 2.5.0-SNAPSHOT

Issue-ID: POLICY-3105
Change-Id: I9fd03ff6a405b127c1eabbfe301f3b9ea8327aad
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
3 years agoMerge "add a sleep 5 sec for robot"
Jim Hahn [Wed, 10 Mar 2021 16:01:12 +0000 (16:01 +0000)]
Merge "add a sleep 5 sec for robot"

3 years agoadd a sleep 5 sec for robot 71/119071/2
Taka Cho [Wed, 10 Mar 2021 13:54:33 +0000 (08:54 -0500)]
add a sleep 5 sec for robot

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>
3 years agoBump xacml to 2.4.2-SNAPSHOT 91/118991/1
Pamela Dragosh [Tue, 9 Mar 2021 19:44:21 +0000 (14:44 -0500)]
Bump xacml to 2.4.2-SNAPSHOT

Issue-ID: POLICY-3127
Change-Id: I586fc25f730b708d047999706fd74d6b965bb130
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
3 years agoRelease xacml-pdp 2.4.1 docker 89/118989/1
Pamela Dragosh [Tue, 9 Mar 2021 18:33:40 +0000 (13:33 -0500)]
Release xacml-pdp 2.4.1 docker

Issue-ID: POLICY-3127
Change-Id: I1421920c16de5f9f9d8bf6208d022e4e4d987bfa
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
3 years agoRelease xacml-pdp 2.4.1 maven 86/118986/1
Pamela Dragosh [Tue, 9 Mar 2021 17:55:47 +0000 (12:55 -0500)]
Release xacml-pdp 2.4.1 maven

Issue-ID: POLICY-3127
Change-Id: Iac7bb6264de5f5726926da94560d59a4c93ff16a
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
3 years agoPoint to released models 2.4.1 85/118985/1
Pamela Dragosh [Tue, 9 Mar 2021 17:18:17 +0000 (12:18 -0500)]
Point to released models 2.4.1

Issue-ID: POLICY-3127
Change-Id: I1c3255e15bff18185705465ebbfc0db6cc0b5f22
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
3 years agomodify filename and path for csit - xcaml 59/118859/1
Taka Cho [Fri, 5 Mar 2021 15:31:46 +0000 (10:31 -0500)]
modify filename and path for csit - xcaml

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>
3 years agomove xacml csit to xacml repo 10/118610/2
Taka Cho [Fri, 26 Feb 2021 15:42:44 +0000 (10:42 -0500)]
move xacml csit to xacml repo

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>
3 years agoUpdate info.yaml in xacml-pdp 01/118401/1
Ram Krishna Verma [Wed, 24 Feb 2021 15:41:13 +0000 (10:41 -0500)]
Update info.yaml in xacml-pdp

Issue-ID: POLICY-3028
Change-Id: Ib7719f80c7927bb9b803cc7e4ef50cfc9c7a0071
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
3 years agobump poms to 2.4.1-SNAPSHOT 22/118322/1
jhh [Tue, 23 Feb 2021 21:51:09 +0000 (15:51 -0600)]
bump poms to 2.4.1-SNAPSHOT

Issue-ID: POLICY-3088
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I42c32bbb1ef6e275b8b3a0693492c7e4e61dd6eb

3 years agorelease 2.4.0 container image 08/118308/1
jhh [Tue, 23 Feb 2021 18:08:29 +0000 (12:08 -0600)]
release 2.4.0 container image

Issue-ID: POLICY-3088
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I76189f2d4a7f95018ce99dab9fca5064c16eac14

3 years agomaven release 2.4.0 96/118296/1
jhh [Tue, 23 Feb 2021 17:09:24 +0000 (11:09 -0600)]
maven release 2.4.0

Issue-ID: POLICY-3088
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I24c82abf8ca5a769d20cbdb7dca9955f1896a0b7

3 years agouse base policy-jre-alpine:2.2.1 image 80/118280/2
jhh [Tue, 23 Feb 2021 16:13:20 +0000 (10:13 -0600)]
use base policy-jre-alpine:2.2.1 image

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>
3 years agoversions: 1.8.0 common, 2.4.0 models, 3.3.0 parent 53/118253/2
jhh [Tue, 23 Feb 2021 15:13:05 +0000 (09:13 -0600)]
versions: 1.8.0 common, 2.4.0 models, 3.3.0 parent

Issue-ID: POLICY-3088
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I79a68a7e81040545bfdc1c4f738b85876a042da9
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
3 years agoFix junit for "native" on Windows 31/118131/1
Jim Hahn [Fri, 19 Feb 2021 20:41:24 +0000 (15:41 -0500)]
Fix junit for "native" on Windows

Windows doesn't like file names containing ":".  Added code to replace
":" with "_", but only when the JVM is run on a Windows OS.

Issue-ID: POLICY-3085
Change-Id: I1d3b6819bf564571eddda69e4c5fbd2bb807a3aa
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoFix sonars and target dir 83/118083/3
Pamela Dragosh [Thu, 18 Feb 2021 21:15:26 +0000 (15:15 -0600)]
Fix sonars and target dir

Fix a couple of sonars introduced by the PdpType review.

Also creation of a target directory below the xacml-pdp directory.

Issue-ID: POLICY-3071
Change-Id: I9fe325d0a75970fbe3d42be36906013c1fc2ecb9
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
3 years agoUtilize time extensions 02/118002/5
Pamela Dragosh [Wed, 17 Feb 2021 21:48:01 +0000 (15:48 -0600)]
Utilize time extensions

Switched to using the new Time Extensions released in XACML
from github v3.0. Added more thorough tests for it as well as
the flexibility of specifying the current time etc.

More syntax checking on the inputs from the policy.

Issue-ID: POLICY-2810
Change-Id: I1b4ec885c706e37949e5dabe14c63b0d7456cd4f
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
3 years agoFix wrong category for timeRange 83/117983/2
Pamela Dragosh [Wed, 17 Feb 2021 15:40:27 +0000 (09:40 -0600)]
Fix wrong category for timeRange

The category is wrong, and will not work. So fixing this bug first before
working in the changes for use new Time Extensions. I may make it all configurable.

Issue-ID: POLICY-2810
Change-Id: I4a338242dd4ec35f9b45fa1f46609dea93e286a1
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
3 years agoMake xacml pdpType configurable 24/117924/3
Pamela Dragosh [Tue, 16 Feb 2021 21:33:27 +0000 (15:33 -0600)]
Make xacml pdpType configurable

Adding code to enable the pdp type to be configurable.

Issue-ID: POLICY-3071
Change-Id: I51c873f68bff1866c6b2e96958b6c33872aea2c8
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
3 years agoFix sonars from dependency upgrade 68/117768/1
Jim Hahn [Thu, 11 Feb 2021 23:36:24 +0000 (18:36 -0500)]
Fix sonars from dependency upgrade

The dependency upgrades in policy-parent caused some new sonars.  In
particular, initMocks() has been deprecated - replaced with calls to the
Mockito Runner.  Also removed unnecessary when() calls.

Issue-ID: POLICY-2912
Change-Id: If386bd282635067a20045f2626af0cf5be49bc0e
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoUpgrade dependencies 79/117679/1
Jim Hahn [Wed, 10 Feb 2021 12:48:27 +0000 (07:48 -0500)]
Upgrade dependencies

Updated properties to work with the new version of eclipselink.

Issue-ID: POLICY-3005
Change-Id: I88091a90387e235ef5c168de7a3275056327d83e
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoUpgrade to xacml 3.0 github release 89/116989/1
Pamela Dragosh [Tue, 19 Jan 2021 21:37:48 +0000 (16:37 -0500)]
Upgrade to xacml 3.0 github release

Point to the newly release 3.0, which is JDK11 compatible and
contains the latest time extensions. Simple ensuring that nothing
is broken on our end.

Issue-ID: POLICY-2810
Change-Id: Ic2fed1b57574ebd1b9eaaa19c19578a42ade5483
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
3 years agoMerge "Changed identifiers to concept identifiers"
Ram Krishna Verma [Wed, 6 Jan 2021 18:42:19 +0000 (18:42 +0000)]
Merge "Changed identifiers to concept identifiers"

3 years agouse jre base 2.2.0 - xacml 12/116612/1
Taka Cho [Tue, 5 Jan 2021 20:13:10 +0000 (15:13 -0500)]
use jre base 2.2.0 - xacml

use jre base 2.2.0

Issue-ID: POLICY-2917
Change-Id: Id2683ff127fc1a290589e5295995f1d08481c50a
Signed-off-by: Taka Cho <takamune.cho@att.com>
3 years agoChanged identifiers to concept identifiers 69/116569/1
liamfallon [Mon, 4 Jan 2021 13:47:42 +0000 (13:47 +0000)]
Changed identifiers to concept identifiers

The policy models tosca classes ToscaPolicyIdentifier and
ToscaPolicyIdentifierOptVersion can be used to identify any TOSCA
concept, not just TOSCA policies so they are renamed to
ToscaConceptIdentifier and ToscaCinceptIdentifierOptVersion
respectively.

The class ToscaPolicyTypeIdentifier is redundant and is replaced by
ToscaConceptIdentifier.

Issue-ID: POLICY-2900
Change-Id: Id614bbed34ed8897e7e882b70147b98ffe90bf57
Signed-off-by: liamfallon <liam.fallon@est.tech>
3 years agoFix directory rename 10/116510/1
Jim Hahn [Wed, 23 Dec 2020 14:02:16 +0000 (09:02 -0500)]
Fix directory rename

Eclipse generates java errors if a package name contains "native" as a
component OR if the path to a java source file contains "native".
Renamed the "native" directories back to "nativ" to fix the errors.

Issue-ID: POLICY-2900
Change-Id: Id718e69ae59e8fdbad72ad42347264766312a5ad
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoXACML to accept properties as null 64/116464/3
liamfallon [Thu, 17 Dec 2020 16:57:10 +0000 (16:57 +0000)]
XACML to accept properties as null

xacml-pdp expects the property map to exist in all policies, even if it
is sometimes empty. Now, the propperty map can be null. The code is
updated to cope with a null property map.

Issue-ID: POLICY-2900
Change-Id: Ie31a2770aff1435a1d1064512d0c2fa2088d3183
Signed-off-by: liamfallon <liam.fallon@est.tech>
3 years agoFix sonar issues with visibility 32/116132/1
Pamela Dragosh [Fri, 4 Dec 2020 14:10:02 +0000 (09:10 -0500)]
Fix sonar issues with visibility

S5993 Change the visibility of this constructor to "protected".

Issue-ID: POLICY-2912
Change-Id: I2fd9fcd3162c8bf28ba0315939ef259356f442db
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
3 years agoMerge "ToscaEntityType renamed ToscaSchemaDefinition"
Liam Fallon [Thu, 3 Dec 2020 11:12:00 +0000 (11:12 +0000)]
Merge "ToscaEntityType renamed ToscaSchemaDefinition"