aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
AgeCommit message (Collapse)AuthorFilesLines
2019-03-01Add elasticsearch with searchguard DockerfileLee, Tian (tl5884)73-9329/+0
Add Dockerfile that produces an image of ElasticSearch with SearchGuard plugin pre-installed, and restructure the Maven project to build both the old search-data-service Dockerfile and the new elasticsearch-sg Dockerfile. Change-Id: Iff7cb79e3c09da78b6233422f40cb03eeef5bfdb Issue-ID: AAI-2203 Signed-off-by: Lee, Tian (tl5884) <TianL@amdocs.com>
2019-02-25Search service configurable index settingssblimkie3-9/+96
When deploying the search service, an optional settings-confg.json file can be used to define the index settings if the deployer does not want to use the default settings. Change-Id: I67902684ac4a432b5a010a7177e9980a0c7592d1 Issue-ID: AAI-2191 Signed-off-by: sblimkie <steven.blimkie@amdocs.com>
2019-02-04Optionally disable client authenticationSerban Popescu2-1/+7
based on an env. variable, client authentication can be disabled Change-Id: I6d787644ef1439b8e88dcc3dec7f5181b11b7f11 Issue-ID: AAI-2132 Signed-off-by: Serban Popescu <serban.popescu@amdocs.com>
2019-01-21support reading passwords from environmentBansal, Nitin (nb121v)1-2/+2
support reading passwords from environment Change-Id: I713bddf0e6fa2e8c90de7023c8ca13138fcc1fbe Issue-ID: AAI-2083 Signed-off-by: Bansal, Nitin (nb121v) <nitin.bansal@amdocs.com>
2019-01-16support reading passwords from environmentBansal, Nitin (nb121v)1-2/+10
support reading cert passwords from environment Change-Id: I8b924b78450c84cd63ef796c2f606084e64bcfdc Issue-ID: AAI-2083 Signed-off-by: Bansal, Nitin (nb121v) <nitin.bansal@amdocs.com>
2019-01-04set server truststore params optionally in searchDaniel Silverthorn2-1/+19
Change-Id: Ic9359d0eea2a0c57a7b17397a8f681aba765f893 Issue-ID: AAI-2046 Signed-off-by: Daniel Silverthorn <daniel.silverthorn@amdocs.com>
2018-12-14Add option to bypass user authorizationPopescu, Serban3-2/+27
the es.auth.authorization.enabled property, if set to false, will bypass user authorization Issue-ID: AAI-2007 Change-Id: I46e3e087ee13eacdf977bbdc9c439045b0072a33 Signed-off-by: Serban Popescu <serban.popescu@amdocs.com>
2018-11-28support clear text/jetty obfuscated passwordBansal, Nitin (nb121v)2-1/+10
support clear text/jetty obfuscated password for talking to secure Elastic search Change-Id: I864320f3884da1171b7c7980edbe8858197afc97 Issue-ID: AAI-1971 Signed-off-by: Bansal, Nitin (nb121v) <nitin.bansal@amdocs.com>
2018-11-07fix bulk api to support secure rest calls to an ESrenealr1-1/+6
implement client authorization when performing bulk request to a secure ES update content type support by ES Issue-ID: AAI-1883 Change-Id: I72bd3af0af4680b55fd74c6e7fbd77990fa0ee5b Signed-off-by: renealr <reneal.rogers@amdocs.com>
2018-09-26Fix file formatting issues1.3.1mark.j.leonard12-45/+42
Remove UTF-8 BOMs from the Java files and reformat License headers where necessary (to conform with the License.txt content). Change-Id: I74219db814ffc9b51dbf7273cbfde5847ff50ad3 Issue-ID: AAI-1650 Signed-off-by: mark.j.leonard <mark.j.leonard@gmail.com>
2018-09-26Implement client authentication to ElasticSearchmark.j.leonard3-6/+285
Add configuration to the existing Elastic Search properties to allow Basic Authentication and/or TLS (SSL) connectivity using HTTPS. The new configuration is optional and this commit is intended to be backwards compatible with existing deployments. Change-Id: I19ec3da9ff810c3f6eabd6f5faf71adde182c861 Issue-ID: AAI-1650 Signed-off-by: mark.j.leonard <mark.j.leonard@gmail.com>
2018-09-26Fix minor code smellsmark.j.leonard20-488/+430
Further simple changes to remove Sonar code smells Issue-ID: AAI-1650 Change-Id: Ibae60a3aa1e8c7e85b3442d3e267eb6c1a74efbc Signed-off-by: mark.j.leonard <mark.j.leonard@gmail.com>
2018-09-21Fix simple Sonar Lint issuesmark.j.leonard17-574/+479
Address all the trivial Sonar issues (ignoring some duplicated strings) Change-Id: I5a15d42e6ae316f4c5b1dea5f42f604cec8c82a8 Issue-ID: AAI-1650 Signed-off-by: mark.j.leonard <mark.j.leonard@gmail.com>
2018-09-21Format Java code to ONAP standardmark.j.leonard58-4559/+4367
Use the Eclipse formatter to automatically format the code to adhere to the defined standards. Change-Id: I42a8c90c5b272facc4cc2a0c85233061ed64ba3f Issue-ID: AAI-1650 Signed-off-by: mark.j.leonard <mark.j.leonard@gmail.com>
2018-09-21Organise imports to ONAP Java standardsmark.j.leonard25-93/+66
Fix all import ordering. Change-Id: Ia0a0ef64eab7b1560c7dd1d54a1a9e1adee67a5e Issue-ID: AAI-1650 Signed-off-by: mark.j.leonard <mark.j.leonard@gmail.com>
2018-09-21Use a URI builder to create URLsmark.j.leonard2-234/+109
Also refactor the connection code to remove duplicated Exception handling. Change-Id: Ica77b6ba3d8939e89b763a33a6b940d11b066b85 Issue-ID: AAI-1650 Signed-off-by: mark.j.leonard <mark.j.leonard@gmail.com>
2018-09-21Reorder HTTP Controller methodsmark.j.leonard1-343/+342
Put public methods before private methods, following the standard Java conventions. Issue-ID: AAI-1650 Change-Id: I527b1e73f92a28cade0a2e792dcee841fafeef43 Signed-off-by: mark.j.leonard <mark.j.leonard@gmail.com>
2018-09-20Use Builder Pattern to create Operation Resultsmark.j.leonard2-96/+130
Simplify the creation of OperationResult objects using a Builder to encapsulate the common behaviours. Change-Id: Ifacd75f0a808338d1ab4735a79009de7a2cb5351 Issue-ID: AAI-1650 Signed-off-by: mark.j.leonard <mark.j.leonard@gmail.com>
2018-09-20Reduce code duplication in the HTTP Controllermark.j.leonard1-157/+86
Refactor repeated code snippets into helper methods, in order to reduce cognitive complexity. Change-Id: Ic04ce219b67017075d2b0b7c6e6bc7250ccff926 Issue-ID: AAI-1650 Signed-off-by: mark.j.leonard <mark.j.leonard@gmail.com>
2018-09-20Replace duplicated String literals with Constantsmark.j.leonard1-70/+81
Refactor to address Sonar violations for duplicated literal strings in the HTTP Controller class. Change-Id: I54cc33851df0269a0af917fd7b38ee0c14fda935 Issue-ID: AAI-1650 Signed-off-by: mark.j.leonard <mark.j.leonard@gmail.com>
2018-09-20Replace 2xx result codes with Java constantsmark.j.leonard1-61/+49
Use standard Java Status Response enums and constants instead of hard-coding magic values in the HTTP Controller. Change-Id: Ic509e2a85808dc3e0faab1b455a2e7851cd86408 Issue-ID: AAI-1650 Signed-off-by: mark.j.leonard <mark.j.leonard@gmail.com>
2018-09-19Specify Content-Type in all HTTP requestsmark.j.leonard1-6/+1
Explicitly specify all HTTP payload content as JSON, for compatibility with Elasticsearch 6.x Change-Id: Ibd6ad7bfd627a5c1bdfb04a950472e4cedfd790d Issue-ID: AAI-1650 Signed-off-by: mark.j.leonard <mark.j.leonard@gmail.com>
2018-09-19Reformat HTTP Controller code to ONAP standardsmark.j.leonard1-1471/+1329
Use the Eclipse formatter to re-organise the HTTP Controller class, prior to introducing HTTPS support. Change-Id: I41015c16bc9b4e84ea0b267a262e89007ef329e6 Issue-ID: AAI-1650 Signed-off-by: mark.j.leonard <mark.j.leonard@gmail.com>
2018-09-14Fix to not remove whitespaces in the payload to ESEdwin Lawrance2-25/+39
Change-Id: I3547e79ff27220a49539d9cfdf48ac534f155f10 Issue-ID: AAI-1596 Signed-off-by: Edwin Lawrance <Edwin.Lawrance@amdocs.com>
2018-08-13Fixing the docker jenkins jobArul.Nambi1-1/+1
Issue-ID: AAI-1449 Change-Id: I887151b393ad046ef013463af9d90c3504866a52 Signed-off-by: Arul.Nambi <arul.nambi@amdocs.com>
2018-08-02Merge "Updating Search service to be ES 6.1.2 compliant"James Forsyth3-7/+129
2018-08-01Updating Search service to be ES 6.1.2 compliantEdwin Lawrance3-7/+129
Payload to Elastic Search is translated to comply ES6.1.2 PUT and POST calls now have content-type header Added functionality for dynamic templates Change-Id: I2a44a8a9999ec01a3bad1fb6999fe35bb6ef70d1 Issue-ID: AAI-1376 Signed-off-by: Edwin Lawrance <Edwin.Lawrance@amdocs.com>
2018-07-16Fix variable declarationBogumil Zebek1-1/+1
Change-Id: I19b34476fd1e196857f60cb9a3b780821593ccf8 Issue-ID: AAI-1383 Signed-off-by: Bogumil Zebek <bogumil.zebek@nokia.com>
2018-06-13remove the creation of aaiadmin userRogers, Reneal(rr267j)1-9/+0
Remove the creation of the aaiadmin user in the docker container Issue-ID: AAI-1226 Change-Id: I6841b2aab5102cb8968eec74219f3d00dc93f88b Signed-off-by: renealr <reneal.rogers@amdocs.com>
2018-06-12fix ping communication with search to datarouterrenealr8-88/+34
Add the fix needed in order for the search ping to communicate with data router as well as add some fixes to the start script and dockerfile Issue-ID: AAI-1224 Change-Id: I74ab3b8def4b85513401b7329d33dc6a3bc518bc Signed-off-by: renealr <reneal.rogers@amdocs.com>
2018-05-23Dynamically determine image architectureMohammed Naser1-1/+1
The image architecture is currently hardcoded, this patch removes that hardcoded value to allow for ARM64 builds to go through. Change-Id: I282e75b089147cab5006db869acca95954f3c528 Issue-ID: CIMAN-154 Signed-off-by: Mohammed Naser <mnaser@vexxhost.com>
2018-05-09Remove backport dependencymkorzeni4-4/+6
since we already have built-in in JDK8 Change-Id: I73ccb1c084405c45eabd50b0a58278b1037ac5f8 Issue-ID: AAI-1130 Signed-off-by: mkorzeni <mateusz.korzeniowski@nokia.com>
2018-04-16Add cosumes and produces type where necessaryShwetank Dave1-5/+4
Change-Id: I4e4a458a65dc870218de33e19ca76f060b436739 Issue-ID: AAI-598 Signed-off-by: Shwetank Dave <shwetank.dave@amdocs.com>
2018-04-06Rename Path search-db to search-data-service.Shwetank Dave2-40/+42
Fix mixtakes in processGet Remove requestBody from where it's not needed. Remove elastic-search dependency Issue-ID: AAI-598 Change-Id: Ib9693297230daba43ed604013c9cf4d32355da92 Signed-off-by: Shwetank Dave <shwetank.dave@amdocs.com>
2018-04-04[AAI-804] Updating dockerfile and start script.Shwetank Dave2-1/+8
Issue-ID: AAI-804 Change-Id: I45c9beeca2d6e27d8aec787e76e3bb50780bead9 Signed-off-by: Shwetank Dave <shwetank.dave@amdocs.com>
2018-04-03[AAI-804] Updating files to fix search service.Shwetank Dave3-53/+33
Issue-ID: AAI-804 Change-Id: Ie50f821cd235ccd5c627c11294da4b29bf29fc16 Signed-off-by: Shwetank Dave <shwetank.dave@amdocs.com>
2018-03-29Removing AJSC and moving to SpringBootShwetank Dave52-1387/+1053
[AAI-804] Deleting AJSC files. [AAI-804] Adding Spring Boot Dependencies Issue-ID: AAI-804 Change-Id: Ibda01496d56cc4613f6d2be3b8737d823cee342a Signed-off-by: Shwetank Dave <shwetank.dave@amdocs.com>
2018-03-19add endpoint to query suggestion via ESrenealr8-449/+755
Added logic to ensure that search data service is able to handle suggests type request Issue-ID: AAI-896 Change-Id: I11b3e8dadc5f7023017f01055c24e9c014813eb5 Signed-off-by: renealr <reneal.rogers@amdocs.com>
2018-03-16Adding pass through shema creationrv871f4-5/+133
Issue-ID: AAI-888 Change-Id: Ifc094758682b39a5f2c5607bccd418de6e36d841 Signed-off-by: rv871f <richard.vondadelszen@amdocs.com>
2018-03-13Update license date and textsblimkie57-228/+114
Update license date and disable license plugin Change-Id: I61390789684bf93c29b5d230bc189fe8b7411efb Issue-ID: AAI-870 Signed-off-by: sblimkie <steven.blimkie@amdocs.com>
2017-09-21Renaming openecomp to onapArul.Nambi10-30/+30
Issue-ID: AAI-208 Change-Id: I3b46b263b4570054e77b2fdccfc2f51406e9e9ce Signed-off-by: Arul.Nambi <arul.nambi@amdocs.com>
2017-09-14Renaming openecomp to onapArul.Nambi61-125/+132
Issue-ID: AAI-208 Change-Id: I0f634abc5501adb5fc29523594af8d1f1356adb5 Signed-off-by: Arul.Nambi <arul.nambi@amdocs.com>
2017-07-31Updating License and trademarkARUL NAMBI57-399/+285
Issue-ID: AAI-90 Change-Id: I5d38bbca2c614db04bcb24326fd0fcabb4d98317 Signed-off-by: ARUL NAMBI <arul.nambi@amdocs.com>
2017-07-20Reject doc create requests if index does not existFraboni, Gino (gf403a)3-10/+78
[AAI-62] Search Data Service should not implicitly create indexes on document write... Search Data Service will now explicitly block a document create or update if the associated index does not already exist in the document store. Change-Id: Ie96364da754aa6a2cb554b06f62a7a647181bcce Signed-off-by: gfraboni <gino.fraboni@amdocs.com>
2017-06-09Configurable max heap size and PID fixabatos2-2/+3
Change-Id: I9db736bd124b9ffba96a7aa307e82f1b1f74de30 Signed-off-by: abatos <adrian.batos-parac@amdocs.com>
2017-05-16Change to log level of the ES DAO shutdown logsgfraboni1-5/+5
Change-Id: I1a3c0fabd0ca4f745812306d35c3648dfe8507d5 Signed-off-by: gfraboni <gino.fraboni@amdocs.com>
2017-05-09Initial search service commitDaniel Silverthorn92-0/+9567
Changing common logging dep Change-Id: I454697a9df0ee63f43d7b7d2a3818fe2d9b7bcf2 Signed-off-by: Daniel Silverthorn <daniel.silverthorn@amdocs.com>