policy/xacml-pdp.git
19 months agoUpgrade xacml engine to 3.1.0 81/130881/1 honolulu
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 docker base image to snapshot 32/130732/1
liamfallon [Mon, 5 Sep 2022 14:32:35 +0000 (15:32 +0100)]
update docker base image to snapshot

updated docker base image to snapshot

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

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

20 months agoPoint to snapshot dependencies 07/130407/1
Ram Krishna Verma [Mon, 22 Aug 2022 14:02:10 +0000 (10:02 -0400)]
Point to snapshot dependencies

Issue-ID: POLICY-4295
Change-Id: I8530b4eaf8d847caa0e0f339d0f92fbaa974fb31
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
20 months agoBump xacml-pdp to 2.4.7-SNAPSHOT 77/130377/1
Ram Krishna Verma [Thu, 18 Aug 2022 19:58:32 +0000 (15:58 -0400)]
Bump xacml-pdp to 2.4.7-SNAPSHOT

Issue-ID: POLICY-4295
Change-Id: Ic50f68b1da822959f88c07f8868b7a04de8090ff
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
20 months agoRelease xacml-pdp 2.4.6 docker image 68/130368/1
Ram Krishna Verma [Thu, 18 Aug 2022 18:46:52 +0000 (14:46 -0400)]
Release xacml-pdp 2.4.6 docker image

Issue-ID: POLICY-4295
Change-Id: I47f012f0547d0d644b024598c3f973c4836dda98
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
20 months agoRelease xacml-pdp 2.4.6 maven artifacts 60/130360/1
Ram Krishna Verma [Thu, 18 Aug 2022 14:39:39 +0000 (10:39 -0400)]
Release xacml-pdp 2.4.6 maven artifacts

Issue-ID: POLICY-4295
Change-Id: I4a82fa3cb7d927cec3a51bfffc55ed09092c1d4d
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
20 months agoPoint to released dependencies 35/130335/1
Ram Krishna Verma [Wed, 17 Aug 2022 17:00:21 +0000 (13:00 -0400)]
Point to released dependencies

Issue-ID: POLICY-4295
Change-Id: Ib3d37c37afbad35b867afb8fd8b705bdca1af8af
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
21 months agoUpgrade to oparent 3.2.1 54/130154/1
Pamela Dragosh [Wed, 3 Aug 2022 18:09:36 +0000 (13:09 -0500)]
Upgrade to oparent 3.2.1

Issue-ID: POLICY-4211
Change-Id: Ie00f470ed1ce5676b9233f88bd9bd699f506d7a5
Signed-off-by: Pamela Dragosh <pd1248@att.com>
22 months agoupdate policy models references 57/129857/1
liamfallon [Mon, 11 Jul 2022 13:36:18 +0000 (14:36 +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: I7efe49ea8e2f175a74548575a33f96a30c07da87

22 months agoFix Raw XACML Decision API Serialization 21/129821/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

23 months agoSet the default tag of image policy-xacml-pdp to be project version on honolulu 31/129231/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 honolulu

The default tag of image policy-xacml-pdp was latest.
When building on honolulu 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 agoBump xacml to 2.4.6 for honolulu 29/123729/1
Jim Hahn [Tue, 31 Aug 2021 14:56:24 +0000 (10:56 -0400)]
Bump xacml to 2.4.6 for honolulu

Issue-ID: POLICY-3531
Change-Id: Iefeeede864e763f69c6c5d6f1d3a6d06cc452dea
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoRelease xacml 2.4.5 docker image for honolulu 28/123728/1
Jim Hahn [Tue, 31 Aug 2021 14:40:20 +0000 (10:40 -0400)]
Release xacml 2.4.5 docker image for honolulu

Issue-ID: POLICY-3531
Change-Id: I266f0e7127f107e7960c73e54004f74239de35de
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoRelease xacml 2.4.5 artifacts for honolulu 23/123723/2
Jim Hahn [Tue, 31 Aug 2021 13:34:53 +0000 (09:34 -0400)]
Release xacml 2.4.5 artifacts for honolulu

Issue-ID: POLICY-3531
Change-Id: I4420d3e7a469f44f9075f0fb7ef23e1fc540d1d4
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoRevert "Synchronize updates to xacml-pdp state" 64/123564/1
Jim Hahn [Wed, 25 Aug 2021 21:29:04 +0000 (21:29 +0000)]
Revert "Synchronize updates to xacml-pdp state"

This reverts commit ead43f520102bc6201aadb770b5f289c9dc4691c.

Reason for revert: Causing lock-ups in honolulu builds

Issue-ID: POLICY-3531
Change-Id: Ia18ac9306ba406f59b3e939a3d4aafefe14407e6
Signed-off-by: Jim Hahn <jrh3@att.com>
2 years agoSynchronize updates to xacml-pdp state 12/123312/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>
(cherry picked from commit d3544f097cf6c67baf66578636d09c1148e01c50)

2 years agoLeave xacml-pdp REST server always running 12/122912/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>
(cherry picked from commit 031a0fe51dff21445034befc8a6d8732622acd07)

2 years agoBump versions to 2.4.5-SNAPSHOT 37/123137/1
jhh [Wed, 4 Aug 2021 21:50:27 +0000 (16:50 -0500)]
Bump versions to 2.4.5-SNAPSHOT

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

2 years agoRelease xacml-pdp docker 2.4.4 31/123131/1
jhh [Wed, 4 Aug 2021 19:25:23 +0000 (14:25 -0500)]
Release xacml-pdp docker 2.4.4

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

2 years agoRelease xacml-pdp 2.4.4 29/123129/1
jhh [Wed, 4 Aug 2021 19:10:04 +0000 (14:10 -0500)]
Release xacml-pdp 2.4.4

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

2 years agoPoint to parent 3.3.2 common 1.8.2 models 2.4.4 19/123119/1
jhh [Wed, 4 Aug 2021 18:03:55 +0000 (13:03 -0500)]
Point to parent 3.3.2 common 1.8.2 models 2.4.4

Issue-ID: POLICY-3329
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I2ef48eb8dc91ebc48acde4ad224b4798fb25a0fa
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
2 years agoBump xacml-pdp 2.4.4-SNAPSHOT 80/122180/1
Pamela Dragosh [Thu, 24 Jun 2021 12:56:29 +0000 (08:56 -0400)]
Bump xacml-pdp 2.4.4-SNAPSHOT

Issue-ID: POLICY-3329
Change-Id: Ief1c99ea65df277a511254dc5f7074aa326adc98
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2 years agoRelease xacml-pdp docker 2.4.3 55/122155/1
Pamela Dragosh [Wed, 23 Jun 2021 21:05:23 +0000 (17:05 -0400)]
Release xacml-pdp docker 2.4.3

Issue-ID: POLICY-3329
Change-Id: I41c52f5e8e2008864764e1a51f3c32bab8024785
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2 years agoRelease xacml-pdp 2.4.3 51/122151/1
Pamela Dragosh [Wed, 23 Jun 2021 20:47:05 +0000 (16:47 -0400)]
Release xacml-pdp 2.4.3

Issue-ID: POLICY-3329
Change-Id: I08ea3c3a21d2c1f5706cdad3c7a01ad1158c6bc9
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2 years agoPoint to parent 3.3.1 common 1.8.1 models 2.4.3 43/122143/1
Pamela Dragosh [Wed, 23 Jun 2021 18:30:03 +0000 (14:30 -0400)]
Point to parent 3.3.1 common 1.8.1 models 2.4.3

Issue-ID: POLICY-3329
Change-Id: Ibf52f20e1b4b06ebd256629cb135a7cc1346428a
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2 years agoUse protected methods vs private 35/122135/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>
2 years agoRemove csit folder from policy/xacml-pdp 56/121456/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>
(cherry picked from commit 7293cbd3c0bf0043b663d036dcb7abe400a4e706)

3 years agoFix xacml-pdp csit test cases 79/121179/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>
(cherry picked from commit 5503f7127cb02d6bfa02f432ca263bbdc72a5bfa)

3 years agoRefactor policy/xacml-pdp csit tests 71/121171/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>
(cherry picked from commit 53335fa2c345755e253ae2e073f540608594e95f)

3 years agoUpdate tutorials to point to honolulu images 63/121163/1
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>
(cherry picked from commit 07a780ed00e2d494707765951c227e19b5dec43b)

3 years agoChange pap deploy response code to 202 for jmeter 69/119969/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
(cherry picked from commit 96503deee83e83dbc5f9d44c91ed6f27535463bf)

3 years agoBump xacml-pdp 2.4.3-SNAPSHOT 17/119717/3
Pamela Dragosh [Wed, 24 Mar 2021 12:29:16 +0000 (08:29 -0400)]
Bump xacml-pdp 2.4.3-SNAPSHOT

Issue-ID: POLICY-3150
Change-Id: Icce931a507eb130a1aeeb16c34fc5046bacf20f6
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
3 years agoRelease xacml pdp 2.4.2 docker 71/119671/1 8.0.0-ONAP
Pamela Dragosh [Tue, 23 Mar 2021 23:00:55 +0000 (19:00 -0400)]
Release xacml pdp 2.4.2 docker

Issue-ID: POLICY-3150
Change-Id: Id5bd9eacd0eb853e39f2ba19a96f22e0592d72ae
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
3 years agoRelease xacml pdp 2.4.2 java artifacts 69/119669/1
Pamela Dragosh [Tue, 23 Mar 2021 22:12:34 +0000 (18:12 -0400)]
Release xacml pdp 2.4.2 java artifacts

Issue-ID: POLICY-3150
Change-Id: I38b70e9cbe8fc80e2b415361de11a098331139b9
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
3 years agoPoint xacml to models 2.4.2 63/119663/1
Pamela Dragosh [Tue, 23 Mar 2021 21:21:09 +0000 (17:21 -0400)]
Point xacml to models 2.4.2

Issue-ID: POLICY-3150
Change-Id: Ic4073b6ac119401aea875fcf982eb44859994206
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
3 years agoUpdate policy-keystore with newer certificates 19/119219/2
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 agoDefault to honolulu branch 14/119114/1
Jim Hahn [Wed, 10 Mar 2021 21:03:06 +0000 (16:03 -0500)]
Default to honolulu branch

Issue-ID: POLICY-3105
Change-Id: I4b99dd56e23ce559bbb0382f8136d1bd97c9444b
Signed-off-by: Jim Hahn <jrh3@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"

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>