aaf/sms.git
6 years agoAdding unseal backend support 61/34161/2
Kiran Kamineni [Tue, 6 Mar 2018 00:50:16 +0000 (16:50 -0800)]
Adding unseal backend support

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>
6 years agoInit role does not depend on vault state 53/33853/4
Kiran Kamineni [Fri, 2 Mar 2018 20:49:06 +0000 (12:49 -0800)]
Init role does not depend on vault state

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>
6 years agoUpdating api documentation 29/34129/1
Kiran Kamineni [Mon, 5 Mar 2018 20:57:22 +0000 (12:57 -0800)]
Updating api documentation

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>
6 years agoAdding logging framework 93/33493/2
Kiran Kamineni [Thu, 1 Mar 2018 01:06:29 +0000 (17:06 -0800)]
Adding logging framework

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>
6 years agoMinor code cleanup 71/33471/1
Kiran Kamineni [Wed, 28 Feb 2018 21:15:29 +0000 (13:15 -0800)]
Minor code cleanup

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>
6 years agoAdded Quorum client with vault config file 59/32559/3
giri [Thu, 22 Feb 2018 14:37:05 +0000 (20:07 +0530)]
Added Quorum client with vault config file

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>
6 years agoAdding deletedomain implementation 43/32943/2
Kiran Kamineni [Mon, 26 Feb 2018 20:37:19 +0000 (12:37 -0800)]
Adding deletedomain implementation

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>
6 years agoFixing the usage of pointer in config 67/32967/2
Kiran Kamineni [Mon, 26 Feb 2018 23:48:11 +0000 (15:48 -0800)]
Fixing the usage of pointer in config

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>
6 years agoImproved error handling during startup 69/32969/1
Kiran Kamineni [Tue, 27 Feb 2018 00:16:41 +0000 (16:16 -0800)]
Improved error handling during startup

Server startup is silent when there are errors
Making server startup more informative in cases
where errors are encountered.

Issue-ID: AAF-146
Change-Id: Iec9a44d0d10813cf77aef69dbfd5fd50eea10dbc
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
6 years agoMerge "Adding Listsecret capability"
Girish Havaldar [Sat, 24 Feb 2018 04:51:14 +0000 (04:51 +0000)]
Merge "Adding Listsecret capability"

6 years agoAdding Listsecret capability 13/32713/2
Kiran [Fri, 23 Feb 2018 20:23:03 +0000 (12:23 -0800)]
Adding Listsecret capability

A GET HTTP request on domainname/secret will now list
all the secret names stored in that domain
The content of the secrets are not returned here.

Issue-ID: AAF-140
Change-Id: I0e0491f642e1ff82f11cb90a93df4a71393bc5ac
Signed-off-by: Kiran <kiran.k.kamineni@intel.com>
6 years agoAdding deletesecret functionality 37/32737/1
Kiran [Fri, 23 Feb 2018 23:11:48 +0000 (15:11 -0800)]
Adding deletesecret functionality

Adding deletesecret functionality in backend and handler

Issue-ID: AAF-142
Change-Id: I09dfc78af72dff1d60ce25cc22053d72948f7433
Signed-off-by: Kiran <kiran.k.kamineni@intel.com>
6 years agoCheck before enabling approle 21/32721/1
Kiran [Fri, 23 Feb 2018 20:55:57 +0000 (12:55 -0800)]
Check before enabling approle

Check to see if approle is not already enabled
before enabling it. This prevents error messages on
the vault server side

Issue-ID: AAF-141
Change-Id: Ic5a0401f72385fb66d19d34da2ab38ea57ea44bc
Signed-off-by: Kiran <kiran.k.kamineni@intel.com>
6 years agoGet Secret implementation 45/32645/1
Kiran [Thu, 22 Feb 2018 22:53:58 +0000 (14:53 -0800)]
Get Secret implementation

Completing getsecret backend implementation and handler call
Also adding in checktoken call before secret is read from vault

Issue-ID: AAF-137
Change-Id: Ia987af51c039290d1a06b7e2b4a8aa6a63e469c6
Signed-off-by: Kiran <kiran.k.kamineni@intel.com>
6 years agoCreateSecret implementaion 43/31943/4
vamshi.nemalikonda [Thu, 22 Feb 2018 10:44:25 +0000 (10:44 +0000)]
CreateSecret implementaion

Implementaion code added for createsecret method
Updated handler.go to check return value from createsecret
Added checktoken before write secret

Issue-ID: AAF-126
Change-Id: Ia46a0f1be5904072da74e04d123f88b09b46ed69
Signed-off-by: vamshi.nemalikonda <vn00480215@techmahindra.com>
6 years agoAdding token creation for operations 47/32447/3
Kiran [Wed, 21 Feb 2018 21:16:53 +0000 (13:16 -0800)]
Adding token creation for operations

Secret domain creation and secret creation is controlled
using approle authentication within the sms service
A temporary token with a short ttl is created and used
for adding domains and secrets into vault right now
Root token is used only once during the initial bring up
Also fixing unit test for backend.go

Issue-ID: AAF-99
Change-Id: I1352dadb32b54caaef86c7795601bf04d657dc3b
Signed-off-by: Kiran <kiran.k.kamineni@intel.com>
6 years agoCreated Quorum Project folder 31/31931/1
Girish [Fri, 16 Feb 2018 08:04:09 +0000 (13:34 +0530)]
Created Quorum Project folder

This project
will contain the quorum client implementation

Change-Id: Iee88ae20b0b47b04717d8409ade9340db225556d
Issue-ID: AAF-127
Signed-off-by: Girish <hg0071052@techmahindra.com>
6 years agoAdding unit test case for auth.go 61/31361/5
Havaldar Girish [Mon, 12 Feb 2018 04:12:47 +0000 (09:42 +0530)]
Adding unit test case for auth.go

Adding Unit Test case auth_test.go and auth_test.cert file for testing auth.go

Change-Id: I68611f2b17a9f37618cbc5ef8db11e6fb632b910
Issue-ID: AAF-122
Signed-off-by: Havaldar Girish <hg0071052@techmahindra.com>
6 years agoAdding more unit tests and updating makefile 43/31643/3
Kiran [Tue, 13 Feb 2018 23:21:46 +0000 (15:21 -0800)]
Adding more unit tests and updating makefile

Added unit tests for backend, vault, config and handler
Updated the makefile to call the tests when build target is invoked

Issue-ID: AAF-118
Change-Id: Id9b719a0e2b46070867a7fcbae34b83d19ef3282
Signed-off-by: Kiran <kiran.k.kamineni@intel.com>
6 years agoAuth.go returns error during tlsconfig 45/31545/1
Kiran [Tue, 13 Feb 2018 00:13:14 +0000 (16:13 -0800)]
Auth.go returns error during tlsconfig

Auth package should return an error to the calling function
instead of erroring out with log.Fatal

Issue-ID: AAF-99
Change-Id: I9f1abd3710a85df85ac6e1d623dc16d77b977f1a
Signed-off-by: Kiran <kiran.k.kamineni@intel.com>
6 years agoUpdating API Document 31/31131/1
Kiran [Fri, 9 Feb 2018 22:54:12 +0000 (14:54 -0800)]
Updating API Document

API Document was old
Updated with latest

Issue-ID: AAF-121
Change-Id: Ifea35d2aad6e7d52fe73d02984e6d11b6cd89831
Signed-off-by: Kiran <kiran.k.kamineni@intel.com>
6 years agoAdding Makefile for easier builds and ci 01/31101/3
Kiran [Fri, 9 Feb 2018 18:01:22 +0000 (10:01 -0800)]
Adding Makefile for easier builds and ci

Adding a Makefile to allow easier builds and for jenkins integration
jenkins jjb will call make build, make deploy and so on
Makefile resides along with the main application go file

Issue-ID: AAF-117

Change-Id: Ibf4413a26d5572703bea122d3d0db83f4c35ae88
Signed-off-by: Kiran <kiran.k.kamineni@intel.com>
6 years agoRefactor code and cleanup with stub completion 31/30931/2
Kiran [Thu, 8 Feb 2018 22:11:44 +0000 (14:11 -0800)]
Refactor code and cleanup with stub completion

Refactored code and moved some structs from handler to backend
Completed the interface that is part of the backend
Currently, the interface implementation is empty and will need to be fleshed out

Issue-ID: AAF-99

Change-Id: I0083bc9d7ce7f6e5294339bf1e270b90c1b3de29
Signed-off-by: Kiran <kiran.k.kamineni@intel.com>
6 years agoInitial Project Structure 43/30343/2
Kiran [Mon, 5 Feb 2018 22:04:32 +0000 (14:04 -0800)]
Initial Project Structure

Includes a directory stucture for all the current components
The implemented code establishes a mTLS connection to client
and serves a GET status request
Other requests and handlers will come in future patches

Issue-ID: AAF-102
Change-Id: Ib3bca066586d23330b10550f83772ab11aacabc7
Signed-off-by: Kiran <kiran.k.kamineni@intel.com>
6 years agoInitial empty repository
Jessica Wagantall [Thu, 25 Jan 2018 19:34:18 +0000 (19:34 +0000)]
Initial empty repository