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>
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>
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>
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>
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>
Jorge Hernandez [Thu, 2 Jul 2020 12:43:03 +0000 (12:43 +0000)]
Merge "Updating XACML dependencies to latest version"
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>
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>
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>
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>
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>
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>
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>
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
Pamela Dragosh [Tue, 2 Jun 2020 12:00:37 +0000 (12:00 +0000)]
Merge "Use OperationsHistory from models"
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>
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>
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>
Ram Krishna Verma [Thu, 28 May 2020 20:15:01 +0000 (20:15 +0000)]
Merge "Point to parent SNAPSHOT"
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>
Pamela Dragosh [Wed, 27 May 2020 16:50:47 +0000 (16:50 +0000)]
Merge "Change CLC logic for updated OPHist DB entries."
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>
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>
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>
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>
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>
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>
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>
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>
Ram Krishna Verma [Wed, 20 May 2020 00:36:58 +0000 (00:36 +0000)]
Merge "Removing unused imports."
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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>
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>
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>
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>
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
Pamela Dragosh [Tue, 24 Mar 2020 18:19:11 +0000 (18:19 +0000)]
Merge "Release 2.2.0 xacml-pdp docker image"
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
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
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>
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>
Jim Hahn [Thu, 19 Mar 2020 16:23:08 +0000 (16:23 +0000)]
Merge "Re-factor matchable to reduce complexity"
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>
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
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>
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>
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>
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>
Pamela Dragosh [Wed, 11 Mar 2020 16:09:29 +0000 (16:09 +0000)]
Merge "Added support for application/xacml+json in native app"
Chenfei Gao [Tue, 10 Mar 2020 20:13:17 +0000 (16:13 -0400)]
Added support for application/xacml+json in native app
Issue-ID: POLICY-2182
Change-Id: I13246e08afdc2f5a380b5737c72851f271211d46
Signed-off-by: Chenfei Gao <cgao@research.att.com>
Pamela Dragosh [Wed, 11 Mar 2020 14:35:04 +0000 (10:35 -0400)]
Fix sonar logging bugs
These did not show up locally - sonarqube must have a new
version or rules to pick these up.
Issue-ID: POLICY-2242
Change-Id: I3df5aee84f696cde6b07c68913bbd55e95c8ba3b
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Pamela Dragosh [Tue, 10 Mar 2020 20:17:36 +0000 (16:17 -0400)]
Misc XACML code coverage
Removed duplicate code from operations history classes.
added code coverage to other classes.
cleared sonar in main for args
Issue-ID: POLICY-2242
Change-Id: Ief548c96a180c132a3f17681d9cbc018c62e42ac
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Pamela Dragosh [Tue, 10 Mar 2020 16:41:47 +0000 (12:41 -0400)]
Bump monitoring app code coverage
Cleaned up some code to remove unnecessary branches. Add more
test cases specifically for query parameters.
Coverage should be above 90% for this repo.
Issue-ID: POLICY-2242
Change-Id: I20a75aacd75f9b8c87abb47e88b81ab8f2d30626
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Pamela Dragosh [Tue, 10 Mar 2020 11:54:05 +0000 (07:54 -0400)]
Fix optimization bug add coverage plus
Fix a NPE bug and add more code coverage.
Also is missing returning of context details for subscriber policies.
This code is a bit ad-hoc and there is a separate JIRA POLICY-2147 to
support re-factoring this codebase.
Added scanning for advice to be returned. For optimization, because of
the need for some changes in XACML github dependency, we are stuck with
a little narly code to get it to fully work. POLICY-2417 is created to
address this in Guilen.
Upgraded to released XACML artifact - this has been tested locally for
a few weeks with naming, guard and this optimzation code. It removed
Jackson in lieu of Json, cleaned up some security fixes, upgraded
dependencies, and added more code coverage.
Issue-ID: POLICY-2066
Change-Id: I3cae99de265c815200ec2ce71e471338772bdb5b
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Pamela Dragosh [Sun, 8 Mar 2020 14:41:26 +0000 (10:41 -0400)]
Updates to support fixed guard policy types
Because the new TOSCA compliant policy types support required
fields, we can simplify the guard translator to utilize Match
in the target vs the previous complicated Condition usage.
Added test coverage to bump above 90% specifically for the
guard and coordination code.
Added a sonar exclusion for the test module.
Issue-ID: POLICY-2244
Change-Id: Ia90d117bd7b86d28a2268fd5ab8315dce7bf0c12
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Chenfei Gao [Thu, 5 Mar 2020 19:18:34 +0000 (14:18 -0500)]
Added xacml.properties to packages for native app
Issue-ID: POLICY-2182
Change-Id: Ife38e989aeda445c9fc2531bb92426f2d28bb818
Signed-off-by: Chenfei Gao <cgao@research.att.com>
Pamela Dragosh [Sun, 1 Mar 2020 21:53:13 +0000 (16:53 -0500)]
Point to docker 2.0.1
policy/docker is released
Issue-ID: POLICY-2378
Change-Id: I1ca967d48dca59d72d3490044ee499770d04f286
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Ram Krishna Verma [Sun, 1 Mar 2020 15:45:46 +0000 (15:45 +0000)]
Merge "Build XACML PDP support for native xacml policy type"
Chenfei Gao [Fri, 28 Feb 2020 19:45:48 +0000 (14:45 -0500)]
Build XACML PDP support for native xacml policy type
Added a new native application to the service loader framework
Added a new translator for the native application
Added custom serialization providers for xacml+json and xacml+xml
Added a new endpoint for native xacml decision api
Added a new api provider function to handle the native xacml api calls
Added corresponding junit tests
Issue-ID: POLICY-2182
Change-Id: I30fa4637612c324d543f9952386cf1a27a52d76c
Signed-off-by: Chenfei Gao <cgao@research.att.com>
pramod.jamkhedkar [Thu, 27 Feb 2020 17:55:59 +0000 (12:55 -0500)]
XACML pdp support for clc.
Added policies for SON and PCI to support each blocking the other, with test cases and appropriate requests
Issue-ID: POLICY-2163
Change-Id: I8153f9cd973a7cd6824fcd6c9787628a74148d46
Signed-off-by: pramod.jamkhedkar <pramod@research.att.com>
Pamela Dragosh [Mon, 24 Feb 2020 18:31:45 +0000 (13:31 -0500)]
Upgrades to cucumber
To keep in step with policy/parent upgrades.
Issue-ID: POLICY-2381
Change-Id: Ic25821bcf410e2fdf261abd155eb21030c509aa1
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Pamela Dragosh [Wed, 19 Feb 2020 21:59:01 +0000 (16:59 -0500)]
Use datatype in matchable translator
With the new changes to models/api, the full policy template will
be retrieved along with inherited policy types and datatypes.
Changed api caller to return tosca template instead of individual
policy type so all policy types and data types are available.
Changed stdmatchabletranslator to be able to flexibly go deep with
list/map of datatypes of attributes. NOTE: This should be re-factored
at a later date as its a bit messy.
The naming application was used to test this code, but it was determined
by the CCSDK team that they will not do filtering this release. Instead,
switched to combined results policy type to return the full policy type.
Issue-ID: POLICY-1740
Change-Id: Ieb4e46e7fb2c639a1155be3bc07f5587c4f7b09a
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Pamela Dragosh [Thu, 13 Feb 2020 17:23:53 +0000 (12:23 -0500)]
Add missing apps/naming directory for testing
Just clears a warning from main JUnit tests.
Issue-ID: POLICY-1740
Change-Id: Ie9e5bb0463bf5827085a714a61a5d87021f37860
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Bruno Sakoto [Fri, 7 Feb 2020 19:33:19 +0000 (14:33 -0500)]
Review intellij git ignored files
Issue-ID: POLICY-2359
Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca>
Change-Id: Ie2203067494ee9f59c56fd9cfc7ed9023b797e44
Ram Krishna Verma [Wed, 5 Feb 2020 21:32:11 +0000 (16:32 -0500)]
Updating module names to resolve conflicts
Issue-ID: POLICY-2355
Change-Id: I2933cf17fa790113eaaf8b9adc199c3b8fdc0e75
Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
Pamela Dragosh [Tue, 21 Jan 2020 15:06:05 +0000 (10:06 -0500)]
Remove assembly warning
Use ${file.separator}
Issue-ID: POLICY-2329
Change-Id: I1bca4f17ea562d656edc368aa8fc34d59206203d
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Jim Hahn [Thu, 16 Jan 2020 21:32:58 +0000 (16:32 -0500)]
Use alpine image for xacml-pdp
Issue-ID: POLICY-1586
Signed-off-by: Jim Hahn <jrh3@att.com>
Change-Id: I4ed9fa70dd95d061f0cd4c81822853b92387e2f6
Pamela Dragosh [Thu, 16 Jan 2020 21:01:22 +0000 (21:01 +0000)]
Merge "Ensure one jacoco output file"
Jim Hahn [Thu, 16 Jan 2020 18:51:21 +0000 (13:51 -0500)]
Add missing property file to xacml tarball
When attempting to run the xacml-pdp CSIT, the log file contains a
complain about a missing apps/naming/xacml.properties file; it was
missing from the tarball.
Issue-ID: POLICY-1586
Signed-off-by: Jim Hahn <jrh3@att.com>
Change-Id: Ie967efb9b82b0aabe513df9ea213867faca06840
Pamela Dragosh [Thu, 16 Jan 2020 17:31:52 +0000 (12:31 -0500)]
Ensure one jacoco output file
Sub-modules under sub-modules need to set the path to
ensure a single jacoco-ut.exec file is produced and
appended to.
This doesn't seem to affect the results, but I'd like
to be consistent.
Issue-ID: POLICY-2321
Change-Id: Ia2223df55ce0f4be6e81fa61bf7df711e12ad760
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Jim Hahn [Wed, 15 Jan 2020 21:46:49 +0000 (16:46 -0500)]
Update policy-xacml-pdp for java11 docker
Issue-ID: POLICY-1586
Change-Id: I6ff51d191a506297cbe69161114c0721b59bb5d2
Signed-off-by: Jim Hahn <jrh3@att.com>
Pamela Dragosh [Tue, 14 Jan 2020 20:12:03 +0000 (15:12 -0500)]
Update sonar configuration
policy/parent now has the configuration
don't need to evaluate packages and testsuites
Issue-ID: POLICY-2321
Change-Id: I957e0d69845afa2fed5907ab3edd8dcf69596a0e
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
HOCKLA [Tue, 14 Jan 2020 17:39:47 +0000 (11:39 -0600)]
policy/xacml-pdp jdk11 upgrades
Issue-ID: POLICY-1596
Change-Id: I00164ea17eb9d547b45c01e5f46f7aaf0f9a25e2
Signed-off-by: HOCKLA <ah999m@att.com>
HOCKLA [Fri, 10 Jan 2020 21:09:21 +0000 (15:09 -0600)]
Point to policy/models release version
Issue-ID: POLICY-1592
Change-Id: Ie53416e58b439f4dfec17eb260ece3326eaf53d3
Signed-off-by: HOCKLA <ah999m@att.com>
a.sreekumar [Wed, 8 Jan 2020 13:04:35 +0000 (13:04 +0000)]
Enabling logback file to be loaded using oom configmap
Change-Id: Icda10390a6ff3b6b524907562050658f3b283afd
Issue-ID: POLICY-2308
Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
HOCKLA [Thu, 2 Jan 2020 17:45:22 +0000 (11:45 -0600)]
Removed supported policy types from Pdp-Status message
Issue-ID: POLICY-2230
Change-Id: I363dc450b6d7aaf13696c50792cbea5a8d643413
Signed-off-by: HOCKLA <ah999m@att.com>
Pamela Dragosh [Wed, 11 Dec 2019 15:00:21 +0000 (10:00 -0500)]
Add optimization subscriber request
Adding support for a preliminary request to pull subscriber details.
The returned decision adds scope attributes for the original request.
Fixed some checkstyle issues due to new checkstyle requirements.
Issue-ID: POLICY-2066
Change-Id: Ief02d896ce33e4864bb20e9185b0d0f5eb254bfd
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Pamela Dragosh [Sun, 8 Dec 2019 22:44:31 +0000 (17:44 -0500)]
Add SDNC naming application
Requires changes to StdMatchableTranslator to go deeper when
searching for matchable attributes.
NOTE: will re-visit the StdMatchableTranslator at a later date
in order to support more robust Policy Types. And document best
practices for defining matchables.
Issue-ID: POLICY-1740
Change-Id: I291cf1c2e6eba0a677a3312dd11f0e56178a805b
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Pamela Dragosh [Sun, 8 Dec 2019 12:32:33 +0000 (07:32 -0500)]
Changes for optimization refactoring
Companion review to https://gerrit.onap.org/r/c/policy/models/+/99288
The policy types for optimization were refactored, so the xacml
optimization application tests need to accomodate that.
Issue-ID: POLICY-2066
Change-Id: Ibc03b0652e771175a2fa38f5c3a3d81c7e371147
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
HOCKLA [Thu, 5 Dec 2019 19:16:28 +0000 (13:16 -0600)]
Point to release versions of policy/parent and policy/common
Issue-ID: POLICY-1583
Change-Id: I0fb606c7ba7334a6826a1246c76fe1970b1f9a44
Signed-off-by: HOCKLA <ah999m@att.com>
Pamela Dragosh [Mon, 2 Dec 2019 19:38:05 +0000 (14:38 -0500)]
Clear some simple xacml sonar
Missing assertions in JUnit test cases.
Use replace vs replaceAll
Swapping arguments
Issue-ID: POLICY-2079
Change-Id: I5accd462eab3d4f6b3321e375d4ba1084caf4b8c
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
HOCKLA [Fri, 15 Nov 2019 14:52:39 +0000 (08:52 -0600)]
Changed Xacml-pdp to report pdp group defined in XacmlPdpParameters config file
Ignore the pdp group specified in the PdpUpdate message.
Updated junits and test resources.
Issue-ID: POLICY-2229
Change-Id: I0c7a33c45424cef6440b0837e1dd22a7487c5d44
Signed-off-by: HOCKLA <ah999m@att.com>
Liam Fallon [Thu, 14 Nov 2019 21:01:24 +0000 (21:01 +0000)]
Merge "Added 'onap.monitoring.*' in list of supported policy types"
Ali Hockla [Tue, 12 Nov 2019 17:49:32 +0000 (11:49 -0600)]
Added 'onap.monitoring.*' in list of supported policy types
Issue-ID: POLICY-2223
Change-Id: I1a7a1b4083ff74ca86455e1ab6ae7f96b8c04d35
Signed-off-by: Ali Hockla <ah999m@att.com>
Pamela Dragosh [Mon, 11 Nov 2019 17:37:51 +0000 (12:37 -0500)]
Do not hardcode io.fabric8 plugin
policy/parent now has this defined
Issue-ID: POLICY-2222
Change-Id: Ia054539a41f58dde26bf30d9d3b0f7f95da3b20d
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Jorge Hernandez [Wed, 13 Nov 2019 13:55:40 +0000 (13:55 +0000)]
Merge "Implement closest match algorithm"