We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scenario : vault cluster with HA enabled , leader lost leadership for some reason the standby see this:
leader
standby
vault/vault/core.go
Line 3202 in 2d46c8d
c.PhysicalBarrierSealConfig(ctx) at top of
c.PhysicalBarrierSealConfig(ctx)
Line 3196 in 2d46c8d
nil,nil
barrierSealConfig == nil
and the result is :
vault debug not reloading seals config since there is no seal generation info in storage vault error panic: runtime error: invalid memory address or nil pointer dereference vault [signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x33db0ce] vault goroutine 232 [running]: vault github.com/hashicorp/vault/vault.(*Core).migrateMultiSealConfig(0xc0001b1000, {0xc656e30, 0xc0038ecdc0}) /opt/app-root/src/vault/core.go:3203 +0xae vault github.com/hashicorp/vault/vault.(*Core).migrateSeal(0xc656e30?, {0xc656e30?, 0xc0038ecdc0?}) /opt/app-root/src/vault/core.go:1906 +0xc17 vault github.com/hashicorp/vault/vault.(*Core).waitForLeadership(0xc0001b1000, 0x0?, 0xc003a9f740, 0xc003a9f920) /opt/app-root/src/vault/ha.go:604 +0x77f vault github.com/hashicorp/vault/vault.(*Core).runStandby.func9() /opt/app-root/src/vault/ha.go:475 +0x25
solution: switch case should handle nil values for barrierSealConfig more gracefully.
nil
barrierSealConfig
The text was updated successfully, but these errors were encountered:
debug line from :
vault/command/server.go
Line 3163 in 2d46c8d
Sorry, something went wrong.
@taitelman out of interest - how did you achieve the seal change? - was it through a config change to an existing seal stanza & then a reload?
No branches or pull requests
scenario : vault cluster with HA enabled ,
leader
lost leadership for some reason thestandby
see this:vault/vault/core.go
Line 3202 in 2d46c8d
c.PhysicalBarrierSealConfig(ctx)
at top ofvault/vault/core.go
Line 3196 in 2d46c8d
can return
nil,nil
under some edge cases.and then the code will fail in the next pointer usage since
barrierSealConfig == nil
and the result is :
solution: switch case should handle
nil
values forbarrierSealConfig
more gracefully.The text was updated successfully, but these errors were encountered: