Repository navigation
lifecycle/container: drop curl and runit - #24008
Conversation
✅ Deploy Preview for authentik-integrations ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #24008 +/- ##
==========================================
- Coverage 93.26% 93.24% -0.03%
==========================================
Files 1045 1045
Lines 61280 61280
Branches 424 424
==========================================
- Hits 57155 57141 -14
- Misses 4125 4139 +14
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
|
authentik PR Installation instructions Instructions for docker-composeAdd the following block to your AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-12e5bcbe2780b4770b678f37dcc9c9c3c8ea8b17
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)sAfterwards, run the upgrade commands from the latest release notes. Instructions for KubernetesAdd the following block to your authentik:
outposts:
container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
image:
repository: ghcr.io/goauthentik/dev-server
tag: gh-12e5bcbe2780b4770b678f37dcc9c9c3c8ea8b17Afterwards, run the upgrade commands from the latest release notes. |
| chmod ug+rwx /data | ||
| chmod ug+rx /certs | ||
| exec chpst -u authentik:"${GROUP}" env HOME=/authentik $(run_authentik "$@") | ||
| exec setpriv --reuid authentik --regid authentik --init-groups -- env HOME=/authentik $(run_authentik "$@") |
There was a problem hiding this comment.
--init-groups replaces the need for the group discovery above (now removed), since it reads /etc/groups directly
There was a problem hiding this comment.
Pull request overview
This PR reduces vulnerability surface area in the authentik server container image by removing runit and curl, and updates the container entrypoint to drop privileges using setpriv instead of chpst.
Changes:
- Remove
runitfrom the final runtime image and switch the entrypoint privilege drop fromchpsttosetpriv. - Purge
curl/libcurl4t64in the final runtime stage to lower reported CVEs.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| lifecycle/container/Dockerfile | Stops installing runit and purges curl/libcurl4t64 in the final image layer. |
| lifecycle/ak | Replaces chpst invocation with setpriv for running processes as the authentik user. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
We've previously added curl specifically because it's so useful for debugging. I don't really want to get rid of it. |
|
|
|
🍒 Cherry-pick to |
…on-2026.5) (#24114) lifecycle/container: drop curl and runit (#24008) Co-authored-by: Emil Burzo <[email protected]>
…on-2026.2) (#24113) Co-authored-by: Emil Burzo <[email protected]>
…int/ak-progress * web/typo/enterprise-status-card-properties: (41 commits) The language between licensed and isLicensed was confusing, so internally the progressBar expression uses 'allowed' for the number of licensed users, and 'licensed' for the overall state of the product. The severities ought to be in order, otherwise it's a mental pause. Another typo. Noticed a typo; prettier had an opinion. web/maint: clean-up ak-enterprise-status-card Some revisions to the enterprise status card. policies: make policy bindings expire-able (#24116) enterprise/endpoints/connectors/fleet: pass populate_policies (#24108) lifecycle/container: drop curl and runit (#24008) lib: move ExpiringModel to lib from core (#24109) web, docs, packages/*: Fix pnpm Workspace Catalogs (#23944) providers/oauth2: OpenID key binding support (#22590) core: bump github.com/go-ldap/ldap/v3 from 3.4.13 to 3.4.14 (#24088) core: bump uvicorn[standard] from 0.50.2 to 0.51.0 (#24089) core: bump coverage[toml] from 7.15.0 to 7.15.1 (#24090) core: bump uuid from 1.23.4 to 1.23.5 (#24091) core: bump json-subscriber from 0.2.8 to 0.3.0 (#24092) ci: bump softprops/action-gh-release from 3.0.1 to 3.0.2 (#24093) ci: bump actions/setup-node from 6.4.0 to 7.0.0 (#24094) ci: bump actions/setup-node from 6.4.0 to 7.0.0 in /.github/actions/setup (#24096) ...
|
Removing |
|
I agree. This should've been listed as breaking changes and possibly pushed to the minor release schedule rather being pushed as a patch. |
|
@thmo @SCBionicle sorry for the breakage, I was too eager to see the security improvements make it in the next patch release and I didn't consider people might be relying on |
Alternative to #23953
Differences:
runit(by changing fromchpsttosetpriv), which no longer pulls in a lot of perl dependenciesperl-baseinstalled since it's marked as an "essential" package in debianapt-get purgeto removecurlThe tradeoff is that we accept some
perl-baseCVEs (3 critical, 6 high), but leave dpkg/apt in a working state.Numbers
Before:
After: