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

unable to setup using vault 1.12.2 #26

Open
datagen24 opened this issue Feb 6, 2023 · 2 comments
Open

unable to setup using vault 1.12.2 #26

datagen24 opened this issue Feb 6, 2023 · 2 comments

Comments

@datagen24
Copy link

following the instructions I get vault API errors indicating a library is out of date

the SDK version has reved substantially from the one used in the go.mod file from 0.1.12 (released Jul 25, 2019) to 0.7.0 (released Jan 13, 2023)
I have been testing and I have been able to build with the SDK up 0.3.0 but I still get the following error

--
Error enabling: Error making API request.

URL: POST http://localhost:8200/v1/sys/mounts/op
Code: 400. Errors:

  • invalid backend version: 2 errors occurred:
    • Unrecognized remote plugin message:

This usually means that the plugin is either invalid or simply
needs to be recompiled to support the latest protocol.
* Unrecognized remote plugin message:

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

--

The error indicates an out of date SDK / protocol is being used

@datagen24
Copy link
Author

Adding when attempting to build with SDK past 0.4.1 I get the following
error.

vendor/github.com/hashicorp/go-secure-stdlib/parseutil/parseutil.go:453:36: undefined: math.MinInt
vendor/github.com/hashicorp/go-secure-stdlib/parseutil/parseutil.go:453:49: undefined: math.MaxInt
vendor/github.com/hashicorp/go-secure-stdlib/parseutil/parseutil.go:491:41: undefined: math.MinInt
vendor/github.com/hashicorp/go-secure-stdlib/parseutil/parseutil.go:491:54: undefined: math.MaxInt

I am not a programer, but I am a sysadmin security nut so fixing this is beyond me, more than happy to help

@ag-adampike
Copy link
Member

Hi @datagen24!

I believe this is a duplicate of #18. The actual issue is incorrect instructions when writing the configuration (see #18 (comment) and #18 (comment))

If you start over with the pinned SDK version, it should work using the correct op/ path:

vault write op/config @op-connect-config.json

I've tested this recently and it works on the latest version of Vault server. I'm submitting a PR shortly that will contain corrected instructions. :-)

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