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

secretFiles are not chowned correctly in services using DynamicUser #56

Open
Mic92 opened this issue Jun 1, 2022 · 0 comments
Open

Comments

@Mic92
Copy link

Mic92 commented Jun 1, 2022

When User/Group on a systemd service using DynamicUser are set it will break:

serviceConfig = {             
  Restart = "always";         
  DynamicUser = true;         
  User = "grafana-agent";     
  Group = "grafana-agent"; 
...
}
Jun 01 16:26:51 vault-00 5vhm1wk4czcva1xj4v79rszsaparjy37-precreate-dirs-for-grafana-agent[341435]: + chown grafana-agent:grafana-agent /tmp/detsys-vault/
Jun 01 16:26:51 vault-00 5vhm1wk4czcva1xj4v79rszsaparjy37-precreate-dirs-for-grafana-agent[341438]: chown: invalid user: ‘grafana-agent:grafana-agent’

But also if the User/Group field is not set it will not chown the secret at all.

@Mic92 Mic92 changed the title Breaks with DynamicUser secretFiles are not chowned correctly in services using DynamicUser Jun 1, 2022
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