summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2018-04-18Added lock for quorum registrationKiran Kamineni3-6/+10
Added lock for quorum registration Removed debug statement Issue-ID: AAF-92 Change-Id: Ib2de5ae7ed31b93b6853c78a70305a401ba3c014 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-04-17Fixing CSIT testKiran Kamineni3-2/+3
CSIT test for sms broke because of quorum client code changes Issue-ID: AAF-251 Change-Id: I99d3d5fdcd800fbf1d4557488d03a65a0e891dfa Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-04-17Enabling container build for quorum clientKiran Kamineni1-1/+2
Enabling the building of docker images for the quorum client Issue-ID: AAF-95 Change-Id: I5800e0972cbebf38d560d975e4bcb0e7939deeeb Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-04-13Adding secure init code for backendKiran Kamineni17-281/+434
Changes to allow quorum client to SMS communication Introducing a registration api for quorum clients to get their shard piece in PGP encrypted form from SMS Tested with 3 quorum clients. This is now ready for review. Issue-ID: AAF-168 Change-Id: I7a6ade792c1e5ebcf00cbc8c4a1f1942c006e7c7 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-04-11Changing client auth method to verify if givenKiran Kamineni1-1/+2
Changing client auth to verify if given to allow client connections where client does not have a certificate Issue-ID: AAF-93 Change-Id: Ifd8f59108536889bacb0fe1477dc1e1c8a0ff4dc Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-04-11Add maven build structureManjunath Ranganathaiah11-12/+71
Restructure the directories and files to accommodate maven build. This will build, test and generate jar file for clients to use. Adds a target in the top level makefile. Issue-ID: AAF-183 Change-Id: I8c27396248d83070befe51f2c6e01aed7dea9202 Signed-off-by: Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com>
2018-04-11Refactoring some code and adding disable_tls flagKiran Kamineni3-27/+49
Refactored some code and adding disable_tls flag This is needed for now to enable some end to end testing of quorum abilities and will be enabled once certificate support is added to ONAP Also updated test script to take port as argument Issue-ID: AAF-95 Change-Id: I4124bbfd22185a83b3c671b8a0499bfb3bde865d Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-04-10Storing UUID that is created for secret domainKiran Kamineni1-30/+98
The UUID that is generated for secret domains should be stored securely in Vault. These can be used for future authorized access enforcement. Issue-ID: AAF-222 Change-Id: I141ceb16b3c4a258cc5f6088585a9944093277af Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-04-05renaming folder to match go executableKiran Kamineni7-11/+13
Renaming folder from smsquorum to quorumclient Added quorumclient build as part of the makefile Will upload another patch in ci-management that will call the new parent makefile Issue-ID: AAF-213 Change-Id: Ib85ac6b9dc454fc1447cf2221a555d7a7552efa5 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-04-04moving the docker build portionKiran Kamineni2-0/+0
Moving the docker build scripts too Issue-ID: AAF-213 Change-Id: I97c1de10d198c6afc97c763c54d862a10b5b7f92 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-04-05Moving quorum and sms into common GOPATHKiran Kamineni3-1/+1
Moving quorum code and sms service code into common GOPATH for easier building and sharing of common modules between them. Issue-ID: AAF-213 Change-Id: I88a8bcc0a94960163766718a2eef6bf34fd2c1e3 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-04-05Adding a new parent MakefileKiran Kamineni2-1/+6
This patch adds a new parent Makefile that will be called by the jenkins job once the smsquorum code also comes under this GOPATH Issue-ID: AAF-213 Change-Id: I50d5f72b91455c501505130fbbf41ba245f1800a Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-04-04Changing docker image build to use filenameKiran Kamineni5-114/+114
Changing the docker image build process to use a specified file instead of default Dockerfile Also, fixing the line endings in .sh file to use Unix line endings. Issue-ID: AAF-213 Change-Id: I715a8d86a3bd2433f92d42e216a1f52f56cebf9b Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-04-04Added Makefile for quorumclientgiri2-1/+26
Added Makefile for quorumclient Change-Id: Iee3912a8a675c7eab2514fc9257ae97dfc8b7157 Issue-ID: AAF-205 Signed-off-by: giri <hg0071052@techmahindra.com>
2018-04-03Add test case for delete domainManjunath Ranganathaiah4-13/+71
Change-Id: I1ae8372d024ad5b718d369ccf9c82e3ae7d0bdd5 Issue-ID: AAF-183 Signed-off-by: Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com>
2018-04-03Adding Docker Support for Quorum clientgiri2-0/+67
Adding Docker support for the, this is still work in progress Change-Id: Iecbdbe13ccfa79c542f8af619e882d87033512fd Issue-ID: AAF-201 Signed-off-by: giri <hg0071052@techmahindra.com>
2018-04-02Adding alternative method to set backend URLKiran Kamineni6-9/+20
SMS gets the backend address from ENV variable if nothing is provided in the config.json file Issue-ID: AAF-209 Change-Id: I7791ec6db3627092f9161088ed6242ed71368293 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-03-28Fix build failure for patch 39785Kiran Kamineni1-1/+1
Patch 39785 caused a unit test failure Fixing that here Issue-ID: AAF-202 Change-Id: I41dd2883f353e266a48033584c7b83a3670fcc62 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-03-29Delete secret returns with 204Kiran Kamineni1-0/+2
Delete secret should return 204 similar to Delete Domain Issue-ID: AAF-202 Change-Id: I63789f651c03aa19179c6ba8f271668d914181fd Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-03-28Minor changes to filesKiran Kamineni3-5/+5
Minor changes to the repo Updating the .gitignore file Issue-ID: AAF-92 Change-Id: I43b054709d0067f4d719c9176a1fdd50d1621a48 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-03-27Adding a disable tls flag to smsKiran Kamineni3-12/+22
Adding a disable_tls flag to allow running the service in tests and other non production environments. Also, CSIT tests may not support TLS tests Issue-ID: AAF-189 Change-Id: I936b3b887104f2b041a8c73909951a25494eebeb Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-03-27Test framework for sms client code.Manjunath Ranganathaiah5-2/+210
Adds a test case for create domain interface Change-Id: I198d4e91845753ca359330c367180bd3a3732f30 Issue-ID: AAF-183 Signed-off-by: Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com>
2018-03-23Adding system test coverage supportKiran Kamineni6-13/+1284
Added support for running system level code coverage tasks Updated sms.go to allow graceful shutdown when it gets a SIGINT. Useful for gather coverage information. Issue-ID: AAF-192 Change-Id: Ife4a485e7926fd59948bf90fac4b2d4ea9de0332 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-03-23Updating with binary compile in the bash scriptKiran Kamineni3-11/+15
Adding build commands within the bash script This will then be called in the nightly docker push Issue-ID: AAF-100 Change-Id: Iab29de26c7f9feac1b3f76666f1674ad7a267da8 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-03-21Adding PGP decrypt to auth packageKiran Kamineni1-0/+36
Adding PGP decrypt function to auth. This can be used by quorum client in its code for decryption Issue-ID: AAF-165 Change-Id: I6d236c3164ccb93c11527ac8c2e725987236f9f0 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-03-21Adding bash script to call docker buildKiran Kamineni4-27/+80
Adding the necessary bash scripts to be called for docker build These will be called by the jenkins job for the nightly docker build Issue-ID: AAF-100 Change-Id: Iae0c095d44849ae65583247fc7026f313d1ee0b7 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-03-20Making the build completely static for dockerKiran Kamineni1-1/+4
Making the build static is good for deployment on a container. There is no need to worry about installing dependencies and so on. Issue-ID: AAF-182 Change-Id: I6bb34ccae423886d9154b2a713b81911f739e9ff Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-03-16Return only values to the caller of getSecretManjunath Ranganathaiah2-3/+26
Use returned values of map for datatype variables. Change-Id: I3829eab81e5e573505efff68970bd3495b7a92f0 Issue-ID: AAF-98 Signed-off-by: Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com>
2018-03-15Update listsecret return to send a JSON objectKiran Kamineni4-25/+54
Instead of sending JSONArray, retrun JSON object for consistency and client processing Issue-ID: AAF-172 Change-Id: I17d2e2c2865a817c8016987f998c87259413f306 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-03-14Updated with variety of values in client exampleKiran Kamineni1-12/+18
Added a few different values in map that are of different datatypes Sorted the import statements and grouped by function Issue-ID: AAF-98 Change-Id: Ibe9f3188b1373c10275ea4aa4817eca789680b91 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-03-14Using embedded lock for vault structKiran Kamineni1-3/+3
Using an embedded lock instead of an explicit variable Issue-ID: AAF-92 Change-Id: Ia7bd43a40ec50664b042afa9e46091f14122ba5c Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-03-14Initial structure and java code for sms client.Manjunath Ranganathaiah4-0/+492
Change-Id: I245302bc125515269be948bb8b6874a7d3cb5367 Issue-ID: AAF-98 Signed-off-by: Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com>
2018-03-13Fixing the logger initialization to sms.goKiran Kamineni2-8/+13
Using golang init is creating log files in various folders when tests are run. Moved to Init which is called my server initialization. Issue-ID: AAF-148 Change-Id: Ia05fa1ed1841fd6a98852329ab031372f6489ad6 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-03-09Adding PGP key creation capability for vault initKiran Kamineni2-0/+84
Adding a couple of functions to support PGP key generation and using said keys to initialise vault. Issue-ID: AAF-165 Change-Id: Ic65f8157f125005d544bbf8dede184bd282a5357 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-03-08Adding handler unit testsKiran Kamineni2-4/+153
Adding updated unit tests for handler.go They needed to be fleshed out based on the handler implementation Issue-ID: AAF-131 Change-Id: Id161faef7500947d858e99b9648f951bc1e54e09 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-03-08Adding url configuration for endpoint testsKiran Kamineni3-18/+44
URL is now a command line parameter for endpoint tests Issue-ID: AAF-161 Change-Id: I6f740ad5cbbd3c73ee7e9a4556acef360a1aefa5 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-03-08Dockerfile for SMS containerizationvamshi.nemalikonda1-0/+33
Building Dockerfile for SMS containerization - implemented review comments Issue-ID: AAF-147 Change-Id: I85030f461d6242d0bd4358dce7ac3b6d86edfd22 Signed-off-by: vamshi.nemalikonda <vn00480215@techmahindra.com>
2018-03-08Updated the URL with sms service urlgiri2-8/+38
Updated Quorum client with correct url of sms service and tls configuration,urls with https Change-Id: Ifb957497426b5a1fa085bcc7f300e09de34dade4 Issue-ID: AAF-130 Signed-off-by: giri <hg0071052@techmahindra.com>
2018-03-07Adding endpoint test scriptsKiran Kamineni5-0/+90
Adding endpoint tests that use curl and some dummy data to exercise the various endpoints that are deployed Issue-ID: AAF-161 Change-Id: I522216ac790db10a68f4d2af8e845d7526b9fa48 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-03-07Changing json encoding of responseKiran Kamineni1-4/+15
Updating the json encoding to use Marshal This is to allow us to set the right return Header type and also return the right status codes Issue-ID: AAF-160 Change-Id: Ib260e5b8306b16069c57f6b83efcf401747ff2b6 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-03-06Log errors to log fileKiran Kamineni2-13/+55
Currently errors are being written out to the screen Log them to a log file with the appropriate prefix instead This uses the sms/log framework for logging Issue-ID: AAF-159 Change-Id: Ib4f4dbc87fa4b1ee92ed1055de94f8324bd1a192 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-03-05Renamed config file to template fileKiran Kamineni1-0/+0
Renamed config file to template file Template file needs to be renamed on server side with local customizations before server start Issue-ID: AAF-157 Change-Id: I8a6004774fc8fabaa96d130f3d17c38f74453b11 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-03-05Adding unseal backend supportKiran Kamineni4-15/+40
Unseal backend support is now added. The quorum client will use this api to unseal/initialize the backend storage service Issue-ID: AAF-156 Change-Id: Ic2726e9a5ca351912a16c3ec911d03e400233277 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-03-06Init role does not depend on vault stateKiran Kamineni5-48/+26
Role initialization should not depend on vault state SMS start is independent of vault state Any calls to SMS will fail since backend is not active yet Issue-ID: AAF-155 Change-Id: I810eb145b4eab4717dede12e79880aced08caaa2 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-03-05Updating api documentationKiran Kamineni3-56/+816
Updating API documentation to add login, status and unseal end points Issue-ID: AAF-121 Change-Id: I073d970aa779353a34236e61692ca67f380084b6 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-03-01Adding logging frameworkKiran Kamineni3-0/+68
Adding a framework for logging We will add other logging integrations into this framework Issue-ID: AAF-148 Change-Id: Ia16d1ddf4c24a5e2f957c429aff23970d081ccc4 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-02-28Minor code cleanupKiran Kamineni1-21/+9
Using constant names instead of numbers Removed an unused handler Issue-ID: AAF-99 Change-Id: I16101576daee140acd40c3db906dd22289d71188 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-02-27Added Quorum client with vault config filegiri3-0/+84
Quorum client is used to check the status of the vault and unseal if found sealed Change-Id: I113fd64ee8a3ed97b2c445f9a27d7352dc86aaaf Issue-ID: AAF-130 Signed-off-by: giri <hg0071052@techmahindra.com>
2018-02-27Adding deletedomain implementationKiran Kamineni2-1/+17
Adding deletedomain implementation in vault.go This is a silent command and will not return any error if the domain to be deleted does not exist Issue-ID: AAF-144 Change-Id: Iff97a1a5be7415cd0c7ebb2894f16348718e2839 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-02-27Fixing the usage of pointer in configKiran Kamineni2-2/+3
Initializing the pointer before using it in JSON decode. This was not erroring out before, but this is the right usage. Issue-ID: AAF-145 Change-Id: I9a4f8adbe946e896112a8fbef2a84b790578f780 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>