Krzysztof Opasiak [Tue, 4 Jun 2019 23:22:14 +0000 (01:22 +0200)]
Document fixed OJSI-121 vulnerability
Issue-ID: OJSI-121
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Change-Id: I997003aa2e9f01cd132faa57c812a145e4cc4a14
Krzysztof Opasiak [Tue, 4 Jun 2019 23:15:22 +0000 (01:15 +0200)]
Improve security release notes
In order to provide users with more details of project's state in
terms of security let's divide the security release notes into three
sections:
- Fixed Security Issues
Contains a list of security fixes merged during this
release (especially those reported via OJSI tickets).
- Known Security Issues
Contains a list of vulnerabilities detected in project during
release which have not been fixed yet and thus should be mitigated
by the user.
- Known Vulnerabilities in Used Modules
Contains information about NexusIQ scan results
Issue-ID: SECCOM-238
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Change-Id: I87465c5cf35c1b868c8b1aed0978ee0315cee717
Kiran Kamineni [Mon, 3 Jun 2019 22:15:23 +0000 (15:15 -0700)]
Update certificates
Update expired certificates
Now expiration date is printed in the Bag attributes
Issue-ID: AAF-845
Change-Id: I4506699c1cd75a451cf00bae461680d0ef136514
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
Instrumental [Mon, 3 Jun 2019 19:07:27 +0000 (14:07 -0500)]
move to JJB
Issue-ID: AAF-824
Change-Id: I435de0646be6500ccfaaa27e808a88babf47d977
Signed-off-by: Instrumental <jonathan.gathman@att.com>
Kiran Kamineni [Thu, 30 May 2019 21:33:14 +0000 (14:33 -0700)]
Update release notes
Update release notes with entry for Dublin
Issue-ID: AAF-836
Change-Id: I470a7b9f1c1188cfc729e602d6a47903e6d3aa13
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
Manjunath Ranganathaiah [Wed, 10 Apr 2019 17:57:46 +0000 (10:57 -0700)]
Bump up the version
Snapshot images are taged with 4.0.0 now
Issue-ID: AAF-764
Change-Id: I31d2cc88e9c1c1b499609e71d54aa72ecaa38a6b
Signed-off-by: Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com>
Jessica Wagantall [Sat, 2 Mar 2019 01:53:16 +0000 (17:53 -0800)]
Add missing INFO.yaml blocks
Add missing information so that the new verify
job passes. Fix indentation.
Change-Id: I8eb4690a1da296eaf5f33cd32aa4584963c90d07
Issue-ID: CIMAN-134
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Instrumental [Tue, 29 Jan 2019 13:13:18 +0000 (07:13 -0600)]
Update INFO.yaml
Issue-ID: AAF-729
Change-Id: I5b633ac8e156d8a8dc85783e3fdb927b8bc57618
Signed-off-by: Instrumental <jonathan.gathman@att.com>
Stanislav Chlebec [Wed, 21 Nov 2018 10:49:44 +0000 (11:49 +0100)]
fix typo
Change-Id: Iefde690b6ea33c71126aa970463e99f090030164
Signed-off-by: Stanislav Chlebec <stanislav.chlebec@pantheon.tech>
Issue-ID: DOC-342
Kiran Kamineni [Tue, 30 Oct 2018 21:27:18 +0000 (14:27 -0700)]
Update version to 3.0.1 for release
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>
Kiran Kamineni [Tue, 30 Oct 2018 19:16:49 +0000 (12:16 -0700)]
Add a simple Retry to preload
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>
Kiran Kamineni [Wed, 24 Oct 2018 04:44:52 +0000 (21:44 -0700)]
Move to go mod from dep
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>
Kiran Kamineni [Thu, 18 Oct 2018 17:06:00 +0000 (10:06 -0700)]
Update version to 3 for Casablanca
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>
Kiran Kamineni [Wed, 17 Oct 2018 21:56:24 +0000 (14:56 -0700)]
Return a more helpful message for existing domain
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>
Kiran Kamineni [Wed, 17 Oct 2018 22:04:26 +0000 (15:04 -0700)]
Upload secrets even when domain already exists
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>
Kiran Kamineni [Wed, 17 Oct 2018 05:18:16 +0000 (22:18 -0700)]
SMS healthcheck should unmount domain
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>
Kiran Kamineni [Mon, 8 Oct 2018 22:32:09 +0000 (15:32 -0700)]
Add readiness check into the cmd line
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>
Kiran Kamineni [Mon, 8 Oct 2018 21:25:37 +0000 (14:25 -0700)]
Fix bug in directory read with json files
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>
Kiran Kamineni [Fri, 5 Oct 2018 18:33:50 +0000 (11:33 -0700)]
Add preload cmdline tool to docker container
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>
Kiran Kamineni [Thu, 4 Oct 2018 05:11:28 +0000 (22:11 -0700)]
Add preload commandline app to load secrets
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>
Kiran Kamineni [Thu, 20 Sep 2018 17:43:28 +0000 (10:43 -0700)]
Update coverage report for SMS
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>
Kiran Kamineni [Mon, 17 Sep 2018 19:52:01 +0000 (12:52 -0700)]
Update client to reflect server changes
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>
Kiran Kamineni [Mon, 17 Sep 2018 19:44:40 +0000 (12:44 -0700)]
Revert change to UUID and go back to domain names
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>
Dileep Ranganathan [Fri, 14 Sep 2018 11:43:40 +0000 (04:43 -0700)]
Bumped the version of onapsmsclient
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>
Kiran Kamineni [Thu, 13 Sep 2018 19:32:54 +0000 (12:32 -0700)]
Fix python client to handle UUID
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>
Kiran Kamineni [Wed, 12 Sep 2018 22:37:44 +0000 (15:37 -0700)]
Fix service name in start script
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>
Kiran Kamineni [Thu, 13 Sep 2018 04:40:50 +0000 (21:40 -0700)]
Add UUID for operations instead of domainName
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>
Dileep Ranganathan [Wed, 12 Sep 2018 12:40:34 +0000 (05:40 -0700)]
Added python3 support for sms client
Added python3 support for sms client
Change-Id: I49dfa4de5b1c4aed07dd0ef8e85fcf1d448bfc92
Issue-ID: AAF-438
Signed-off-by: Dileep Ranganathan <dileep.ranganathan@intel.com>
Dileep Ranganathan [Mon, 10 Sep 2018 15:16:59 +0000 (08:16 -0700)]
Renamed package name to onapsmsclient
Renamed onap-sms-client to onapsmsclient
Change-Id: Ia3fad5d4558b51cf848e28b267fbae537320d183
Issue-ID: AAF-438
Signed-off-by: Dileep Ranganathan <dileep.ranganathan@intel.com>
Dileep Ranganathan [Wed, 5 Sep 2018 13:43:30 +0000 (06:43 -0700)]
Create python distribution for onap-sms-client
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>
Kiran Kamineni [Fri, 17 Aug 2018 22:54:05 +0000 (15:54 -0700)]
Add python client for SMS service
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>
Kiran Kamineni [Tue, 10 Jul 2018 18:20:31 +0000 (11:20 -0700)]
Changing version to casablanca
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>
Kiran Kamineni [Wed, 6 Jun 2018 22:02:11 +0000 (15:02 -0700)]
Move version.properties as its not configurable
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>
Kiran Kamineni [Wed, 6 Jun 2018 18:01:59 +0000 (11:01 -0700)]
Add version.properties for beijing release
Add version.properties file for beijing release
Issue-ID: AAF-330
Change-Id: Idddddfb2cb38975874698e1604c64f3a34307975
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
Kiran Kamineni [Wed, 6 Jun 2018 00:19:12 +0000 (17:19 -0700)]
Propagate error upward
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>
Kiran Kamineni [Tue, 5 Jun 2018 22:34:06 +0000 (15:34 -0700)]
Update certificates with latest intermediate CA
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>
Jessica Wagantall [Thu, 24 May 2018 22:12:25 +0000 (15:12 -0700)]
Add INFO.yaml file
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>
Kiran Kamineni [Thu, 24 May 2018 22:50:33 +0000 (15:50 -0700)]
Add ONAP truststore and comment example client
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>
Kiran Kamineni [Wed, 23 May 2018 18:05:08 +0000 (11:05 -0700)]
Fix titles in docs
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>
Kiran Kamineni [Wed, 23 May 2018 00:38:16 +0000 (17:38 -0700)]
Add release notes and fix docs
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>
Kiran Kamineni [Tue, 22 May 2018 21:54:25 +0000 (14:54 -0700)]
Update pom.xml to support daily release target
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>
Kiran Kamineni [Thu, 17 May 2018 23:09:12 +0000 (16:09 -0700)]
Adding some comments and small refactoring
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>
Kiran Kamineni [Wed, 16 May 2018 19:26:30 +0000 (12:26 -0700)]
Moving java code to java folder
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>
Kiran Kamineni [Tue, 15 May 2018 16:53:23 +0000 (09:53 -0700)]
Updating certificates to fix healthcheck
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>
Kiran Kamineni [Fri, 4 May 2018 23:50:39 +0000 (16:50 -0700)]
Adding a docs folder under sms repo
WORK IN PROGRESS
Adding a docs folder under sms
Issue-ID: AAF-185
Change-Id: I5ee3560cfda2100ad5207bb7e98d5cb9472e1325
Signed-off-by: Girish Havaldar <hg0071052@techmahindra.com>
Kiran Kamineni [Tue, 15 May 2018 15:52:23 +0000 (08:52 -0700)]
fix for broken unit tests
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>
Kiran Kamineni [Tue, 15 May 2018 04:59:23 +0000 (21:59 -0700)]
fixing auth test
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>
Kiran Kamineni [Mon, 14 May 2018 21:40:03 +0000 (14:40 -0700)]
Adding updated certs and encryption
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>
Kiran Kamineni [Wed, 9 May 2018 22:14:57 +0000 (15:14 -0700)]
Make sure bash is used to execute script
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>
Kiran Kamineni [Thu, 3 May 2018 18:27:59 +0000 (11:27 -0700)]
Adding healthcheck endpoint for sms
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>
Kiran Kamineni [Tue, 1 May 2018 04:03:45 +0000 (21:03 -0700)]
adding a bash script to launch sms in a vm
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>
Kiran Kamineni [Mon, 30 Apr 2018 18:14:19 +0000 (11:14 -0700)]
Using SNI for service names to support k8s
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>
Kiran Kamineni [Fri, 27 Apr 2018 04:57:47 +0000 (21:57 -0700)]
Updating files with root ca certificate
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>
Kiran Kamineni [Fri, 27 Apr 2018 00:31:07 +0000 (17:31 -0700)]
Adding cert files to support https
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>
Kiran Kamineni [Wed, 25 Apr 2018 19:16:15 +0000 (12:16 -0700)]
Quorum client creates its data folder before write
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>
Kiran Kamineni [Tue, 24 Apr 2018 23:28:44 +0000 (16:28 -0700)]
Updating version for docker images to 2.0.0
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>
Manjunath Ranganathaiah [Mon, 23 Apr 2018 22:24:03 +0000 (15:24 -0700)]
Add more test cases for sms-client
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>
Kiran Kamineni [Fri, 20 Apr 2018 04:27:01 +0000 (21:27 -0700)]
Refactor logger and use it everywhere
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>
Kiran Kamineni [Wed, 18 Apr 2018 21:14:31 +0000 (14:14 -0700)]
Adding unit tests for Vault backend
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>
Kiran Kamineni [Tue, 17 Apr 2018 18:49:21 +0000 (11:49 -0700)]
Added lock for quorum registration
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>
Kiran Kamineni [Tue, 17 Apr 2018 18:06:53 +0000 (11:06 -0700)]
Fixing CSIT test
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>
Kiran Kamineni [Tue, 17 Apr 2018 17:39:11 +0000 (10:39 -0700)]
Enabling container build for quorum client
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>
Kiran Kamineni [Wed, 21 Mar 2018 16:13:26 +0000 (09:13 -0700)]
Adding secure init code for backend
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>
Kiran Kamineni [Wed, 11 Apr 2018 05:07:18 +0000 (22:07 -0700)]
Changing client auth method to verify if given
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>
Manjunath Ranganathaiah [Tue, 10 Apr 2018 20:22:00 +0000 (13:22 -0700)]
Add maven build structure
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>
Kiran Kamineni [Fri, 6 Apr 2018 23:45:23 +0000 (16:45 -0700)]
Refactoring some code and adding disable_tls flag
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>
Kiran Kamineni [Tue, 10 Apr 2018 22:13:03 +0000 (15:13 -0700)]
Storing UUID that is created for secret domain
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>
Kiran Kamineni [Thu, 5 Apr 2018 18:54:20 +0000 (11:54 -0700)]
renaming folder to match go executable
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>
Kiran Kamineni [Thu, 5 Apr 2018 04:31:16 +0000 (21:31 -0700)]
moving the docker build portion
Moving the docker build scripts too
Issue-ID: AAF-213
Change-Id: I97c1de10d198c6afc97c763c54d862a10b5b7f92
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
Kiran Kamineni [Wed, 4 Apr 2018 18:54:23 +0000 (11:54 -0700)]
Moving quorum and sms into common GOPATH
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>
Kiran Kamineni [Wed, 4 Apr 2018 18:41:40 +0000 (11:41 -0700)]
Adding a new parent Makefile
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>
Kiran Kamineni [Wed, 4 Apr 2018 21:03:56 +0000 (14:03 -0700)]
Changing docker image build to use filename
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>
giri [Thu, 29 Mar 2018 04:58:14 +0000 (04:58 +0000)]
Added Makefile for quorumclient
Added Makefile for quorumclient
Change-Id: Iee3912a8a675c7eab2514fc9257ae97dfc8b7157
Issue-ID: AAF-205
Signed-off-by: giri <hg0071052@techmahindra.com>
Manjunath Ranganathaiah [Mon, 2 Apr 2018 22:47:36 +0000 (15:47 -0700)]
Add test case for delete domain
Change-Id: I1ae8372d024ad5b718d369ccf9c82e3ae7d0bdd5
Issue-ID: AAF-183
Signed-off-by: Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com>
giri [Thu, 29 Mar 2018 04:58:14 +0000 (04:58 +0000)]
Adding Docker Support for Quorum client
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>
Kiran Kamineni [Mon, 2 Apr 2018 21:32:45 +0000 (14:32 -0700)]
Adding alternative method to set backend URL
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>
Kiran Kamineni [Thu, 29 Mar 2018 04:26:56 +0000 (21:26 -0700)]
Fix build failure for patch 39785
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>
Kiran Kamineni [Wed, 28 Mar 2018 18:34:20 +0000 (11:34 -0700)]
Delete secret returns with 204
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>
Kiran Kamineni [Tue, 27 Mar 2018 23:30:46 +0000 (16:30 -0700)]
Minor changes to files
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>
Kiran Kamineni [Wed, 28 Mar 2018 05:42:51 +0000 (22:42 -0700)]
Adding a disable tls flag to sms
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>
Manjunath Ranganathaiah [Wed, 21 Mar 2018 16:12:04 +0000 (09:12 -0700)]
Test framework for sms client code.
Adds a test case for create domain interface
Change-Id: I198d4e91845753ca359330c367180bd3a3732f30
Issue-ID: AAF-183
Signed-off-by: Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com>
Kiran Kamineni [Fri, 23 Mar 2018 21:14:10 +0000 (14:14 -0700)]
Adding system test coverage support
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>
Kiran Kamineni [Thu, 22 Mar 2018 21:16:40 +0000 (14:16 -0700)]
Updating with binary compile in the bash script
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>
Kiran Kamineni [Thu, 22 Mar 2018 00:16:13 +0000 (17:16 -0700)]
Adding PGP decrypt to auth package
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>
Kiran Kamineni [Tue, 20 Mar 2018 22:12:13 +0000 (15:12 -0700)]
Adding bash script to call docker build
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>
Kiran Kamineni [Fri, 9 Mar 2018 19:49:24 +0000 (11:49 -0800)]
Making the build completely static for docker
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>
Manjunath Ranganathaiah [Thu, 15 Mar 2018 21:41:12 +0000 (14:41 -0700)]
Return only values to the caller of getSecret
Use returned values of map for datatype variables.
Change-Id: I3829eab81e5e573505efff68970bd3495b7a92f0
Issue-ID: AAF-98
Signed-off-by: Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com>
Kiran Kamineni [Tue, 13 Mar 2018 19:59:37 +0000 (12:59 -0700)]
Update listsecret return to send a JSON object
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>
Kiran Kamineni [Wed, 14 Mar 2018 16:35:32 +0000 (09:35 -0700)]
Updated with variety of values in client example
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>
Kiran Kamineni [Tue, 13 Mar 2018 20:50:17 +0000 (13:50 -0700)]
Using embedded lock for vault struct
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>
Manjunath Ranganathaiah [Thu, 8 Mar 2018 22:43:37 +0000 (14:43 -0800)]
Initial structure and java code for sms client.
Change-Id: I245302bc125515269be948bb8b6874a7d3cb5367
Issue-ID: AAF-98
Signed-off-by: Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com>
Kiran Kamineni [Fri, 9 Mar 2018 22:23:09 +0000 (14:23 -0800)]
Fixing the logger initialization to sms.go
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>
Kiran Kamineni [Fri, 9 Mar 2018 19:03:36 +0000 (11:03 -0800)]
Adding PGP key creation capability for vault init
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>
Kiran Kamineni [Fri, 9 Mar 2018 04:58:29 +0000 (20:58 -0800)]
Adding handler unit tests
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>
Kiran Kamineni [Thu, 8 Mar 2018 22:11:15 +0000 (14:11 -0800)]
Adding url configuration for endpoint tests
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>
vamshi.nemalikonda [Thu, 8 Mar 2018 08:06:20 +0000 (08:06 +0000)]
Dockerfile for SMS containerization
Building Dockerfile for SMS containerization - implemented review comments Issue-ID: AAF-147
Change-Id: I85030f461d6242d0bd4358dce7ac3b6d86edfd22
Signed-off-by: vamshi.nemalikonda <vn00480215@techmahindra.com>
giri [Wed, 7 Mar 2018 13:57:28 +0000 (19:27 +0530)]
Updated the URL with sms service url
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>
Kiran Kamineni [Wed, 7 Mar 2018 00:26:11 +0000 (16:26 -0800)]
Adding endpoint test scripts
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>
Kiran Kamineni [Wed, 7 Mar 2018 00:18:49 +0000 (16:18 -0800)]
Changing json encoding of response
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>
Kiran Kamineni [Tue, 6 Mar 2018 19:36:40 +0000 (11:36 -0800)]
Log errors to log file
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>