Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

UUID for vault user #312

Open
nax71 opened this issue Jan 10, 2023 · 2 comments
Open

UUID for vault user #312

nax71 opened this issue Jan 10, 2023 · 2 comments

Comments

@nax71
Copy link

nax71 commented Jan 10, 2023

The vault user is uuid in the container docker file is 100.

It is better to can parameter this.

For instance on OCI Oracle cloud uuid 100 is dedicated to
systemd-network:x:100:102:systemd Network Management,,,:/run/systemd:/usr/sbin/nologin

Due to this the vault created bellongs to systemd-network which is wired.

@thanos1983
Copy link

thanos1983 commented Feb 24, 2023

I was about to raise the same issue. If possible can the community update the image to use ENVIRONMENT Variable for UID / GID so we can overwrite on startup.

@Joffrey54
Copy link

You can overwrite.
Exemple for an agent for my Prometheus docker service:

docker run -d --name vault-agent -u $(id -u nobody):$(id -g nobody) -p 18202:8200  --rm -e SKIP_SETCAP=true \
  --volume /root/vault-agent:/vault-agent:ro \
  --volume /root/prometheus/vault-agent:/vault-prometheus:rw \
  --volume /etc/ssl/certs:/etc/ssl/certs \
  --entrypoint vault \
  hashicorp/vault agent -config=/vault-agent/vault-agent-prometheus.hcl

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants