Skip to content

Commit 26820ec

Browse files
author
Mark Gritter
committed
Unconditionally use the root namespace when calling sys/seal-status. (#10742)
1 parent f56d470 commit 26820ec

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

command/status.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ func (c *StatusCommand) Run(args []string) int {
7171
return 1
7272
}
7373

74+
// Always query in the root namespace.
75+
// Although seal-status is present in other namespaces, it will not
76+
// be available until Vault is unsealed.
77+
client.SetNamespace("")
78+
7479
status, err := client.Sys().SealStatus()
7580
if err != nil {
7681
c.UI.Error(fmt.Sprintf("Error checking seal status: %s", err))

0 commit comments

Comments
 (0)