Skip to content

fix(docker): add non-root supportbot user and switch to it#489

Merged
ReenigneArcher merged 1 commit intomasterfrom
fix/docker/run-with-supportbot-user
Feb 16, 2026
Merged

fix(docker): add non-root supportbot user and switch to it#489
ReenigneArcher merged 1 commit intomasterfrom
fix/docker/run-with-supportbot-user

Conversation

@ReenigneArcher
Copy link
Member

Description

Create a non-root user (supportbot, uid 1000) in the Dockerfile, set its home and shell, and switch the container to run as that user. Also update ownership of /app and /data (chown -R supportbot:supportbot) so the new user can access runtime files. This improves container security by avoiding running the app as root while keeping the existing install and startup steps intact.

Screenshot

Issues Fixed or Closed

Roadmap Issues

Type of Change

  • feat: New feature (non-breaking change which adds functionality)
  • fix: Bug fix (non-breaking change which fixes an issue)
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semicolons, etc.)
  • refactor: Code change that neither fixes a bug nor adds a feature
  • perf: Code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • build: Changes that affect the build system or external dependencies
  • ci: Changes to CI configuration files and scripts
  • chore: Other changes that don't modify src or test files
  • revert: Reverts a previous commit
  • BREAKING CHANGE: Introduces a breaking change (can be combined with any type above)

Checklist

  • Code follows the style guidelines of this project
  • Code has been self-reviewed
  • Code has been commented, particularly in hard-to-understand areas
  • Code docstring/documentation-blocks for new or existing methods/components have been added or updated
  • Unit tests have been added or updated for any new or modified functionality

AI Usage

  • None: No AI tools were used in creating this PR
  • Light: AI provided minor assistance (formatting, simple suggestions)
  • Moderate: AI helped with code generation or debugging specific parts
  • Heavy: AI generated most or all of the code changes

@codecov
Copy link

codecov bot commented Feb 16, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 60.09%. Comparing base (268c347) to head (96b5b7e).
⚠️ Report is 1 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #489   +/-   ##
=======================================
  Coverage   60.09%   60.09%           
=======================================
  Files          25       25           
  Lines        1812     1812           
=======================================
  Hits         1089     1089           
  Misses        723      723           

@ReenigneArcher ReenigneArcher force-pushed the fix/docker/run-with-supportbot-user branch 2 times, most recently from 30afccf to 30e42d8 Compare February 16, 2026 02:57
Create a non-root user (supportbot, uid 1000) in the Dockerfile, set its home and shell, and switch the container to run as that user. Also update ownership of /app and /data (chown -R supportbot:supportbot) so the new user can access runtime files. This improves container security by avoiding running the app as root while keeping the existing install and startup steps intact.
@ReenigneArcher ReenigneArcher force-pushed the fix/docker/run-with-supportbot-user branch from 30e42d8 to 96b5b7e Compare February 16, 2026 03:00
@sonarqubecloud
Copy link

@ReenigneArcher ReenigneArcher merged commit 4720189 into master Feb 16, 2026
17 checks passed
@ReenigneArcher ReenigneArcher deleted the fix/docker/run-with-supportbot-user branch February 16, 2026 03:10
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.

1 participant