summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2018-10-30Update version to 3.0.1 for release3.0.13.0.0-ONAPcasablancaKiran Kamineni6-8/+8
Update image version to 3.0.1 for release tagging. Issue-ID: AAF-390 Change-Id: If675f209f852fd783f16feb40b92c54e1f160c91 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-10-30Add a simple Retry to preloadKiran Kamineni1-4/+25
We are seeing in some environments that preload gets a connection refused error. Preload should retry before giving up in such cases. Currently default retry is 5 times after a wait of 5 secs each. Issue-ID: AAF-596 Change-Id: I06e1869374116d777a5dae3fccc72a35e793c6c9 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-10-25Move to go mod from depKiran Kamineni14-724/+365
Go 1.11 introduces a native functionality for package management. This replaces dep which is the tool we were using before. This patch switches SMS to use go mod instead of dep for package management. P2: Add GO111MODULE=on to the makefile Issue-ID: AAF-404 Change-Id: I462d210fbbe71bff1310a50993410ebc7d8f6fa8 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-10-18Update version to 3 for CasablancaKiran Kamineni2-2/+2
Update versions for java client to 3 for Casablanca Issue-ID: AAF-575 Change-Id: Iacb9e543509ad378b4cd50104b08039e0e4ad599 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-10-18Return a more helpful message for existing domainKiran Kamineni1-0/+4
Return a more helpful message in case you are creating a domain where it already exists. The client's behavior can be tailored based on the returned message in this case. Issue-ID: AAF-573 Change-Id: I9fdebe8f136ba09e04576214b37a76213a4ad529 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-10-17Upload secrets even when domain already existsKiran Kamineni1-0/+4
Upload secrets even when domain was created before Any secrets with same name are overwritten with new values and new secrets are added to the domain Provides capability to add to existing domains via the commandline Issue-ID: AAF-574 Change-Id: I77a842d8f16cf224b04c328ef2825ed7ea7deab1 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-10-16SMS healthcheck should unmount domainKiran Kamineni1-2/+2
SMS healthcheck should unmount domain using the domain name instead of UUID Issue-ID: AAF-570 Change-Id: I43fb881e047bf840e698b7f8e317125abb421a7b Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-10-08Add readiness check into the cmd line3.0.0Kiran Kamineni1-3/+69
Preload is not checking if SMS is ready or not before issuing the upload commands. This patch fixes that behavior. Issue-ID: AAF-545 Change-Id: I485aeab4f797cacce1036cd6e24910c65fa4eb69 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-10-08Fix bug in directory read with json filesKiran Kamineni1-5/+11
The cmdline tool to preload json files is reading from CWD instead of using the provided commandline dir. Issue-ID: AAF-544 Change-Id: I8af23f0556ff678c33223e6f6acac402a39dd662 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-10-05Add preload cmdline tool to docker containerKiran Kamineni4-13/+10
Add the preload tool developed in patch 69786 to sms docker container. It will be used from there in the kubernetes configuration. Issue-ID: AAF-532 Change-Id: I7ca1d037514da0d56a6c47d6e0c6b845d2fd9a5e Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-10-04Add preload commandline app to load secretsKiran Kamineni5-0/+370
Add a preload golang app that reads configuration files and loads the domains and corresponding secrets to SMS. The tool can configured via command line options. P2: Add support for domains as well as domain in JSON P3: Add sampleformat.json Issue-ID: AAF-532 Change-Id: If3f880b8ce61a282dc015cac7df723453b91f114 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-09-20Update coverage report for SMSKiran Kamineni1-109/+205
Update the coverage.html for SMS. The onap wiki already has the updated coverage numbers Issue-ID: AAF-512 Change-Id: Ibdd28553a59781fcc91ef3d7176b23fc5c71de98 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-09-18Update client to reflect server changesKiran Kamineni2-21/+21
Update client to reflect name based URL changes in server Issue-ID: AAF-494 Change-Id: I320e8f539b50a0666e12588bf1c1cbc9e54deb52 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-09-17Revert change to UUID and go back to domain namesKiran Kamineni3-119/+41
UUID based urls are pain points for clients as per feedback Reverting to using known domain names Issue-ID: AAF-502 Change-Id: If3d5861ad8cc40adf84d41cd90c90fcde60446ab Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-09-14Bumped the version of onapsmsclientDileep Ranganathan1-1/+1
Bumped the version of onapsmsclient to 0.0.3 Change-Id: I18ac598b1ea48ad5159ebe678bd6532778afe9d5 Issue-ID: AAF-438 Signed-off-by: Dileep Ranganathan <dileep.ranganathan@intel.com>
2018-09-13Fix python client to handle UUIDKiran Kamineni1-24/+26
Python client does not support UUID based query right now. This patch addresses that issue Issue-ID: AAF-494 Change-Id: Ied45ba6b593a68b7570f76fb9fdbb9173a005b72 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-09-13Fix service name in start scriptKiran Kamineni1-1/+1
The sms.sh startup script for VMs uses a different name vs the real service name to connect to the host bridge. Issue-ID: AAF-489 Change-Id: I76a3d0bd249ca6044481f2e6f0375ec83e3b02d5 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-09-12Add UUID for operations instead of domainNameKiran Kamineni4-53/+246
UUID will be used by other micro service to operate on their respective domains. Issue-ID: AAF-439 Change-Id: Icc32fa48da7be4b79e570f2b7da5453287013bcc Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-09-12Added python3 support for sms clientDileep Ranganathan2-3/+9
Added python3 support for sms client Change-Id: I49dfa4de5b1c4aed07dd0ef8e85fcf1d448bfc92 Issue-ID: AAF-438 Signed-off-by: Dileep Ranganathan <dileep.ranganathan@intel.com>
2018-09-10Renamed package name to onapsmsclientDileep Ranganathan5-7/+11
Renamed onap-sms-client to onapsmsclient Change-Id: Ia3fad5d4558b51cf848e28b267fbae537320d183 Issue-ID: AAF-438 Signed-off-by: Dileep Ranganathan <dileep.ranganathan@intel.com>
2018-09-07Create python distribution for onap-sms-clientDileep Ranganathan5-9/+91
Renamed to onap-sms-client to conform to standard packaging Created and uploaded onap-sms-client python distribution to PyPI This will allow onapsmsclient to be installed using pip. Change-Id: I8ab1137fce5dbb022d54a2c96bc3acdc97d7e63d Issue-ID: AAF-438 Signed-off-by: Dileep Ranganathan <dileep.ranganathan@intel.com>
2018-08-17Add python client for SMS serviceKiran Kamineni2-0/+249
Add python client for SMS service. Other ONAP microservices can use this client to connect to SMS to store and get secrets. Issue-ID: AAF-438 Change-Id: I5bb39001e8482b9191512b1422ed7edadbd2ec67 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-07-10Changing version to casablancaKiran Kamineni4-4/+4
Update version from 2.0.0 to 3.0.0 for casablanca Issue-ID: AAF-390 Change-Id: Ibcf0eb59addc2e287db25021293b155113b1ae58 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
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>