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

Error enabling vault-plugin-auth-oci auth: Error making API request. #2

Open
ldessemon2 opened this issue Sep 13, 2019 · 2 comments
Open
Assignees

Comments

@ldessemon2
Copy link

ldessemon2 commented Sep 13, 2019

Hi
We built the plugin (for vault v1.2.2) and are trying to enable it but we got an error.

[vault]# vault -version
Vault v1.2.2

[vault]# export SHA256=$(sha256sum "/var/lib/vault/plugins/vault-plugin-auth-oci" | cut -d' ' -f1)
[vault]# vault write sys/plugins/catalog/auth/vault-plugin-auth-oci sha_256="${SHA256}" command="vault-plugin-auth-oci"
Success! Data written to: sys/plugins/catalog/auth/vault-plugin-auth-oci
[vault]# vault auth enable -path="oci" -plugin-name="vault-plugin-auth-oci" plugin
Error enabling vault-plugin-auth-oci auth: Error making API request.

URL: POST http://192.168.0.102:8200/v1/sys/auth/oci
Code: 400. Errors:

  • Unrecognized remote plugin message:

This usually means that the plugin is either invalid or simply
needs to be recompiled to support the latest protocol.

Do we missed something ?

[vault]# make
==> Checking that code complies with gofmt requirements...
go generate
==> Removing old directory...
==> Building...
Number of parallel builds: 1

--> darwin/amd64: github.com/hashicorp/vault-plugin-auth-oci/cmd/vault-plugin-auth-oci
--> windows/amd64: github.com/hashicorp/vault-plugin-auth-oci/cmd/vault-plugin-auth-oci
--> openbsd/amd64: github.com/hashicorp/vault-plugin-auth-oci/cmd/vault-plugin-auth-oci
--> netbsd/arm: github.com/hashicorp/vault-plugin-auth-oci/cmd/vault-plugin-auth-oci
--> linux/386: github.com/hashicorp/vault-plugin-auth-oci/cmd/vault-plugin-auth-oci
--> darwin/386: github.com/hashicorp/vault-plugin-auth-oci/cmd/vault-plugin-auth-oci
--> netbsd/386: github.com/hashicorp/vault-plugin-auth-oci/cmd/vault-plugin-auth-oci
--> netbsd/amd64: github.com/hashicorp/vault-plugin-auth-oci/cmd/vault-plugin-auth-oci
--> windows/386: github.com/hashicorp/vault-plugin-auth-oci/cmd/vault-plugin-auth-oci
--> freebsd/amd64: github.com/hashicorp/vault-plugin-auth-oci/cmd/vault-plugin-auth-oci
--> openbsd/386: github.com/hashicorp/vault-plugin-auth-oci/cmd/vault-plugin-auth-oci
--> solaris/amd64: github.com/hashicorp/vault-plugin-auth-oci/cmd/vault-plugin-auth-oci
--> freebsd/386: github.com/hashicorp/vault-plugin-auth-oci/cmd/vault-plugin-auth-oci
--> freebsd/arm: github.com/hashicorp/vault-plugin-auth-oci/cmd/vault-plugin-auth-oci
--> linux/amd64: github.com/hashicorp/vault-plugin-auth-oci/cmd/vault-plugin-auth-oci
--> linux/arm: github.com/hashicorp/vault-plugin-auth-oci/cmd/vault-plugin-auth-oci
--> linux/arm64: github.com/hashicorp/vault-plugin-auth-oci/cmd/vault-plugin-auth-oci
==> Packaging...
--> darwin_amd64
adding: vault-plugin-auth-oci (deflated 53%)
--> windows_amd64
adding: vault-plugin-auth-oci.exe (deflated 53%)
--> openbsd_amd64
adding: vault-plugin-auth-oci (deflated 53%)
--> netbsd_arm
adding: vault-plugin-auth-oci (deflated 50%)
--> linux_386
adding: vault-plugin-auth-oci (deflated 48%)
--> darwin_386
adding: vault-plugin-auth-oci (deflated 48%)
--> netbsd_386
adding: vault-plugin-auth-oci (deflated 48%)
--> netbsd_amd64
adding: vault-plugin-auth-oci (deflated 53%)
--> windows_386
adding: vault-plugin-auth-oci.exe (deflated 49%)
--> freebsd_amd64
adding: vault-plugin-auth-oci (deflated 53%)
--> openbsd_386
adding: vault-plugin-auth-oci (deflated 48%)
--> solaris_amd64
adding: vault-plugin-auth-oci (deflated 53%)
--> freebsd_386
adding: vault-plugin-auth-oci (deflated 48%)
--> freebsd_arm
adding: vault-plugin-auth-oci (deflated 50%)
--> linux_amd64
adding: vault-plugin-auth-oci (deflated 53%)
--> linux_arm
adding: vault-plugin-auth-oci (deflated 50%)
--> linux_arm64
adding: vault-plugin-auth-oci (deflated 54%)

==> Results:
total 16M
-rwxr-xr-x. 1 root root 16M Sep 13 15:35 vault-plugin-auth-oci

@kalafut
Copy link
Contributor

kalafut commented Sep 13, 2019

Hi. Are you successfully using other plugins? Do you have https://www.vaultproject.io/docs/configuration/#api_addr set?

@kalafut kalafut self-assigned this Sep 13, 2019
@ldessemon2
Copy link
Author

Hi.
That's my first time.
Below my config :
ui = true
backend "file" {
path = "/var/lib/vault"
}

listener "tcp" {
address = "192.168.0.102:8200"
tls_disable = 1
}

plugin_directory = "/var/lib/vault/plugins/"
api_addr = "http://192.168.0.102:8200"

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