summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2018-06-06Move version.properties as its not configurablev2.0.02.0.0-ONAPbeijing2.0.0-ONAPKiran Kamineni2-35/+35
Version.properties path is not configurable in jenkins global templates. Therefore moving it to root of repo. Issue-ID: AAF-330 Change-Id: If0106b59e04b01d0d571878b74399c242041ff91 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-06-06Add version.properties for beijing releaseKiran Kamineni2-0/+26
Add version.properties file for beijing release Issue-ID: AAF-330 Change-Id: Idddddfb2cb38975874698e1604c64f3a34307975 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-06-05Propagate error upwardKiran Kamineni3-0/+3
Build was not catching error Now throwing the error up the chain Issue-ID: AAF-346 Change-Id: I5a1729097f573d0169c4485075183d40c8d31db2 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-06-05Update certificates with latest intermediate CAKiran Kamineni3-68/+68
Intermediate CA had expired. Using the updated certificate with the new intermediate CA. Updating lock file to handle go package dependency Issue-ID: AAF-346 Change-Id: I0751011e3e96be326436c0d9799f08d5b55eaa76 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-05-25Add INFO.yaml fileJessica Wagantall1-0/+52
Add INFO.yaml to list: - Project description - Properties - PTL information - Meeting information - Committer information Change-Id: Ia743a9bb2443530ce67e2bbf9a00771e8c30fcf0 Issue-ID: CIMAN-134 Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
2018-05-24Add ONAP truststore and comment example clientKiran Kamineni4-73/+130
Add ONAP truststore with certificate only in jks format Add comments to the client example illustrating various use cases Support error message read from returned error body Issue-ID: AAF-92 Change-Id: I9709005c13d739883621eed09ce34fcb4715f1fd Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-05-23Fix titles in docsKiran Kamineni5-5/+5
Fix titles in docs so that they are sub titles under the main Secret Management Service title. Issue-ID: AAF-185 Change-Id: Ia58b0666726c0b8427d053c0303566712af47401 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-05-23Add release notes and fix docsKiran Kamineni8-812/+457
Add release notes for SMS Fix other docs issues in SMS Issue-ID: AAF-185 Change-Id: Ib3860018229b61942ab8a48cfdafe0b3f21ceed1 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-05-22Update pom.xml to support daily release targetKiran Kamineni1-0/+23
Update pom.xml to support daily sms-client release to nexus repo Issue-ID: AAF-92 Change-Id: I86c94bf3cd1a74ab910d7fa3336d25aac33b618f Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-05-21Adding some comments and small refactoringKiran Kamineni4-15/+35
Added some comments to code Also, refactored some things in the client Issue-ID: AAF-92 Change-Id: I7166f8e47c31725b443662ad28e040d7ff26738d Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-05-16Moving java code to java folderKiran Kamineni16-1/+1
This is to setup the area for clients in other languages used in ONAP. Eg: python Issue-ID: AAF-289 Change-Id: I597492c6ba2be3291d383b98c205cb7725b1a3ac Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-05-15Updating certificates to fix healthcheckKiran Kamineni2-38/+39
Updating certificates to latest with the fixed FQDN name in cert. Previous one had api missing in there. Issue-ID: AAF-288 Change-Id: Ib594acd3ed1a77ddd441a670e7df0cdd05523a2a Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-05-15Adding a docs folder under sms repoKiran Kamineni9-0/+869
WORK IN PROGRESS Adding a docs folder under sms Issue-ID: AAF-185 Change-Id: I5ee3560cfda2100ad5207bb7e98d5cb9472e1325 Signed-off-by: Girish Havaldar <hg0071052@techmahindra.com>
2018-05-15fix for broken unit testsKiran Kamineni3-59/+49
Previous patch did not fix the tests Updating. Issue-ID: AAF-285 Change-Id: Ie0972651e6bdee77cb6563b2c8d9693a6db876d8 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-05-14fixing auth testKiran Kamineni1-2/+7
fixing auth test for auth.go auth is failing unit tests because of updated use of gettlsconfig Issue-ID: AAF-285 Change-Id: I96ec74adcce042aa411d834811881755f00b7ac7 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-05-15Adding updated certs and encryptionKiran Kamineni16-100/+157
Adding new SAN certificates from AAF Adding encrypted storage for certificates Moving certificates to different folder during deployment. certs vs auth Issue-ID: AAF-284 Change-Id: Ic0c3972556b36f773c7a653059eccd077624e4b6 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-05-09Make sure bash is used to execute scriptKiran Kamineni1-0/+1
If the bash header is not used, the script fails to resolve the names for the quorum clients in the for loop. Issue-ID: AAF-280 Change-Id: Ia08d8522b5a5764024a0ed8da32f26e1a7d432af Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-05-03Adding healthcheck endpoint for smsKiran Kamineni3-5/+66
Added a new url endpoint for healthcheck /v1/sms/healthcheck which will run a simple operation on the backend and return OK or error Issue-ID: AAF-263 Change-Id: Idbfaeff50e6a8c36fa25c081a3b1c6169535ea36 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-05-01adding a bash script to launch sms in a vmKiran Kamineni5-0/+146
This is to support vm/baremetal based deployments Issue-ID: AAF-262 Change-Id: Iff3bca737187de5ca49d9ec6b93082344e007d9e Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-04-30Using SNI for service names to support k8sKiran Kamineni2-6/+14
Using SNI in quorum client connection to connect to SMS service via https Issue-ID: AAF-265 Change-Id: I5108e9d734f11a4f74c41a41a2d8cd2f72c62b36 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-04-26Updating files with root ca certificateKiran Kamineni2-2/+5
Previous patch was missing the root ca file. Needed in case clients provide their own cert Issue-ID: AAF-265 Change-Id: I4dcdf6d424e4837aadfc01fc7caba8df93623658 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-04-26Adding cert files to support httpsKiran Kamineni11-33/+176
Adding cert files generated by AAF CA Incorporating them into the docker build as well Issue-ID: AAF-265 Change-Id: I1ee1e031bf058a0325fe2c6fe8eed5e3948d70e7 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-04-26Quorum client creates its data folder before writeKiran Kamineni1-5/+8
Data folder is not guaranteed to exist and therefore needs to be created before writes can be done on it. Issue-ID: AAF-261 Change-Id: I4671f0dac34a04c80639386719639b8c9472a9d3 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-04-26Updating version for docker images to 2.0.0Kiran Kamineni4-6/+4
Docker images are getting loaded with version 1.1.0 They need to be 2.0.0 Issue-ID: AAF-258 Change-Id: I5643ccdaf5eae1e7101e37dbbe858ae346ff0e30 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-04-24Add more test cases for sms-clientManjunath Ranganathaiah6-1/+220
This patch adds unit test cases for: Storing and deleting secrets. Listing the secret names. Getting the secret details. Change-Id: Ida8d08202305be818926993d676c778605e130f3 Issue-ID: AAF-183 Signed-off-by: Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com>
2018-04-20Refactor logger and use it everywhereKiran Kamineni11-476/+809
Refactored the logger to print the right line number. This is done by using the runtime.caller function within the logger.output function Issue-ID: AAF-257 Change-Id: Ie26de43ca74c71f382d3b5f93ebd4eaf6d51e2b4 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-04-19Adding unit tests for Vault backendKiran Kamineni6-36/+783
These unit tests create a mock vault server and run the commands through it to test the core functionality. Issue-ID: AAF-118 Change-Id: Iab658cc60590b98c1524ccd5d57986e1fe2594c9 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
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>