Skip to content

Drop unused coldfront system user; silence lakekeeper adduser warning - #171

Merged
vyruss merged 3 commits into
mainfrom
fix/deb-adduser-quiet
Dec 3, 2026
Merged

vyruss merged 3 commits into
mainfrom
fix/deb-adduser-quiet

Conversation

@maqeel75

@maqeel75 maqeel75 commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

Problem

Installing pgedge-coldfront (and pgedge-lakekeeper) on bookworm prints:

adduser: Warning: The home dir /var/lib/coldfront you specified can't be accessed: No such file or directory

The coldfront system 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. The coldfront matches in CI and docs are the Postgres role, not the OS account.

Fix

  • pgedge-coldfront: stop creating the user and group. The deb postinst and its adduser dependency are removed, and so are the RPM %pre and Requires(pre): shadow-utils. Upgrades leave an existing coldfront user in place.
  • pgedge-lakekeeper: keeps its user, since the systemd unit runs as lakekeeper. It passes --quiet to addgroup and adduser, because adduser 3.118–3.134 warns about a missing --home path in verbose mode even with --no-create-home.
  • Changelog entry under Unreleased / Changed.

Testing

Built from the branch with stub binaries, stub syft and a throwaway GPG key, alongside the same packages built from main:

Distro Fresh install Upgrade from main lakekeeper
jammy, noble, resolute, bookworm, trixie no warning, no coldfront user clean, existing user kept no warning, user created
AlmaLinux 9, 10 no scriptlets, no user clean, existing user kept —

@maqeel75
maqeel75 requested review from a team and vyruss as code owners December 2, 2026 19:25
@coderabbitai

coderabbitai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Coldfront Debian and RPM packages no longer create the coldfront system user or group during installation. The Debian package drops its adduser dependency. The Lakekeeper Debian post-install script adds quiet mode to account creation commands.

Changes: Coldfront account creation

Layer / File(s) Summary
Remove Coldfront account creation
packaging/coldfront-bin/deb/debian/pgedge-coldfront.postinst, packaging/coldfront-bin/deb/debian/control, packaging/coldfront-bin/rpm/coldfront.spec, docs/changelog.md
The Debian and RPM packages no longer create the coldfront system user or group. The Debian package removes its adduser dependency. The changelog states that upgrades leave existing accounts in place.

Lakekeeper quiet account creation

Layer / File(s) Summary
Quiet account creation commands
packaging/lakekeeper/deb/debian/postinst
Group and user creation commands add --quiet. Existing checks and other creation options remain unchanged.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Merge Risk: Minimal · previous review a7975

The Coldfront packages no longer create an unused system user and group, and the Lakekeeper installer no longer prints a missing-home-directory warning. Existing accounts stay in place on upgrade, so no merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Title check Passed The title names the two main changes: dropping the unused coldfront system user and silencing the lakekeeper adduser warning. Both match the changeset, which removes the coldfront user/group from the …
Description check Passed The description states the problem (the adduser home-dir warning on bookworm), the fix (removing the coldfront user and group and the deb/RPM scriptlets, and adding --quiet for lakekeeper), a changelo…
Full details: Title check

Explanation

The title names the two main changes: dropping the unused coldfront system user and silencing the lakekeeper adduser warning. Both match the changeset, which removes the coldfront user/group from the deb and RPM packaging and adds --quiet to lakekeeper's postinst. The title is specific and concise.

Full details: Description check

Explanation

The description states the problem (the adduser home-dir warning on bookworm), the fix (removing the coldfront user and group and the deb/RPM scriptlets, and adding --quiet for lakekeeper), a changelog entry, and a testing table. All of this matches the changeset.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 49119d9 and a79756c.

Files selected for processing: 4

  • docs/changelog.md
  • packaging/coldfront-bin/deb/debian/control
  • packaging/coldfront-bin/deb/debian/pgedge-coldfront.postinst
  • packaging/coldfront-bin/rpm/coldfront.spec
Files with no reviewable changes: 3

  • packaging/coldfront-bin/deb/debian/control
  • packaging/coldfront-bin/deb/debian/pgedge-coldfront.postinst
  • packaging/coldfront-bin/rpm/coldfront.spec

Included review availability: This review used your included allowance. 7 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 8 reviews per hour.

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@vyruss

vyruss commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

@maqeel75 I thought we were not using the coldfront user? Why create a homedir?

bonesmoses
bonesmoses previously approved these changes Dec 2, 2026

@bonesmoses bonesmoses left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, please.

@bonesmoses

Copy link
Copy Markdown
Member

@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, adduser whines about it.

@vyruss

vyruss commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

@maqeel75 my question is why are we adding the user and group if we're not using them

@bonesmoses

Copy link
Copy Markdown
Member

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.
@maqeel75

maqeel75 commented Dec 3, 2026

Copy link
Copy Markdown
Member Author

@vyruss @bonesmoses Good question. The coldfront system user was added in #44 so it could own /etc/pgedge/coldfront/config.yaml, which the package shipped as coldfront:coldfront 0600 because it held the Postgres DSN and object-store credentials.

f07f10e stopped installing that file and moved the example to /usr/share/doc/pgedge-coldfront/examples/, but left the user creation behind. Nothing uses the user now. No systemd unit, cron entry, packaged file or doc refers to it, and the coldfront in CI and the docs is the Postgres role, not the OS account.

So this PR now drops the user from both the deb (postinst and adduser dependency) and the RPM (%pre and shadow-utils). Upgrades leave an existing coldfront user in place. Lakekeeper keeps its user, because its systemd unit runs as lakekeeper, and gets only the --quiet fix for the warning. I tested fresh installs and upgrades from main on jammy, noble, resolute, bookworm, trixie and AlmaLinux 9 and 10.

@maqeel75 maqeel75 changed the title Silence adduser home-dir warning in coldfront and lakekeeper deb postinst Drop unused coldfront system user; silence lakekeeper adduser warning Dec 3, 2026
@maqeel75
maqeel75 requested a review from bonesmoses December 3, 2026 02:19
Comment thread docs/changelog.md Resolved
@vyruss
vyruss merged commit 7013479 into main Dec 3, 2026
10 checks passed
@maqeel75
maqeel75 deleted the fix/deb-adduser-quiet branch December 3, 2026 10:13
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

Successfully merging this pull request may close these issues.

3 participants