Skip to content

Test from a fork: USER alias for UID 0 - #24

Closed
bobbyonmagic wants to merge 3 commits into
The-DevOps-Daily:mainfrom
bobbyonmagic:fork/root-alias
Closed

bobbyonmagic wants to merge 3 commits into
The-DevOps-Daily:mainfrom
bobbyonmagic:fork/root-alias

Conversation

@bobbyonmagic

Copy link
Copy Markdown
Contributor

Grader test: USER names a passwd entry with UID 0 and the entrypoint drops privileges. Must fail the non-root check.

@bobbyonmagic bobbyonmagic added the not-counted Left out of pass counts (test runs, abuse) label Oct 24, 2026
@github-actions

Copy link
Copy Markdown

Shrink the image: not passed yet

Check Result Details
The image builds pass Built in 8 seconds.
Under 200 MB pass The image is 125 MB. The limit is 200 MB.
Runs as a non-root user fail USER resolves to UID 0, which is root.
Starts and answers /health pass GET /health answered 200 after 0.6 seconds.
The app still works pass GET /slugify returned the right slugs for 5 random texts; errors and server match the Flask app under gunicorn.

Graded commit c1e553b with the grader from main (run log).

Push a new commit to this branch and the grader runs again.

@github-actions github-actions Bot added the challenge:shrink-the-image Submission for the shrink-the-image challenge label Oct 24, 2026
@github-actions

Copy link
Copy Markdown

Shrink the image: not passed yet

Check Result Details
The image builds pass Built in 8 seconds.
Under 200 MB pass The image is 125 MB. The limit is 200 MB.
Runs as a non-root user fail Docker could not start the image as USER toor: .grader-a2c56c894305eede: applet not found
Starts and answers /health pass GET /health answered 200 after 0.7 seconds.
The app still works pass GET /slugify gave app.py's answers in 8 rounds of random texts; error pages and server match Flask under gunicorn.

Graded commit c2d8362 with the grader from main (run log).

Push a new commit to this branch and the grader runs again.

@github-actions

Copy link
Copy Markdown

Shrink the image: not passed yet

Check Result Details
The image builds pass Built in 8 seconds.
Under 200 MB pass The image is 125 MB. The limit is 200 MB.
Runs as a non-root user fail USER resolves to UID 0, which is root.
Starts and answers /health pass GET /health answered 200 after 0.6 seconds.
The app still works pass GET /slugify gave app.py's answers in 9 rounds of random texts; error pages and server match Flask under gunicorn.

Graded commit 18229b3 with the grader from main (run log).

Push a new commit to this branch and the grader runs again.

@bobbyonmagic
bobbyonmagic deleted the fork/root-alias branch October 24, 2026 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

challenge:shrink-the-image Submission for the shrink-the-image challenge not-counted Left out of pass counts (test runs, abuse)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant