policy/xacml-pdp.git
3 years agoUpdate policy-keystore with newer certificates 35/119635/1 guilin
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
(cherry picked from commit 2cb02e53d2eb0374b13b92e87afaf86b0b4c7383)

3 years agoDo not deploy tutorial code 99/114299/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>
(cherry picked from commit e7d7b10533446a24a725e50f0d34e7e719ddfdd7)

3 years agoMerge "Submit Policy Tutorials" into guilin
Pamela Dragosh [Tue, 27 Oct 2020 20:35:44 +0000 (20:35 +0000)]
Merge "Submit Policy Tutorials" into guilin

3 years agoSubmit Policy Tutorials 97/114297/1
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>
(cherry picked from commit f0bd7f421948415b1c2f05cb39674f57f72218e0)

3 years agoPoint xacml-pdp to guilin branch 18/114318/1
Jim Hahn [Tue, 27 Oct 2020 18:57:21 +0000 (14:57 -0400)]
Point xacml-pdp to guilin branch

Issue-ID: POLICY-2875
Change-Id: Id82db5ed4e8a6b3ade46c71137384e65c36d26d2
Signed-off-by: Jim Hahn <jrh3@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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 years agoMerge "Removing unused imports."
Ram Krishna Verma [Wed, 20 May 2020 00:36:58 +0000 (00:36 +0000)]
Merge "Removing unused imports."

3 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>
3 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>
3 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>
4 years agoPoint to released common/models 39/105939/1
Pamela Dragosh [Tue, 14 Apr 2020 18:51:32 +0000 (14:51 -0400)]
Point to released common/models

Issue-ID: POLICY-2378
Change-Id: I363d097abb35cfdf1cbb703be31a78e2748b0334
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoFix blacklist translator and vs or 29/105929/1
Pamela Dragosh [Tue, 14 Apr 2020 17:20:05 +0000 (13:20 -0400)]
Fix blacklist translator and vs or

The blacklist entries should be treated as an or (AnyOf) vs
an and (AllOf).

Issue-ID: POLICY-2490
Change-Id: Id4eb823e18c59d84d4ca28b13f6a09794d36365f
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoFix integer converted to double 64/105864/1
Pamela Dragosh [Mon, 13 Apr 2020 20:13:01 +0000 (16:13 -0400)]
Fix integer converted to double

Use policy/common map double converter to ensure integers saved
in policy content do not get converted to doubles.

Issue-ID: POLICY-2486
Change-Id: I887c6b5c337e2594c425b645af4b2668d06715bd
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoPoint to released parent, common models 23/105823/1
Pamela Dragosh [Sat, 11 Apr 2020 19:36:55 +0000 (15:36 -0400)]
Point to released parent, common models

Issue-ID: POLICY-2378
Change-Id: Iacc2b01e7136ea9126bdb4943d1984a83c805a68
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoBuild tarball with default profile 64/105564/1
jhh [Wed, 8 Apr 2020 19:18:57 +0000 (14:18 -0500)]
Build tarball with default profile

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

4 years agoPoint to parent SNAPSHOT 48/105248/1
Pamela Dragosh [Tue, 7 Apr 2020 12:26:52 +0000 (08:26 -0400)]
Point to parent SNAPSHOT

Issue-ID: POLICY-2378
Change-Id: I91adcb852d414bc7949795740ab0b7da0b55eab1
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoFix optimization supported types 76/104876/1
Pamela Dragosh [Wed, 1 Apr 2020 14:53:12 +0000 (10:53 -0400)]
Fix optimization supported types

To support 5G slicing use cases, we will support any policy type
that derives from onap.policies.optimization

Similar in functionality to monitoring

Issue-ID: POLICY-2460
Change-Id: I48b071a64b917cea44eb64149539875ba33e2ef5
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoPoint to latest snapshots 92/104592/1
Pamela Dragosh [Fri, 27 Mar 2020 16:59:22 +0000 (12:59 -0400)]
Point to latest snapshots

Issue-ID: POLICY-2378
Change-Id: Ib7304c9c5ae552505fdad267bd0e94df9b35e950
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoPoint to models 2.2.2 48/104448/1
Pamela Dragosh [Wed, 25 Mar 2020 23:59:03 +0000 (19:59 -0400)]
Point to models 2.2.2

Issue-ID: POLICY-2378
Change-Id: Iecf281253baae6548575890f0c919dedc36a3787
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoBump xacml-pdp to 2.2.1-SNAPSHOT 94/104294/1
Jim Hahn [Tue, 24 Mar 2020 16:18:55 +0000 (12:18 -0400)]
Bump xacml-pdp to 2.2.1-SNAPSHOT

Issue-ID: POLICY-2378
Signed-off-by: Jim Hahn <jrh3@att.com>
Change-Id: I819c9a356ca09e9baf75662bb6cd574540f41206

4 years agoMerge "Release 2.2.0 xacml-pdp docker image"
Pamela Dragosh [Tue, 24 Mar 2020 18:19:11 +0000 (18:19 +0000)]
Merge "Release 2.2.0 xacml-pdp docker image"

4 years agoRelease 2.2.0 xacml-pdp artifacts 76/104276/1
Jim Hahn [Tue, 24 Mar 2020 16:51:12 +0000 (12:51 -0400)]
Release 2.2.0 xacml-pdp artifacts

Issue-ID: POLICY-2378
Signed-off-by: Jim Hahn <jrh3@att.com>
Change-Id: I29210f82ac30f5a5e92d7308a93c3cb652b0bcd3

4 years agoRelease 2.2.0 xacml-pdp docker image 71/104271/1
Jim Hahn [Tue, 24 Mar 2020 16:02:34 +0000 (12:02 -0400)]
Release 2.2.0 xacml-pdp docker image

Issue-ID: POLICY-2378
Signed-off-by: Jim Hahn <jrh3@att.com>
Change-Id: I82b3ca9dc3a7c875bf8f3438a3c05a77b72eeddc

4 years agoPoint to released artifacts and use operation 94/104194/1
Pamela Dragosh [Mon, 23 Mar 2020 13:31:27 +0000 (09:31 -0400)]
Point to released artifacts and use operation

Minor fix to use "operation" vs "recipe" in the guard
request.

parent, common and models are released.

Issue-ID: POLICY-2378
Change-Id: I4c5005c08fef2e184ce2dccefdef0c2c2ea2dc08
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agouse shutdown to clear handle leak 17/104017/4
Pamela Dragosh [Thu, 19 Mar 2020 23:58:13 +0000 (19:58 -0400)]
use shutdown to clear handle leak

The XACML github was released with a new method to allow
context factories and PIP engines to release any handles
before releasing the PDP engine. This review includes
that artifact and adds tests to support it.

In addition, added more tests to get code coverage over
90% for both PIPs in ONAP.

Some cleanup in the Matchable types based on last review.

Issue-ID: POLICY-2242
Change-Id: I312f06380ff4d2e16bcfd25b6d1f36ce5dd030e6
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoMerge "Re-factor matchable to reduce complexity"
Jim Hahn [Thu, 19 Mar 2020 16:23:08 +0000 (16:23 +0000)]
Merge "Re-factor matchable to reduce complexity"

4 years agoRe-factor matchable to reduce complexity 55/103855/6
Pamela Dragosh [Wed, 18 Mar 2020 11:50:22 +0000 (07:50 -0400)]
Re-factor matchable to reduce complexity

This solution is much cleaner than what is in StdMatchableTranslator.
Over 90% code coverage on it - utilizes a callback to retrieve DataType
and PolicyTypes. Support for missing timestamp TOSCA type. Also can
do a better job differentiating between a property contained in the policy
vs a schema.

Changed StdMatchableTranslator to utilize these classes. And removed the
old spaghetti.

Added some JUnit coverage for ToscaPolicyTranslatorUtils.

Removed duplicate code in the XACML Native Exception classes.

Issue-ID: POLICY-2242
Change-Id: I18f898d9e65f6da28e3b27517d40f8d389de18a0
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agorenew policy certs till 03/17/2021 84/103884/1
jhh [Wed, 18 Mar 2020 15:46:58 +0000 (10:46 -0500)]
renew policy certs till 03/17/2021

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

4 years agoMissing support for PolicySetType 39/103739/2
Pamela Dragosh [Mon, 16 Mar 2020 15:09:36 +0000 (11:09 -0400)]
Missing support for PolicySetType

Adds support for PolicySetType specifically for Native policies. When/If
the other applications change to support they can easily do so.

Adding some more code coverage for Native application and translator.

Issue-ID: POLICY-2433
Change-Id: I463ca9f04928d759624a2176598b463057d386bd
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoAdd code coverage XacmlPolicyUtils 08/103708/1
Pamela Dragosh [Sun, 15 Mar 2020 02:36:22 +0000 (22:36 -0400)]
Add code coverage XacmlPolicyUtils

Fix spelling error and add code cover >95% for the
XacmlPolicyUtils.

Issue-ID: POLICY-2242
Change-Id: I21f239e6bd42073ff84883d04f2b8bee1466b8e0
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoBump XacmlPdpApplicationManager code coverage 93/103693/4
Pamela Dragosh [Fri, 13 Mar 2020 18:41:33 +0000 (14:41 -0400)]
Bump XacmlPdpApplicationManager code coverage

From under 50% to over 90%.

Issue-ID: POLICY-2242
Change-Id: Ie061bddbdd2fcdb37bed608847449e5bc92173b5
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoBetter error handling for decisions 49/103549/4
Pamela Dragosh [Wed, 11 Mar 2020 18:06:42 +0000 (14:06 -0400)]
Better error handling for decisions

Throw exceptions when requests cannot be created and return
error information back. Consolidated some code to avoid sonar
duplication issues.

Companion review to https://gerrit.onap.org/r/c/policy/models/+/103548

Issue-ID: POLICY-2242
Change-Id: Ic873af933dab82e3aeef6335f55939666be20385
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
4 years agoMerge "Added support for application/xacml+json in native app"
Pamela Dragosh [Wed, 11 Mar 2020 16:09:29 +0000 (16:09 +0000)]
Merge "Added support for application/xacml+json in native app"