Skip to content
New issue

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

Add missing nil check to FIPS EA verification #15883

Merged
merged 1 commit into from
Jun 8, 2022

Conversation

cipherboy
Copy link
Contributor

@cipherboy cipherboy commented Jun 8, 2022

This was causing failures when running vault server -dev:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x20 pc=0x105c41c1c]

goroutine 1 [running]:
github.com/hashicorp/vault/command.(*ServerCommand).parseConfig(0x140005a2180)
	.../vault/command/server.go:429 +0x5c

Interestingly, we do not have a test case for running the dev
sever.

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>


This was broken in: #15858

This was causing failures when running `vault server -dev`:

> panic: runtime error: invalid memory address or nil pointer dereference
> [signal SIGSEGV: segmentation violation code=0x2 addr=0x20 pc=0x105c41c1c]
>
> goroutine 1 [running]:
> github.com/hashicorp/vault/command.(*ServerCommand).parseConfig(0x140005a2180)
> 	.../vault/command/server.go:429 +0x5c

Interestingly, we do not have a test case for running the dev
sever.

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
@cipherboy cipherboy added bug Used to indicate a potential bug pr/no-changelog backport/1.10.x fips labels Jun 8, 2022
@cipherboy cipherboy added this to the 1.12.0-rc1 milestone Jun 8, 2022
@cipherboy cipherboy requested review from swenson and a team June 8, 2022 18:41
Copy link
Contributor

@kitography kitography left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super simple fix, looks good to me.

Copy link
Contributor

@swenson swenson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cipherboy
Copy link
Contributor Author

Going to go ahead and merge this since its breaking UI tests, and if anyone has ideas how to improve the check in the future, we can fix it then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Used to indicate a potential bug fips pr/no-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants