feat: Tested (with curl) server implementation of the secrets store.
This commit is contained in:
1 parent
9bdbc79458
commit
7b715da87f
4 files changed
+195
No files matched your search
@@ -0,0 +1,19 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
|
||||
"git.handmadecities.com/HMC/shhh/pkg/secretsserver"
|
||||
"git.handmadecities.com/HMC/shhh/pkg/secretsstore"
|
||||
)
|
||||
|
||||
func main() {
|
||||
cfg := loadConfigFromEnv()
|
||||
|
||||
store, err := secretsstore.New(cfg.storePath)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
server := secretsserver.New(store)
|
||||
log.Fatal(server.ListenAndServeTLS(cfg.addr, cfg.ca, cfg.crt, cfg.crtKey))
|
||||
}
|
||||
Reference in new issue
Block a user