summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2021-08-05Use lombok in drools-pdp #2Jim Hahn26-335/+141
Updated feature-session-persistence thru drools-domains. Issue-ID: POLICY-3397 Change-Id: I0b1c6da8b2301c00dd792675e8cf1f49888edb9f Signed-off-by: Jim Hahn <jrh3@att.com>
2021-08-05Use lombok in drools-pdpJim Hahn41-867/+262
Updated policy-management thru policy-utils. Issue-ID: POLICY-3397 Change-Id: Ie9498fe912e8338ddc32a40774c3cb63d84f079a Signed-off-by: Jim Hahn <jrh3@att.com>
2021-07-20Use docker registry properties in drools-pdpJim Hahn1-3/+1
Issue-ID: POLICY-3374 Change-Id: I2439fd5680c7828f6d20e4a884167333aedf9f49 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-07-08Update pdp statistics to count deploy/undeploy separately.adheli.tavares3-128/+172
Issue-ID: POLICY-3383 Change-Id: If8f1555aa0c509a35f4dd1821ddc5dd2f7294d2f Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
2021-07-07nosonar on admin logging level functionjhh2-8/+13
Issue-ID: POLICY-3077 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: Ieae80c77db297271c9de3958d321bfe4b88acce3 Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
2021-06-30Merge "Remove unused property from pom"Ram Krishna Verma1-5/+0
2021-06-30Remove unused property from pomliamfallon1-5/+0
The swagger.version property is unused in drools-pdp. Issue-ID: POLICY-3209 Change-Id: Ie64e8462bb316f71d555e3b394d3c615b5c6c3a1 Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-06-29Use unique name in drools PdpMessagesJim Hahn10-37/+41
Also modified distributed locking to use the unique name, in case the DB is shared. Issue-ID: POLICY-3410 Change-Id: I046a9ffdcb62f3d84d7d388a1e64bcf025fbbf75 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-06-28Update policy-drools-pdp for checkstyle 8.43liamfallon2-42/+44
Updates are indentation changes on annotations. Issue-ID: POLICY-3209 Change-Id: I7b55b2affa3e16afb0c0f8398b902a04f13c4db0 Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-06-18Fix new checkstyle issues in drools-pdpJim Hahn5-26/+25
The new version of checkstyle identified new issues. Fixed those. Also addressed sonar "var" issues. Issue-ID: POLICY-3289 Change-Id: I3a18d3988202dca6f3c87f2aa1810bf803a9d14d Signed-off-by: Jim Hahn <jrh3@att.com>
2021-06-16use lombok NonNull instead of other leaked importsjhh3-3/+3
Issue-ID: POLICY-3397 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: Ie0f2009e9c9d219405f5ccbdd648304c66460b1e
2021-06-15filter logging input data per sonar security issuejhh3-12/+19
Issue-ID: POLICY-3289 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: Iad22a581a6bd98e7e210162d30ec7741972669d2
2021-06-14Use re2j pattern for sonar vulnerabilitiesjhh4-27/+28
Issue-ID: POLICY-3289 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: Id6d58b5c8ac5f7715286f21274ccf5eea9155fd2
2021-06-07Add global dmaap https flag for configurationjhh3-3/+4
Since drools-pdp and derived applications typicall share the same dmaap, this map will make easy to toggle between https and http for those systems that need it. https remains the default. Issue-ID: POLICY-3366 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: Ib3556ed5f73e8a5485bc5c84a161753b1a50ce95
2021-05-31Remove policies field references from testswaynedunican4-9/+4
Remove policies field references from drools-pdp as this has since been removed from the PdpUpdate class in policy-models Issue-ID: POLICY-3339 Change-Id: Ib47408f54318a861fc569beed683e5cffcb2738e Signed-off-by: waynedunican <wayne.dunican@est.tech> Signed-off-by: WayneDunican <wayne.dunican@est.tech>
2021-05-18Fix sonar vulnerabilities logging user inputjhh1-2/+2
Issue-ID: POLICY-3230 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I05fb50ef3c4b6da0603e75084554e061a27a2202
2021-05-14Merge "fix telemetry related sonar security issues"Jim Hahn3-15/+56
2021-05-13Remove csit folder from policy/drools-pdpRam Krishna Verma4-84/+0
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: I8c3476ec9056f71c288784b73ef68d323cd9d4f2 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-05-12disable https server default for telemetryjhh4-88/+11
Issue-ID: POLICY-3230 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I2fd74011b649bca1acbef217bbf6ee222a6352eb
2021-05-12fix telemetry related sonar security issuesjhh3-15/+56
Issue-ID: POLICY-3257 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: Ic599b593abbc999c4e6a6fd4bc72acd5ec6e09f9
2021-05-10interrupted exception and var usage sonarsjhh3-50/+66
Issue-ID: POLICY-3230 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I50a4ee81f0a1c97df25732a4e4507e8b7f8c8e4d
2021-05-10Merge "sonars policy-utils and feature-lifecycle"Ram Krishna Verma10-83/+60
2021-05-10Merge "support no https or authentication in telemetry"Jorge Hernandez1-2/+13
2021-05-10support no https or authentication in telemetryjhh1-2/+13
Issue-ID: POLICY-3230 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I86a5f1081293a6b3d5f52c4462b947facbd9ee88 Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
2021-05-07sonars policy-utils and feature-lifecyclejhh10-83/+60
Issue-ID: POLICY-3289 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: Iaf7423f840fb39a27c3e5fd293159d1336d5557a
2021-05-07Remove deprecated method from drools-pdp csitRam Krishna Verma1-13/+12
Issue-ID: POLICY-3257 Change-Id: I1051063677921a04ba536deac6ddedf04d360fd2 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
2021-05-03support for PAP delta updatesjhh8-120/+200
Issue-ID: POLICY-3187 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I91b343feb28fdff6b2391387e51defbdcfbe7b0f Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
2021-04-21Merge "Make skipping of deployment configurable"Liam Fallon1-1/+2
2021-04-20Fix no-lock service loader incorrect metadatajhh4-7/+17
Issue-ID: POLICY-3202 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: Iac6d9c7459718df1aae97e0b56f51178cd6b172e
2021-04-19Make skipping of deployment configurableliamfallon1-1/+2
This change makse skipping of deployment configurable so that its setting can be overridden. Issue-ID: POLICY-2971 Change-Id: I963c5cae831d10ac7ab1e220ebbba91ec3369188 Signed-off-by: liamfallon <liam.fallon@est.tech>
2021-04-14Add legacy-config new featurejhh18-15/+775
This feature makes the legacy configuration optional. It was used by brmsgw and other tooling to provision via its DMaaP channel. The capability to configure via PdpConfiguration object is kept in the core preserving backwards compatibility, but the DMaaP provisioning channel(s) are optional. Issue-ID: POLICY-2618 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: Ia7198ac3b2810d85133c06ba5217a9c28e07ac4c Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
2021-04-07Use sh instead of ash in drools-pdpJim Hahn25-49/+49
Issue-ID: POLICY-3160 Change-Id: I37b2b75d010781108e40ae39d3742bc2c2e2fd7e Signed-off-by: Jim Hahn <jrh3@att.com>
2021-03-23Update cert stores configurationjhh3-13/+17
Issue-ID: POLICY-3158 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: Iee453ea70e0ebd9a82c0126ffedd8f5632783d6f Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
2021-03-19Delete keystores from droolsJim Hahn1-0/+0
The Keystore is no longer needed in the tarball, as it is supplied externally by the CSITs and Helm charts. Deleted that file. Issue-ID: POLICY-3143 Change-Id: I5f80f7e25a86b903fd67080adbf15ab090c4b346 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-03-17Change Dockerfile httpie version to fix telemetryjhh1-1/+1
telemetry based tools do not work as the http-prompt version installed has changed in alpine repositories. Issue-ID: POLICY-3138 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: Ib838dabedacd03a72bd018f1d66ace95cbb0c511
2021-03-16Update policy-keystore with newer certificatesjhh1-0/+0
Issue-ID: POLICY-3139 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I4b0cc4e1a1f6de36857f3e6e73b3dc6b1f9d8b87
2021-03-12Address plugin-not-found issuesJim Hahn10-379/+18
Removed references to archetype-packaging and lifecycle-mapping, where unnecessary due to pom inheritance. Also removed unnecessary checkstyle plugins. Issue-ID: POLICY-3126 Change-Id: Ia2bc398c7adbf13e925dd6329411310472c7ee35 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-03-11bump pom versions to 1.9.0-SNAPSHOTjhh25-29/+29
Issue-ID: POLICY-3105 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I0686675cdddf6fb5ce78f792484486f39d705a58
2021-03-10bump poms to 1.8.2-SNAPSHOTjhh25-25/+25
Issue-ID: POLICY-3127 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I0cf960650fbd2010a7c747d4932fdf8226c1fa07
2021-03-10docker image release 1.8.1jhh1-0/+8
Issue-ID: POLICY-3127 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: Iec454c8c56fbb6cd0a3b6f3d9066bec050370365
2021-03-10maven release 1.8.1jhh1-0/+5
Issue-ID: POLICY-3127 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I5273c846164413c510209605b8d6845fb740002d
2021-03-10point to released models 2.4.1jhh1-1/+1
Issue-ID: POLICY-3127 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: Ifa9e15c24245f195f7def2b831db9e24bbc108ce
2021-03-09add no locking featurejhh14-60/+606
It provides an interface to applications for locking purposes that always succeeds. It does not deny acquiring resource locks. Issue-ID: POLICY-3114 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I6aebb5f40e4176e0ff7b0e6c6d4042a79dd0b7a3 Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
2021-03-05modify filename and path for csitTaka Cho2-2/+2
after doing a test in jenkins sandbox found some errors have to be fixed. Issue-ID: POLICY-2895 Change-Id: I2bd6d79c71070ef7ce9ec179a1838d51b886b2ae Signed-off-by: Taka Cho <takamune.cho@att.com>
2021-03-04Merge "Fix default timestamp in upgrade script"Jorge Hernandez2-10/+10
2021-03-04Fix default timestamp in upgrade scriptJim Hahn2-10/+10
The 1811 upgrade script for distributed locking is failing, because the default timestamp value is invalid for the new column type. Modified the value and also added one for the downgrade script. Issue-ID: POLICY-3117 Change-Id: I8dff748cb089db551820418b1d597a1be207c9b5 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-03-03enable viewing lifecycle statistics with telemetryjhh3-4/+20
Issue-ID: POLICY-3121 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I25e8c4439c0a6beabe532c17cc58919f369f17f0 Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
2021-03-02Add quotes around variable in db scriptJim Hahn2-7/+7
Apparently, ash doesn't like "[ -z ${xxx} ]" if the content of $xxx contains spaces. Added quotes around ${xxx}. Also fixed: - a couple of "[" "]" mismatches - a logic error in the selection of upgrade scripts Issue-ID: POLICY-3117 Change-Id: I99c977825fe9df8a44c288b6307cd3e55c504f86 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-02-26move drools-pdp csit to project levelTaka Cho4-0/+85
move tests/plans from csit repot to drools-pdp repo Issue-ID: POLICY-2895 Change-Id: I8fd43ca763d74d6db7950b1b5d3502f3da73e09e Signed-off-by: Taka Cho <takamune.cho@att.com>
2021-02-24Update info.yaml in drools-pdpRam Krishna Verma1-2/+2
Issue-ID: POLICY-3028 Change-Id: I951ae73be6a42184f9fa72e4bac4432ae9b552b1 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>