open-telemetry / opentelemetry-collector-releases

OpenTelemetry Collector Official Releases

Home Page:https://opentelemetry.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Non-consistent naming for system user

ldvc opened this issue · comments

Hi there, while working on deploying otelcol, I figured out that dedicated user for running otelcol binary is not very consistent.

Installing the Debian package:

  • otelcol => create user otel
  • otelcol-contrib => create user otelcol-contrib
root@debian11:~# getent passwd | grep -i otel
otel:x:996:996::/home/otel:/sbin/nologin
otelcol-contrib:x:995:995::/home/otelcol-contrib:/sbin/nologin

Is there any historical reason for that? Why not using the same username for both distributions?

P.S. if needed I can try to work on a PR for normalizing this.

I guess I'm guilty of this one. What I had in mind back then is that we could have two instances of the collector running on the same machine, each instance using a specific distribution. On that case, it could be useful to have each distribution to have its own user, but I can accept arguments that they should be the same.

I would have a different opinion about other distributions though: a third-party distribution should definitely specify its own user.