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

[Docker] Plugin Doesn't Work When Vault Runs With CAP_IPC_LOCK Set #23

Open
marcboudreau opened this issue Jun 21, 2019 · 0 comments
Open

Comments

@marcboudreau
Copy link
Owner

When running Vault with the CAP_IPC_LOCK capability set (the default), this plugin won't work unless the plugin binary file also has the capability set using the setcap cap_ipc_lock=+ep $VAULT_CIRCLECI_AUTH_PLUGIN_PATH.

The vault Docker image runs the above mentioned command on the vault binary file, and only that file, which rules out a scheme where the plugin binary file is volume mounted into the Docker container running Vault. The alternative is to build a Docker image based on the vault Docker image then adds the plugin binary file, and extends the entry point script so that it also sets the capability on the plugin binary file.

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

1 participant