-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Error upon executing a new custom plugin #4630
Comments
Apologies... I didn't realize creating a bug and posting in groups was essentially the same. My bad. |
That thread died, though. Is Google Groups the best place to follow up on resolving this issue? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I am developing a custom auth plugin for Vault 0.10.1 to address a lacking space that is most likely a domain-specific need. I have followed the code concepts at https://github.com/hashicorp/vault-auth-plugin-example and at this early stage, the code does only 1 additional field from the example code + renamed the super-secret-password to simply 'password'; so the updates simply accept the two fields, log them to stdout, then return a valid Response object.
Building with Golang 1.10.1, the new plugin builds successfully, is registerable successfully within Vault (however, there are warnings; see below), but fails when executed by the Vault client with the client "* plugin exited before we could connect" error; and see below for the output of the server debug logs:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I should see a token generated and returned to the Vault client instead of an error, plus I should see the plugin log the passed arguments to either stdout or the server's log file
Environment:
vault status
):vault version
):Mac OS-X 10.13.2/amd64 darwin
Vault server configuration file(s):
Additional context
debug log from server when issuing the "vault plugin enable" command at the client:
Server debug log snippet end trying to execute the plugin via 'vault write auth/example/login username=foo password=bar':
The text was updated successfully, but these errors were encountered: