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

Plugin doesn't work on Vault Docker image based on Alpine Linux #28

Closed
binlab opened this issue Mar 23, 2020 · 6 comments
Closed

Plugin doesn't work on Vault Docker image based on Alpine Linux #28

binlab opened this issue Mar 23, 2020 · 6 comments

Comments

@binlab
Copy link

binlab commented Mar 23, 2020

The plugin doesn't work in Vault Docker image based on Alpine Linux

/etc/vault/plugins # wget https://github.com/LeSuisse/vault-gpg-plugin/releases/download/v0.2.2/linux_amd64.zip
...
linux_amd64.zip      100% |********************************************************************************************************************************************************************| 7401k  0:00:00 ETA
/etc/vault/plugins # unzip linux_amd64.zip 
Archive:  linux_amd64.zip
  inflating: linux_amd64.sha256sum
  inflating: vault-gpg-plugin
/etc/vault/plugins # ls -la vault-gpg-plugin 
-rwxr-xr-x    1 root     root      16041188 Mar 23 16:02 vault-gpg-plugin
/etc/vault/plugins # ./vault-gpg-plugin 
sh: ./vault-gpg-plugin: not found
/etc/vault/plugins # 

It seems a problem with a build. Can you check, please?

@binlab
Copy link
Author

binlab commented Mar 23, 2020

And yes, the same error from Vault

vault_mount.gpg: Creating...

Error: error writing to Vault: Error making API request.

URL: POST https://vault.example.com/v1/sys/mounts/gpg
Code: 400. Errors:

* fork/exec /etc/vault/plugins/vault-gpg-plugin: no such file or directory

  on gpg.tf line 11, in resource "vault_mount" "gpg":
  11: resource "vault_mount" "gpg" {

@LeSuisse
Copy link
Owner

Hi,

Thanks for the report. The binaries are built on amd64 machine with a glibc. The build script does not explicitly disable cgo so the resulting linux_amd64.zip does not work with Alpine.

@binlab
Copy link
Author

binlab commented Mar 23, 2020

Oh, I see. Can I ask you to configure additional artifacts for images based on musl library (without glibc)?

@binlab
Copy link
Author

binlab commented Mar 23, 2020

Already done - cbe6151
So fast, awesome! Thank you!

@LeSuisse
Copy link
Owner

New prebuilt binaries have been published under the v0.2.4 release.

https://github.com/LeSuisse/vault-gpg-plugin/releases/tag/v0.2.4

@binlab
Copy link
Author

binlab commented Mar 23, 2020

tested, now it works. Thanks!

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