mongodb / vault-plugin-secrets-mongodbatlas

ARCHIVED - Hashicorp Vault MongoDB Atlas Secrets Engine - Now hosted at https://github.com/hashicorp/vault-plugin-secrets-mongodbatlas/
Mozilla Public License 2.0
15 stars 11 forks source link

* error creating database object: Unrecognized remote plugin message #21

Closed JnMik closed 4 years ago

JnMik commented 4 years ago

Hello ! I found an issue using the plugin with my Vault setup (Version 1.2.3)

I built the plugin and uploaded the binary to my vault server in /opt/vault/plugins.

I was able to register the plugin with

SHASUM=$(shasum -a 256 /opt/vault/plugins/mongodbatlas-database-plugin | cut -d' ' -f1)
vault write sys/plugins/catalog/database/mongodbatlas-database-plugin sha256=$SHASUM command="mongodbatlas-database-plugin"

But when I try to add a database config it fails:

vault write database/config/mongodb plugin_name="mongodbatlas-database-plugin" allowed_roles="<roles>" apiID="<api_id>" apiKey="<api_key>" groupID="<group_id>"
Error writing data to database/config/mongodb: Error making API request.

URL: PUT https://127.0.0.1:8200/v1/database/config/mongodb
Code: 400. Errors:

* error creating database object: Unrecognized remote plugin message: 

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

Is it an compatibility issue between the plugin latest version and vault latest version ?

Thx !

JnMik commented 4 years ago

I found more informations regarding the error in journalctl -xef, I don't think this is plugin related

cfengliu commented 4 years ago

I ran into the same problem. How did you solve this? thx