mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
http: root token in init
This commit is contained in:
@@ -57,7 +57,8 @@ func handleSysInitPut(core *vault.Core, w http.ResponseWriter, r *http.Request)
|
||||
}
|
||||
|
||||
respondOk(w, &InitResponse{
|
||||
Keys: keys,
|
||||
Keys: keys,
|
||||
RootToken: result.RootToken,
|
||||
})
|
||||
}
|
||||
|
||||
@@ -67,7 +68,8 @@ type InitRequest struct {
|
||||
}
|
||||
|
||||
type InitResponse struct {
|
||||
Keys []string `json:"keys"`
|
||||
Keys []string `json:"keys"`
|
||||
RootToken string `json:"root_token"`
|
||||
}
|
||||
|
||||
type InitStatusResponse struct {
|
||||
|
||||
Reference in New Issue
Block a user