Skip to content

chore: add default user for enhanced security #267

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

Merged
merged 1 commit into from
Dec 26, 2023
Merged

chore: add default user for enhanced security #267

merged 1 commit into from
Dec 26, 2023

Conversation

appleboy
Copy link
Owner

  • Add a new .hadolint.yaml configuration file with specific rule ignores
  • Update the Dockerfile to install ca-certificates without a fixed version
  • Add commands to create a deploy user and group with UID and GID 1000, set home directory, and set ownership
  • Set the Docker container to run as the deploy user with UID and GID 1000

- Add a new `.hadolint.yaml` configuration file with specific rule ignores
- Update the Dockerfile to install `ca-certificates` without a fixed version
- Add commands to create a `deploy` user and group with UID and GID `1000`, set home directory, and set ownership
- Set the Docker container to run as the `deploy` user with UID and GID `1000`

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Copy link

codecov bot commented Dec 26, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (037e023) 38.46% compared to head (a6841ff) 38.46%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #267   +/-   ##
=======================================
  Coverage   38.46%   38.46%           
=======================================
  Files           2        2           
  Lines         468      468           
=======================================
  Hits          180      180           
  Misses        288      288           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@appleboy appleboy merged commit aa9314a into master Dec 26, 2023
@appleboy appleboy deleted the user branch December 26, 2023 05:29
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