Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A secret vault storage with AES encryption using a certificate #56

Merged
merged 26 commits into from
Jul 30, 2018
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
4a25927
Hammering out the api.
Skarlso Jul 23, 2018
e8f911b
Changing the api.
Skarlso Jul 24, 2018
b42cbd1
More work on the api.
Skarlso Jul 24, 2018
c483488
Steps
Skarlso Jul 24, 2018
5ed244f
Created the vault back-end.
Skarlso Jul 24, 2018
87290ca
Fixed the logger nil pointer.
Skarlso Jul 24, 2018
4a29226
Removed un-needed open.
Skarlso Jul 24, 2018
c0c26f4
Started chunking on the web interface.
Skarlso Jul 24, 2018
3d44393
Some linting.
Skarlso Jul 24, 2018
7d1a21b
Fixed some values and names.
Skarlso Jul 24, 2018
65bbc62
Making the end-point work.
Skarlso Jul 24, 2018
b3ab064
Working on the display.
Skarlso Jul 25, 2018
26f4fc1
Added missing open.
Skarlso Jul 25, 2018
0313fd1
Done with managing secret view. Added secret field masking.
Skarlso Jul 25, 2018
a9c5a90
Not returning the values at all so they aren't even getting to the en…
Skarlso Jul 25, 2018
b79d97b
Merge branch 'master' into secure_vault_file
Skarlso Jul 25, 2018
ddb9917
Merge branch 'master' into secure_vault_file
Skarlso Jul 25, 2018
2863cb7
Front-end done and vault now is using the certificate for encryption.
Skarlso Jul 25, 2018
ad4ceb4
Defaulting vault path to the data folder.
Skarlso Jul 25, 2018
cbe5cac
addressed comments.
Skarlso Jul 26, 2018
c5f7710
Some small adjustments and creating the SetSecret endpoint.
Skarlso Jul 26, 2018
0c12482
Added readme, added tests, and fixed up some more comments.
Skarlso Jul 26, 2018
71b4409
Readme style fixes.
Skarlso Jul 27, 2018
b3bbba4
Battle tested the front-end.
Skarlso Jul 27, 2018
452697d
Added the VaultStorer interface to be able to extract the storage med…
Skarlso Jul 28, 2018
5b28828
Added test testing default storer initialization.
Skarlso Jul 28, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions cmd/gaia/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (
"github.com/gaia-pipeline/gaia/pipeline"
"github.com/gaia-pipeline/gaia/plugin"
scheduler "github.com/gaia-pipeline/gaia/scheduler"
"github.com/gaia-pipeline/gaia/security"
"github.com/gaia-pipeline/gaia/store"
hclog "github.com/hashicorp/go-hclog"
"github.com/labstack/echo"
Expand All @@ -39,6 +40,7 @@ func init() {
// command line arguments
flag.StringVar(&gaia.Cfg.ListenPort, "port", "8080", "Listen port for gaia")
flag.StringVar(&gaia.Cfg.HomePath, "homepath", "", "Path to the gaia home folder")
flag.StringVar(&gaia.Cfg.VaultPath, "vaultpath", "", "Path to the gaia vault folder")
flag.StringVar(&gaia.Cfg.Worker, "worker", "2", "Number of worker gaia will use to execute pipelines in parallel")
flag.StringVar(&gaia.Cfg.JwtPrivateKeyPath, "jwtPrivateKeyPath", "", "A RSA private key used to sign JWT tokens")
flag.BoolVar(&gaia.Cfg.DevMode, "dev", false, "If true, gaia will be started in development mode. Don't use this in production!")
Expand Down Expand Up @@ -152,6 +154,13 @@ func main() {
os.Exit(1)
}

// Initiating Vault
_, err = security.NewVault()
if err != nil {
gaia.Cfg.Logger.Error("error initiating vault")
os.Exit(1)
}

// Start ticker. Periodic job to check for new plugins.
pipeline.InitTicker(store, scheduler)

Expand Down
8 changes: 8 additions & 0 deletions frontend/client/store/modules/menu/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ const state = {
icon: 'fa-cogs'
},
component: lazyLoading('settings', true)
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move vault up so it's over Settings in the menu list. Don't know why, but I'm used to find Settings at the last menu entry 🤗

{
name: 'Vault',
path: '/vault',
meta: {
icon: 'fa-lock'
},
component: lazyLoading('vault', true)
}
]
}
Expand Down
Loading