From bd6d25499fe78601d88023b15d632a2b1f27d9aa Mon Sep 17 00:00:00 2001 From: Mark Gritter Date: Mon, 25 Jan 2021 11:25:54 -0600 Subject: [PATCH] Unconditionally use the root namespace when calling sys/seal-status. (#10742) --- command/status.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/command/status.go b/command/status.go index 0e6be18f7..5d3c8eec5 100644 --- a/command/status.go +++ b/command/status.go @@ -71,6 +71,11 @@ func (c *StatusCommand) Run(args []string) int { return 1 } + // Always query in the root namespace. + // Although seal-status is present in other namespaces, it will not + // be available until Vault is unsealed. + client.SetNamespace("") + status, err := client.Sys().SealStatus() if err != nil { c.UI.Error(fmt.Sprintf("Error checking seal status: %s", err))