summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2021-09-01Don't create world-writeable directoryJim Hahn1-32/+11
Fix sonar: - world-writeable directory Issue-ID: POLICY-3289 Change-Id: I421dd9722d8642992ff8f5991f41a341c834ba1d Signed-off-by: Jim Hahn <jrh3@att.com>
2021-08-26Fix sonars in drools-pdpJim Hahn32-167/+139
Fixed sonars: - use "var" - override "equals" - unused imports Also changed some of the JPA queries to make them typed queries. Issue-ID: POLICY-3289 Change-Id: Ib3a00be322d8d00ba492673708439cacfe2c7fc4 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-08-25Remove GPLv3 components from drools-pdpJim Hahn1-9/+5
The drools-pdp docker image includes GNU tar, which is GPLv3 and is therefore disallowed by ONAP. Appears to be included with "dpkg", which isn't needed anymore, so just removed it. Switched to newer policy/docker image, which includes python3, thus no longer need to install it. Also stopped installing httpie via apk and only install it via pip, now. Issue-ID: POLICY-2845 Change-Id: I08b97b90aef6820135b052c20f270f8b487c94a9 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-08-23Add prometheus + https in https server configsjhh3-5/+14
Issue-ID: POLICY-3553 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: I9d5d36e35b69a7f47efd2cc4b2abfdd0ba8f2192
2021-08-23Fixing drools junits as per policy/common changesa.sreekumar2-2/+4
Change-Id: I2dc7f988654d8f7d1b822233e1fbe66e6fbf767d Issue-ID: POLICY-3538 Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
2021-08-12Merge "Add SQL_PORT configuration"Jorge Hernandez7-53/+62
2021-08-10Add SQL_PORT configurationjhh7-53/+62
Issue-ID: POLICY-3533 Change-Id: I03fc41332d4739d5a4d6cee5f86ba823714336d6 Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
2021-08-09use url resource for docker-tag -- drools-pdpTaka Cho1-18/+4
use groovy url resource from docker repo to identify the tag for docker Issue-ID: POLICY-3378 Change-Id: I1400967096a5b61b89c6298aee7377e2eeaaa47d Signed-off-by: Taka Cho <takamune.cho@att.com>
2021-08-09Merge "Use lombok in drools-pdp #4"Ram Krishna Verma9-98/+48
2021-08-09Merge "Use lombok in drools-pdp #3"Ram Krishna Verma29-492/+176
2021-08-09Merge "Use lombok in drools-pdp #2"Ram Krishna Verma26-335/+141
2021-08-06Use slf4j Marker from common repoTaka Cho18-182/+71
using slf4j Marker from common repo Issue-ID: POLICY-3087 Change-Id: Iefbd6fa9ab2dfa6388508cb6ffd6cf1358b45ccc Signed-off-by: Taka Cho <takamune.cho@att.com>
2021-08-06Use lombok in drools-pdp #4Jim Hahn9-98/+48
Updated thru feature-eelf. Issue-ID: POLICY-3397 Change-Id: Iad12f5f921374775fb5436cb7d13746256cd6d81 Signed-off-by: Jim Hahn <jrh3@att.com>
2021-08-05Use lombok in drools-pdp #3Jim Hahn29-492/+176
Updated feature-healthcheck thru feature-pooling-dmaap. Issue-ID: POLICY-3397 Change-Id: Ia7b00a521cdb82ed0eb22bdaed03d02665fbbff1 Signed-off-by: Jim Hahn <jrh3@att.com>
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