policy/xacml-pdp.git
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"

3 years agomove all bash to ash shell scripts - xacml 64/115564/2
Taka Cho [Mon, 30 Nov 2020 20:45:06 +0000 (15:45 -0500)]
move all bash to ash shell scripts - xacml

bash scripts convert to ash

Issue-ID: POLICY-2847
Change-Id: I181e353997d8874eaadd73d6c39594c04a856e4c
Signed-off-by: Taka Cho <takamune.cho@att.com>
3 years agoToscaEntityType renamed ToscaSchemaDefinition 36/115536/1
liamfallon [Mon, 30 Nov 2020 14:12:32 +0000 (14:12 +0000)]
ToscaEntityType renamed ToscaSchemaDefinition

The TOSCA class ToscaEntityType is renamed to ToscaSchemaDefinition
becasue keys as well as entities can have schemas, so the class has more
usages than just for entity schemas.

Issue-ID: POLICY-2900
Change-Id: I7a1a3a1262078c47eeea1820538ecb6153f5e652
Signed-off-by: liamfallon <liam.fallon@est.tech>
3 years agoSet correct version in tutorials 42/114442/1
Pamela Dragosh [Fri, 30 Oct 2020 13:23:10 +0000 (09:23 -0400)]
Set correct version in tutorials

These were missed due to the branching.

Issue-ID: POLICY-2876
Change-Id: I85c661eb1106c3a6599f314e57f59d81296aa9ea
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
3 years agoDo not deploy tutorial code 32/114332/1
Pamela Dragosh [Tue, 27 Oct 2020 19:47:22 +0000 (15:47 -0400)]
Do not deploy tutorial code

The tutorial code is really only for developers to kick the tires,
no need to deploy it to the repositories. Since we do not have rights
to onap.policy.tutorials, any deployment will fail.

Issue-ID: POLICY-2876
Change-Id: I61b91e090d8a517a24de5e87e08c016fcc54e6b0
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
3 years agoMerge "Bump xacml-pdp master to 2.4.0-SNAPSHOT"
Pamela Dragosh [Tue, 27 Oct 2020 19:29:34 +0000 (19:29 +0000)]
Merge "Bump xacml-pdp master to 2.4.0-SNAPSHOT"

3 years agoBump xacml-pdp master to 2.4.0-SNAPSHOT 24/114324/1
Jim Hahn [Tue, 27 Oct 2020 19:02:45 +0000 (15:02 -0400)]
Bump xacml-pdp master to 2.4.0-SNAPSHOT

Bumping minor version now that guilin branch has been created.
Also repointed to snapshot versions for dependencies.

Issue-ID: POLICY-2875
Change-Id: I145f638d6409f92cf916b08ace10a159d5e52c73
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoMerge "Submit Policy Tutorials"
Pamela Dragosh [Tue, 27 Oct 2020 19:03:36 +0000 (19:03 +0000)]
Merge "Submit Policy Tutorials"

3 years agoSubmit Policy Tutorials 40/114240/8
Pamela Dragosh [Mon, 26 Oct 2020 13:59:09 +0000 (09:59 -0400)]
Submit Policy Tutorials

So app developers can more easily download and test client code etc.

Issue-ID: POLICY-2876
Change-Id: I360cd0d637150cd0c2353c6284803f4438e96556
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
3 years agotweaks on jmeter stability script for guilin 18/114218/2
jhh [Fri, 23 Oct 2020 16:53:43 +0000 (11:53 -0500)]
tweaks on jmeter stability script for guilin

Issue-ID: POLICY-2833
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: Ic3d3f026c3af25a12193f18218ba3cde3ca665aa
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
3 years agoBump xacml 2.3.4 SNAPSHOT 53/114053/1
Pamela Dragosh [Tue, 20 Oct 2020 14:58:42 +0000 (10:58 -0400)]
Bump xacml 2.3.4 SNAPSHOT

Issue-ID: POLICY-2869
Change-Id: If8e944fce44ca0b613da9f92f4516049994fff86
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
3 years agoRelease xacml 2.3.3 docker 43/114043/1 7.0.0-ONAP
Pamela Dragosh [Tue, 20 Oct 2020 14:26:54 +0000 (10:26 -0400)]
Release xacml 2.3.3 docker

Issue-ID: POLICY-2869
Change-Id: I4164de63c33de7649399096290624fd62163b185
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
3 years agoRelease xacml 2.3.3 java 38/114038/1
Pamela Dragosh [Tue, 20 Oct 2020 14:02:20 +0000 (10:02 -0400)]
Release xacml 2.3.3 java

Issue-ID: POLICY-2869
Change-Id: I890bed298773fc271e1802c5cad1b77131a8e2f6
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
3 years agoPoint xacml to models 2.3.5 29/114029/1
Pamela Dragosh [Tue, 20 Oct 2020 12:08:17 +0000 (08:08 -0400)]
Point xacml to models 2.3.5

Issue-ID: POLICY-2869
Change-Id: I0619c6469b9b693c92feb1d5c9a717958c442526
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
3 years agoBump xacml-pdp to 2.3.3 snapshot 51/113651/1
Pamela Dragosh [Wed, 7 Oct 2020 20:36:52 +0000 (16:36 -0400)]
Bump xacml-pdp to 2.3.3 snapshot

Issue-ID: POLICY-2839
Change-Id: I78bf1cebb31c3c3c48d214fa755892b9a3a58323
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
3 years agoRelease xacml-pdp 2.3.2 docker 43/113643/1
Pamela Dragosh [Wed, 7 Oct 2020 20:11:02 +0000 (16:11 -0400)]
Release xacml-pdp 2.3.2 docker

Issue-ID: POLICY-2839
Change-Id: I644f5e5e4cdff3321240aa24559c6fb3576984eb
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
3 years agoRelease xacml-pdp 2.3.2 java artifacts 38/113638/1
Pamela Dragosh [Wed, 7 Oct 2020 19:50:31 +0000 (15:50 -0400)]
Release xacml-pdp 2.3.2 java artifacts

Issue-ID: POLICY-2839
Change-Id: I200f236557dd71a1de61f4aed877cabca68dd89d
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
3 years agoPoint to models 2.3.2 release 30/113630/1
Pamela Dragosh [Wed, 7 Oct 2020 19:18:18 +0000 (15:18 -0400)]
Point to models 2.3.2 release

Released models

Issue-ID: POLICY-2839
Change-Id: I33e5d6c901c50d7d01493b712b2363c1b8ab40f9
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
3 years agoRemove duplicated code 81/113481/1
Pamela Dragosh [Fri, 2 Oct 2020 13:13:13 +0000 (09:13 -0400)]
Remove duplicated code

Initially, just moving the applicationName and actions as protected
fields got rid of the sonar issue. I included also the supportedPolicyTypes
also. But that triggered another sonar duplicate code, so I had to rename
a few private fields to rid that. Seems like a very sensitive sonar detection
that results in kludgy code.

Issue-ID: POLICY-2681
Change-Id: Ie79a95786cdb80381cbce4b182e9e66a2776e0dd
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
3 years agoFix new sonars in xacml-pdp 86/113386/2
Jim Hahn [Wed, 30 Sep 2020 15:54:21 +0000 (11:54 -0400)]
Fix new sonars in xacml-pdp

Addressed the following sonar issues:
- extract common test method
- too many assertions in a test method

Issue-ID: POLICY-2681
Change-Id: I7438be8286d52cd8479c66542fc785b27448972b
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoFix deployment of frequency limiter policy 24/113324/1
Jim Hahn [Tue, 29 Sep 2020 15:16:14 +0000 (11:16 -0400)]
Fix deployment of frequency limiter policy

Changed the artifact IDs of the xacml-pdp applications so they won't
clash with other jar file names.

Issue-ID: POLICY-2848
Change-Id: I844aaf6b2c4d81e52716d840b3a784873c6ce121
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoupdate default keystores 33/113133/1
jhh [Thu, 24 Sep 2020 20:10:29 +0000 (15:10 -0500)]
update default keystores

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

3 years agoRemove base64 encoding of password from xacml 64/112764/2
Ram Krishna Verma [Wed, 16 Sep 2020 19:26:58 +0000 (15:26 -0400)]
Remove base64 encoding of password from xacml

Issue-ID: POLICY-2550
Change-Id: I05d9af99401991ea867e7ab8d697692c9020b3b7
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
3 years agoUse alpine base image 2.1.1 48/112648/1
Jim Hahn [Mon, 14 Sep 2020 22:11:46 +0000 (18:11 -0400)]
Use alpine base image 2.1.1

Issue-ID: POLICY-2819
Change-Id: I680120b164881f69f094dd3c979f58eb0e158db8
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoBump xacml-pdp to 2.3.2 04/112404/1
Jim Hahn [Wed, 9 Sep 2020 17:53:55 +0000 (13:53 -0400)]
Bump xacml-pdp to 2.3.2

Issue-ID: POLICY-2789
Change-Id: I3f2c877874e5fbcd0520b811c984fa8d14b05435
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoRelease 2.3.1 xacml-pdp docker images 90/112390/1
Jim Hahn [Wed, 9 Sep 2020 16:21:31 +0000 (12:21 -0400)]
Release 2.3.1 xacml-pdp docker images

Issue-ID: POLICY-2789
Change-Id: If4559cbab91f26733590ffb4fdfe702f8fc9168f
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoRelease 2.3.1 xacml artifacts 83/112383/1
Jim Hahn [Wed, 9 Sep 2020 15:24:54 +0000 (11:24 -0400)]
Release 2.3.1 xacml artifacts

Issue-ID: POLICY-2789
Change-Id: I4acbc0d3c66fe1870bd7f781afeeaccbd2a67846
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoUse released versions in xacml-pdp 71/112371/1
Jim Hahn [Wed, 9 Sep 2020 14:24:43 +0000 (10:24 -0400)]
Use released versions in xacml-pdp

Issue-ID: POLICY-2789
Change-Id: Ib708114ead0001e3c7be2d77f830d98f7bcba18c
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agopoint to 2.1.0 policy-alpine base - xacml 65/112165/1
Taka Cho [Fri, 4 Sep 2020 12:47:09 +0000 (08:47 -0400)]
point to 2.1.0 policy-alpine base - xacml

In G-rel, using 2.1.0 base.

Issue-ID: POLICY-2789
Change-Id: I8d1e4387a210326ef356aa452e8f34ac89c143c4
Signed-off-by: Taka Cho <takamune.cho@att.com>
3 years agoMerge "Add new Match application to XACML"
Jim Hahn [Tue, 25 Aug 2020 15:31:28 +0000 (15:31 +0000)]
Merge "Add new Match application to XACML"

3 years agoAdd new Match application to XACML 60/111660/4
Pamela Dragosh [Mon, 24 Aug 2020 19:50:31 +0000 (15:50 -0400)]
Add new Match application to XACML

Add new generic match application to XACML PDP. This app
will allow ONAP users to design their own matchable policy
types and use StdMatchableTranslator out-of-the box without
any modification. Fills the gap left behind since "configure"
via the Monitoring can support StdCombinedResultsTranslator,
but the Optimization policy types have a specific "closest
match" algorithm tied to them. Gives flexibility.

removed unused import

Issue-ID: POLICY-2596
Change-Id: I0aebae706fb9634e7bb13d78eff0ccc1ae4d752f
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
3 years agoChanges to make XACML container crash with non zero exitCode 26/111526/1
a.sreekumar [Fri, 21 Aug 2020 10:48:53 +0000 (11:48 +0100)]
Changes to make XACML container crash with non zero exitCode

Change-Id: Id8c18b6888128a3efaa96f05d911fde5e6a92694
Issue-ID: POLICY-2757
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
3 years agoRemove old cdap policy type 31/111431/2
Pamela Dragosh [Wed, 19 Aug 2020 15:34:37 +0000 (11:34 -0400)]
Remove old cdap policy type

Actually, this does not need to have any specific monitoring
policy type designated because since Frankfurt we added the
feature to support onap.monitoring.*

Issue-ID: POLICY-2772
Change-Id: Ief24550c3e90b7a54ad3c1c381330580ca738798
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
3 years agoFix sonar issue and add code coverage 79/111379/1
Pamela Dragosh [Tue, 18 Aug 2020 16:24:04 +0000 (12:24 -0400)]
Fix sonar issue and add code coverage

Fixing too much complexity for GuardPolicyRequest by breaking
it up into methods.

Added more code coverage to guard translator.

Added missing code coverage for coordination guard, it was below
66% and there were some trivial fixes that were needed. Seems that
a test resource was never really used, or perhaps got omitted in a
previous review.

Issue-ID: POLICY-2590
Change-Id: I1be4ff166e6c43c1c4ea54fdf7e761e22adcaa2d
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
3 years agoAdd new guard filter policy type feature 46/111346/2
Pamela Dragosh [Mon, 17 Aug 2020 20:45:30 +0000 (16:45 -0400)]
Add new guard filter policy type feature

* Added new Policy Guard filter Policy type.

* Enhanced translator tests to ensure bad filter policies
are detected.

* Added new filter application test to ensure new guard
propertly creates xacml policies.

Issue-ID: POLICY-2590
Change-Id: Ifc047a33084ce45b67be98a61f660d7a8c9d8615
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
3 years agoCleanup unused imports and deprecated methods 86/111286/1
Pamela Dragosh [Fri, 14 Aug 2020 18:23:49 +0000 (14:23 -0400)]
Cleanup unused imports and deprecated methods

Eclipse reports 2 unused imports and deprecated methods.
Does not show up in sonar, but these are simple fixes.

Issue-ID: POLICY-2590
Change-Id: I41b4b43e8d1d5e88c66a368b47482ef20297a4c1
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
3 years agoenvironment variables to support cert. store paths 66/110866/1
jhh [Mon, 3 Aug 2020 20:42:52 +0000 (15:42 -0500)]
environment variables to support cert. store paths

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

3 years agoUpdate info yaml in xacml 12/110812/1
a.sreekumar [Fri, 31 Jul 2020 14:08:14 +0000 (15:08 +0100)]
Update info yaml in xacml

Change-Id: I43ed3a85e462327ad45370efcdde3d27f4a79e0f
Issue-ID: POLICY-2738
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
3 years agoAdd Ajith to policy/xacml-pdp info 68/110568/1
Jim Hahn [Fri, 24 Jul 2020 17:17:58 +0000 (13:17 -0400)]
Add Ajith to policy/xacml-pdp info

Issue-ID: POLICY-2738
Change-Id: I70febaab7c132b6860a4038c4f89dc19c6826a94
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoAdd postman collection for decision api 86/110386/3
Ram Krishna Verma [Mon, 20 Jul 2020 19:50:58 +0000 (15:50 -0400)]
Add postman collection for decision api

Adding postman collection for decision api's supported by xacml-pdp.
Currently it is updated as per Guilin first release.
Idea is to update this along with any change in api's.
Once this is merged, will create review to point policy documents to this collection.

Issue-ID: POLICY-2727
Change-Id: Iff516528e4b858f559da2324b4fa53e7426d201d
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
3 years agoRefer to snapshot versions 53/110353/1
Ram Krishna Verma [Fri, 17 Jul 2020 17:58:07 +0000 (13:58 -0400)]
Refer to snapshot versions

Issue-ID: POLICY-2695
Change-Id: Ie6d4d900610b818b81d8ce92f4bbbefb8d199da5
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
3 years agoBump xacml-pdp to 2.3.1-SNAPSHOT 96/110096/2
Jim Hahn [Fri, 10 Jul 2020 19:19:35 +0000 (15:19 -0400)]
Bump xacml-pdp to 2.3.1-SNAPSHOT

Issue-ID: POLICY-2695
Change-Id: I7be4fdd72aad0ab794a0d5a6919afec5998dad09
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoRelease xacml-pdp docker 2.3.0 artifacts 77/110077/1
Jim Hahn [Fri, 10 Jul 2020 15:05:35 +0000 (11:05 -0400)]
Release xacml-pdp docker 2.3.0 artifacts

Issue-ID: POLICY-2695
Change-Id: I9e7ba1ec8744b9631a7f0bdb07f72efa1e777755
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoRelease xacml-pdp 2.3.0 37/110037/1
Jim Hahn [Thu, 9 Jul 2020 21:05:13 +0000 (17:05 -0400)]
Release xacml-pdp 2.3.0

Issue-ID: POLICY-2695
Change-Id: I4e392e7a5a014d544293c1c822dfbf077ea46a8c
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoRefer to released versions in xacml-pdp 27/110027/1
Jim Hahn [Thu, 9 Jul 2020 13:37:16 +0000 (09:37 -0400)]
Refer to released versions in xacml-pdp

Issue-ID: POLICY-2695
Change-Id: I0baedd8711c0886107c48dd99a1b4419949ad791
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoAdd fetch timeout to xacml-pdp properties 21/109921/1
Jim Hahn [Tue, 7 Jul 2020 16:54:09 +0000 (12:54 -0400)]
Add fetch timeout to xacml-pdp properties

When an error occurs fetching from DMaaP, xacml-pdp should not try again
immediately, but should wait a little bit before retrying.  Added the
the fetch timeout property to prevent it from defaulting to -1 when
retrying.

Issue-ID: POLICY-2702
Change-Id: I1b3432854d1e3c68836cf81779e22105a6236fca
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoMerge "Updating XACML dependencies to latest version"
Jorge Hernandez [Thu, 2 Jul 2020 12:43:03 +0000 (12:43 +0000)]
Merge "Updating XACML dependencies to latest version"

3 years agoReplace try/catch blocks with assertj - xacml-pdp 16/109716/4
waynedunican [Tue, 30 Jun 2020 11:28:33 +0000 (12:28 +0100)]
Replace try/catch blocks with assertj - xacml-pdp

Replaced try/catch blocks in policy/xacml-pdp with assertj assertions

Issue-ID: POLICY-2451
Change-Id: I3e6947a61e0000561c7053a1cdede9ae5825e5ca
Signed-off-by: waynedunican <wayne.dunican@est.tech>
3 years agoUpdating XACML dependencies to latest version 25/109525/4
RossC [Wed, 24 Jun 2020 16:03:21 +0000 (17:03 +0100)]
Updating XACML dependencies to latest version

Issue-ID: POLICY-2387
Change-Id: Ia8b5774b6b43e175c86f35ee1468b18d2a151f92
Signed-off-by: RossC <ross.carter@est.tech>
3 years agoFix more sonars in xacml-pdp 76/109676/1
Jim Hahn [Tue, 30 Jun 2020 11:23:40 +0000 (07:23 -0400)]
Fix more sonars in xacml-pdp

Somehow missed this sonar issue in one line of code:
- invoke only one method in a junit lambda

Issue-ID: POLICY-2681
Change-Id: I03a6708e0d3ed2a43577a63d0f3cdfc9bd76c8d8
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoFix issues in xacml-pdp for new sonar rules 60/109660/2
Jim Hahn [Mon, 29 Jun 2020 18:13:14 +0000 (14:13 -0400)]
Fix issues in xacml-pdp for new sonar rules

Addressed issues reported due to updates to the sonar rules:
- invoke only one method in a junit lambda
- complete the assertion
- use assertThat().exists(), canRead(), etc.

Issue-ID: POLICY-2681
Change-Id: I2935f4d0295244ab3b11a57a3bc401c64b695fd1
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoxacml-pdp remove onap-java-style from pom 78/109378/1
Taka Cho [Fri, 19 Jun 2020 20:48:19 +0000 (16:48 -0400)]
xacml-pdp remove onap-java-style from pom

Changes for Checkstyle 8.32

Issue-ID: POLICY-2188
Change-Id: Ib7605206d43291f582c035fb84f9c1c55d66d8b3
Signed-off-by: Taka Cho <takamune.cho@att.com>
3 years agoChanges for Checkstyle 8.32 71/109371/1
Taka Cho [Fri, 19 Jun 2020 18:55:44 +0000 (14:55 -0400)]
Changes for Checkstyle 8.32

Issue-ID: POLICY-2188
Change-Id: I64a115240a71e5014db9cfb66747887e156afb50
Signed-off-by: Taka Cho <takamune.cho@att.com>
3 years agoxcaml-pdp sonar issue fixes 24/109324/2
Taka Cho [Thu, 18 Jun 2020 19:47:37 +0000 (15:47 -0400)]
xcaml-pdp sonar issue fixes

replace with '<>' and
assert statements

Issue-ID: POLICY-2616
Change-Id: Id999d3299918491c06918caaa28c44e2148574bc
Signed-off-by: Taka Cho <takamune.cho@att.com>
3 years agoget cert store passwords from env 62/109162/1
jhh [Mon, 15 Jun 2020 14:37:35 +0000 (09:37 -0500)]
get cert store passwords from env

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

3 years agoMerge "Use OperationsHistory from models"
Pamela Dragosh [Tue, 2 Jun 2020 12:00:37 +0000 (12:00 +0000)]
Merge "Use OperationsHistory from models"

3 years agoUse OperationsHistory from models 28/108628/2
Jim Hahn [Fri, 29 May 2020 15:43:49 +0000 (11:43 -0400)]
Use OperationsHistory from models

Deleted Dbao and replaced it with the shared class in policy-models.
Also had to update the queries and the persistence.xml accordingly.

Issue-ID: POLICY-2581
Change-Id: I59dfa2f37c272796ccebc0f578c9f4e8e1b9c8ab
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoUse default serialization provider 86/108586/2
Jim Hahn [Fri, 29 May 2020 19:06:49 +0000 (15:06 -0400)]
Use default serialization provider

The default provider has been changed to gson, so the provider property
no longer has to be set.

Issue-ID: POLICY-1527
Change-Id: I21f5a3af2bc1d7fc10dc41f58e6e62a04f4bda77
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoUse snapshot versions 76/108576/1
Jim Hahn [Fri, 29 May 2020 15:32:18 +0000 (11:32 -0400)]
Use snapshot versions

Issue-ID: POLICY-2581
Change-Id: Ia88f76ff65efe806d3f51f9259471d8e88b65b20
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoMerge "Point to parent SNAPSHOT"
Ram Krishna Verma [Thu, 28 May 2020 20:15:01 +0000 (20:15 +0000)]
Merge "Point to parent SNAPSHOT"

3 years agoPoint to parent SNAPSHOT 32/108432/1
Pamela Dragosh [Thu, 28 May 2020 18:34:50 +0000 (14:34 -0400)]
Point to parent SNAPSHOT

Issue-ID: POLICY-2319
Change-Id: I2f2fe8f565bde0f5986e987e8541fb644241b2d3
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
3 years agoMerge "Change CLC logic for updated OPHist DB entries."
Pamela Dragosh [Wed, 27 May 2020 16:50:47 +0000 (16:50 +0000)]
Merge "Change CLC logic for updated OPHist DB entries."

3 years agoCreate secondary indices 81/108281/2
Jim Hahn [Tue, 26 May 2020 17:29:02 +0000 (13:29 -0400)]
Create secondary indices

Modified the sql script to create the secondary indices.

Issue-ID: POLICY-2581
Change-Id: If0bdaa9d8769e99bd47b8780251d96dba172b3e2
Signed-off-by: Jim Hahn <jrh3@att.com>
3 years agoChange CLC logic for updated OPHist DB entries. 19/108119/4
pramod.jamkhedkar [Fri, 22 May 2020 03:55:10 +0000 (23:55 -0400)]
Change CLC logic for updated OPHist DB entries.

Change the CLC policy logic to match the udpate Operations History DB
rules. Now if a record has outcome = Started, it is considered
to be in progress. Else it is considered to be complete.

Issue-ID: POLICY-2583
Change-Id: If3f626bfec2d0656e43a26929107f68ff27af020
Signed-off-by: pramod.jamkhedkar <pramod@research.att.com>
4 years agoAdd secondary indices to operationshistory table 08/108108/2
Jim Hahn [Thu, 21 May 2020 21:53:14 +0000 (17:53 -0400)]
Add secondary indices to operationshistory table

Queries to the operationshistory table will degrade substantially
as more records are added to the DB.
The Dbao class should be moved to policy-models, but for now
we'll just update it in both places (i.e., drools-apps and xacml-pdp).

Issue-ID: POLICY-2581
Signed-off-by: Jim Hahn <jrh3@att.com>
Change-Id: Icc4529e56968ceda4d9b63a8ccea6ba219250506
Signed-off-by: Jim Hahn <jrh3@att.com>
4 years agoBump xacml-pdp master to 2.3.0-SNAPSHOT 87/108087/1
a.sreekumar [Thu, 21 May 2020 16:02:49 +0000 (17:02 +0100)]
Bump xacml-pdp master to 2.3.0-SNAPSHOT

Change-Id: I4e2a3a7a89eb3e59111c0a2bff70624d9f987abb
Issue-ID: POLICY-2514
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
4 years agoBump xacml to 2.2.3-SNAPSHOT 66/108066/2
a.sreekumar [Thu, 21 May 2020 14:02:22 +0000 (15:02 +0100)]
Bump xacml to 2.2.3-SNAPSHOT

Change-Id: I753851b22200de1f69489d13a283832c469fab22
Issue-ID: POLICY-2514
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
4 years agoRelease xacml 2.2.2 docker image 62/108062/1 6.0.0-ONAP
a.sreekumar [Thu, 21 May 2020 13:31:21 +0000 (14:31 +0100)]
Release xacml 2.2.2 docker image

Change-Id: I8d3ba3c01708ed0876bfc1c135be7e9106803ce8
Issue-ID: POLICY-2514
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
4 years agoRelease xacml-pdp 2.2.2 artifacts 52/107952/3
a.sreekumar [Wed, 20 May 2020 11:11:53 +0000 (12:11 +0100)]
Release xacml-pdp 2.2.2 artifacts

Change-Id: I1538a4c7eede93ae2c9e8274d9bb228546c26cf6
Issue-ID: POLICY-2514
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
4 years agoChanged cd path. 79/107979/1
pramod.jamkhedkar [Wed, 20 May 2020 14:12:05 +0000 (10:12 -0400)]
Changed cd path.

Changed the path of coordination directive by removing src/main/resources

Issue-ID: POLICY-2573
Change-Id: I46613e50ef464e0a61e0f177008520575c391c00
Signed-off-by: pramod.jamkhedkar <pramod@research.att.com>
4 years agoMerge "Removing unused imports."
Ram Krishna Verma [Wed, 20 May 2020 00:36:58 +0000 (00:36 +0000)]
Merge "Removing unused imports."

4 years agoRemoving unused imports. 05/107905/2
pramod.jamkhedkar [Tue, 19 May 2020 17:47:58 +0000 (13:47 -0400)]
Removing unused imports.

Issue-ID: POLICY-2573
Change-Id: I0fd392cb7027c56bb8fd4a6d9a0b3fd558dba495
Signed-off-by: pramod.jamkhedkar <pramod@research.att.com>
4 years agoPoint to released artifacts 93/107893/1
Pamela Dragosh [Tue, 19 May 2020 16:30:51 +0000 (12:30 -0400)]
Point to released artifacts

Issue-ID: POLICY-2514
Change-Id: I4b4e68ced59d0ece261ec2f33f71f4f12494c699
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoChange CLC granularity to CL level. 13/107813/3
pramod.jamkhedkar [Mon, 18 May 2020 15:27:50 +0000 (11:27 -0400)]
Change CLC granularity to CL level.

Change CLC granularity from target level to CL level. Remove the target
matching for the db query at PIP level.

Issue-ID: POLICY-2573
Change-Id: If9ba1a4d22c3b8bc5dfce0632f7037ad085f6ea6
Signed-off-by: pramod.jamkhedkar <pramod@research.att.com>
4 years agoFinal blacklist fix for multiple entries 12/107412/1
Pamela Dragosh [Fri, 8 May 2020 20:45:03 +0000 (16:45 -0400)]
Final blacklist fix for multiple entries

The last change wasn't quite right, this has multiple AndOf's under
a single AnyOf. Multiple AnyOf's are treated as AND's, but what we
really want is a set of OR's.

Issue-ID: POLICY-2490
Change-Id: I7336643302ccf7982c91a9c082d17bcf0adb4ac8
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agotype_version is now mandatory 25/107325/1
Pamela Dragosh [Thu, 7 May 2020 14:22:46 +0000 (10:22 -0400)]
type_version is now mandatory

Per this review: https://gerrit.onap.org/r/c/policy/models/+/107250

Issue-ID: POLICY-2538
Change-Id: I0b7711c1adc73295092996cd3a1ec7979fd2b4ba
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoUpdate S3P tests for xacml-pdp 56/106956/3
Jim Hahn [Fri, 24 Apr 2020 17:46:06 +0000 (13:46 -0400)]
Update S3P tests for xacml-pdp

Modified jmeter S3P tests per new tosca models.  Also added
tests for "default" guard, naming, and optimization policies.

Issue-ID: POLICY-2455
Change-Id: I4607fa0fb5bec1949c6daae6a00948310e1b5531
Signed-off-by: Jim Hahn <jrh3@att.com>
4 years agoPoint to latest SNAPSHOTS 71/106671/1
Pamela Dragosh [Mon, 27 Apr 2020 12:04:51 +0000 (08:04 -0400)]
Point to latest SNAPSHOTS

Pull in glassfish security fix and latest models/common/parent
updates.

Issue-ID: POLICY-2510
Change-Id: I9fb587781a37142f6c386db940d48bf74cd9d35e
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoBump xacml-pdp 2.2.2-SNAPSHOT 02/106002/1
Pamela Dragosh [Wed, 15 Apr 2020 11:45:02 +0000 (07:45 -0400)]
Bump xacml-pdp 2.2.2-SNAPSHOT

Issue-ID: POLICY-2378
Change-Id: I542884aed2acbef7e1c7e431f209ea61108e2048
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoRelease xacml-pdp 2.2.1 docker image 62/105962/1
Ram Krishna Verma [Tue, 14 Apr 2020 21:22:53 +0000 (17:22 -0400)]
Release xacml-pdp 2.2.1 docker image

Issue-ID: POLICY-2378
Change-Id: Ib5d2b16592f2f056f2f22cd3ce267457b660a3e2
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
4 years agoRelease xacml-pdp 2.2.1 artifacts 50/105950/1
Ram Krishna Verma [Tue, 14 Apr 2020 19:42:06 +0000 (15:42 -0400)]
Release xacml-pdp 2.2.1 artifacts

Issue-ID: POLICY-2378
Change-Id: Ib2ccb326b32f38c2c336df74c402318b5b836f57
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>