vault/enos/modules/k8s_deploy_vault
Vault Automation aca7f3740c
[VAULT-44098] containers: never attempt to run setcap when running as non-root user (#13988) (#14106)
In prior versions of the Vault container we'd set `ICP_LOCK` on the `vault`
binary at runtime via the entrypoint script. As we now run the Vault
container as an unprivileged user we have to set this capability at build time
as `setcap` cannot be run by unprivileged users.

This change updates the Alpine OCI and UBI container entrypoints
to not attempt to run `setcap` when running as non-root user.

Importantly, these changes introduce a *new requirement* whereby users of the
container must add `IPC_LOCK` capability to the container or pod or the
Vault service will fail to start. As running with locked memory is always our
guidance for Vault the containers now require this. Users that do not wish to grant
the `IPC_LOCK` capability will want to wrap the container unset the capability on
the binary during build time: `setcap cap_ipc_lock=-ep /bin/vault`.

Signed-off-by: Ryan Cragun <me@ryan.ec>
Co-authored-by: Ryan Cragun <me@ryan.ec>
2026-04-20 12:48:55 -06:00
..
main.tf [VAULT-44098] containers: never attempt to run setcap when running as non-root user (#13988) (#14106) 2026-04-20 12:48:55 -06:00
raft-config.hcl [QT-602] Run proxy and agent test scenarios (#23176) 2023-09-26 15:37:28 -06:00
variables.tf license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00