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

How to install on vault #2

Open
axlsmit opened this issue Jun 12, 2017 · 4 comments
Open

How to install on vault #2

axlsmit opened this issue Jun 12, 2017 · 4 comments
Assignees

Comments

@axlsmit
Copy link

axlsmit commented Jun 12, 2017

I´ve tried to install the plugin into vault with this command

vault` write -address=${VAULT_ADDR} sys/plugins/catalog/oracle-database-plugin sha_256=c74137c46c18dfed18017bde75a025325a3ed4e3d6416ca905914504983cf184 command="./github.com/gdavison/vault-oracle"

but i have the following result error


Error writing data to sys/plugins/catalog/oracle-database-plugin: Error making API request.

URL: PUT http://127.0.0.1:8200/v1/sys/plugins/catalog/oracle-database-plugin
Code: 500. Errors:

* 1 error occurred:

* can not execute files outside of configured plugin directory

I suspect the command argument is not valid but also I'm not sure if I have the right binary file.
In my pkg folder I have this

folder vault-oracle
file vault-oracle.a

Please, any help would be appreciated.

@gdavison
Copy link
Owner

I can get back to you with more info later today, but in a nutshell, Vault will only load plugins from a plugin directory. By default, it is not configured, but the config setting plugin_directory (https://www.vaultproject.io/docs/configuration/index.html#plugin_directory) will set it.

I will update the documentation as well.

@gdavison gdavison self-assigned this Jun 13, 2017
@axlsmit
Copy link
Author

axlsmit commented Jun 14, 2017

Hi gdavison, thanks for answer.
ok, this is a good point but I have to tell you in my file config to start vault I´ve assigned the pugin_directory with
plugin_directory = "/vaultconfig/plugins/"
in this directory I have the following folder structure
/vaultconfig/plugins/github.com/gdavison/
and in gdavison folder exists the vault-oracle folder and the vault-oracle.a file (assume that this is the binary file)
I'm a beginner in goland and vault so any update would be appreciated.
Thank you so much.

@gdavison
Copy link
Owner

@axlsmit if you run go build -o oracle-database-plugin ./plugin to build the plugin, then oracle-database-plugin is the file that you want to put in /vaultconfig/plugins/. I don't know if subdirectories inside /vaultconfig/plugins/ will work.

@gdavison
Copy link
Owner

@axlsmit I've updated the documentation. Can you let me know if it is more clear now?

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