Repository navigation
Drop unused coldfront system user; silence lakekeeper adduser warning - #171
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Up to standards ✅🟢 Issues
|
|
@maqeel75 I thought we were not using the coldfront user? Why create a homedir? |
This doesn't create a home dir, it's just suppressing the warning that some platforms emit when they notice they're not creating the homedir specified for the user. The assumption when using that flag is that the dir already exists, but when it doesn't, |
|
@maqeel75 my question is why are we adding the user and group if we're not using them |
|
Hmm. Interesting point. Why indeed? |
…inst adduser 3.118-3.134 (jammy, bullseye, bookworm) warns "The home dir ... can't be accessed" whenever --no-create-home points at a missing directory, but only in verbose mode. Pass --quiet to addgroup and adduser so package installs are silent; the home path and account are unchanged.
The user and group only owned /etc/pgedge/coldfront/config.yaml, which f07f10e stopped installing. No ColdFront tool runs as them. Remove the deb postinst and its adduser dependency, and the RPM %pre and its shadow-utils requirement. Upgrades leave an existing user in place.
49119d9 to
a79756c
Compare
|
@vyruss @bonesmoses Good question. The f07f10e stopped installing that file and moved the example to So this PR now drops the user from both the deb (postinst and |
Problem
Installing
pgedge-coldfront(andpgedge-lakekeeper) on bookworm prints:The
coldfrontsystem user was added so it could own/etc/pgedge/coldfront/config.yaml(0600, it held credentials). f07f10e stopped installing that file, and nothing else uses the user: no systemd unit, cron entry, owned file, or doc tells anyone to run the tools as it. Thecoldfrontmatches in CI and docs are the Postgres role, not the OS account.Fix
adduserdependency are removed, and so are the RPM%preandRequires(pre): shadow-utils. Upgrades leave an existingcoldfrontuser in place.lakekeeper. It passes--quiettoaddgroupandadduser, because adduser 3.118–3.134 warns about a missing--homepath in verbose mode even with--no-create-home.Testing
Built from the branch with stub binaries, stub syft and a throwaway GPG key, alongside the same packages built from
main: