diff --git a/api/sys_seal.go b/api/sys_seal.go index 97a49aeb4401..72fe06e8ed31 100644 --- a/api/sys_seal.go +++ b/api/sys_seal.go @@ -49,6 +49,7 @@ func sealStatusRequest(c *Sys, r *Request) (*SealStatusResponse, error) { } type SealStatusResponse struct { + Type string `json:"type"` Sealed bool `json:"sealed"` T int `json:"t"` N int `json:"n"` diff --git a/command/status.go b/command/status.go index 7b6cce348f3c..6b2f3a0a76a6 100644 --- a/command/status.go +++ b/command/status.go @@ -36,12 +36,14 @@ func (c *StatusCommand) Run(args []string) int { } outStr := fmt.Sprintf( - "Sealed: %v\n"+ + "Type: %s\n"+ + "Sealed: %v\n"+ "Key Shares: %d\n"+ "Key Threshold: %d\n"+ "Unseal Progress: %d\n"+ "Unseal Nonce: %v\n"+ "Version: %s", + sealStatus.Type, sealStatus.Sealed, sealStatus.N, sealStatus.T, diff --git a/http/sys_seal.go b/http/sys_seal.go index ef2430495ae8..4805e36de505 100644 --- a/http/sys_seal.go +++ b/http/sys_seal.go @@ -190,6 +190,7 @@ func handleSysSealStatusRaw(core *vault.Core, w http.ResponseWriter, r *http.Req progress, nonce := core.SecretProgress() respondOk(w, &SealStatusResponse{ + Type: sealConfig.Type, Sealed: sealed, T: sealConfig.SecretThreshold, N: sealConfig.SecretShares, @@ -202,6 +203,7 @@ func handleSysSealStatusRaw(core *vault.Core, w http.ResponseWriter, r *http.Req } type SealStatusResponse struct { + Type string `json:"type"` Sealed bool `json:"sealed"` T int `json:"t"` N int `json:"n"`