feat: Support configuration file for hmsecrets.
This commit is contained in:
1 parent
3b29c2cb1d
commit
03247415b2
12 files changed
+106
-48
No files matched your search
@@ -2,8 +2,8 @@ package hmsecrets
|
||||
|
||||
import "git.handmadecities.com/HMC/shhh/pkg/secretsclient"
|
||||
|
||||
func getClient(base, ca, cert, certKey string) secretsclient.Client {
|
||||
cli, err := secretsclient.New(base, ca, cert, certKey)
|
||||
func getClient() secretsclient.Client {
|
||||
cli, err := secretsclient.New(conf.APIBase, conf.CA, conf.ClientCert, conf.ClientKey)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user