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

file audit backend panics on reading key data for transit ecdsa-p256 key types #3111

Closed
sdboyer opened this issue Aug 4, 2017 · 2 comments
Closed

Comments

@sdboyer
Copy link
Contributor

sdboyer commented Aug 4, 2017

Environment:

  • Vault Version: v0.7.3
  • Operating System/Architecture: amazon linux, x86_64

Vault Config File:

very simple right now, but storage backend is consul, via local agent

Startup Log Output:

Expected Behavior:

I attempted to read key information (e.g. vault read transit/keys/<name>) for a key of type ecdsa-p256, using a token with the necessary privileges on a vault server with a file audit backend enabled. I expected to see that key's information.

Actual Behavior:

A 500 error from the command, and a panic recorded in the server's logs:

[ERROR] audit: panic during logging: request_path=transit/keys/boss2 error="reflect: reflect.Value.Set using unaddressable value"
[ERROR] core: failed to audit response: request_path=transit/keys/boss2 error=1 error occurred:
* panic generating audit log

Steps to Reproduce:

vault server -dev
vault audit-enable file "file_path=/tmp/vault-test-audit"
vault mount transit
vault write transit/keys/testkey "type=ecdsa-p256"
vault read transit/keys/testkey
@joelthompson
Copy link
Contributor

@sdboyer -- this looks like a duplicate of of #2958 which should be fixed in the next version of Vault. Try downloading the 0.8 RC1 from https://releases.hashicorp.com/vault/0.8.0-rc1/ and see if it fixes it for you.

@sdboyer
Copy link
Contributor Author

sdboyer commented Aug 4, 2017

that's totally it. thank you, and sorry i didn't search before posting!

@sdboyer sdboyer closed this as completed Aug 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants