Repository navigation
enterprise/core: add scheduled user offboarding - #23624
Conversation
✅ Deploy Preview for authentik-integrations 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. |
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #23624 +/- ##
==========================================
+ Coverage 93.52% 93.56% +0.03%
==========================================
Files 1062 1076 +14
Lines 63848 64894 +1046
Branches 424 424
==========================================
+ Hits 59715 60718 +1003
- Misses 4133 4176 +43
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-836a1f8dba459f2f686e2fcac0777863d23b489f
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-836a1f8dba459f2f686e2fcac0777863d23b489fAfterwards, run the upgrade commands from the latest release notes. |
|
@gergosimonyi @BeryJu changes since review:
|
|
|
||
| # Import order sets model registration order, which the API schema's ModelEnum | ||
| # follows; review stays first to match the pre-split layout. | ||
| # isort: off |
There was a problem hiding this comment.
The # isort: off here pins review before offboarding so ModelEnum keeps its old order and this stays a zero-diff move in schema.yml and the generated clients. No problem to drop it and eat the reorder diff if you'd rather
gergosimonyi
left a comment
There was a problem hiding this comment.
Works for me, you may or may not want to wait for @BeryJu's review.
* main: (70 commits) web/enterprise: add UI for pending offboardings (#24266) website: enterprise CTA (#24416) enterprise/core: add scheduled user offboarding (#23624) website/integrations: Dashy: cleanup (#23636) website/integrations: Arcane: cleanup (#23694) website/integrations: MeshCentral: cleanup (#23685) website/integrations: Proxmox VE: cleanup (#23703) web/elements: key the message list so stacked toasts don't share state (#24361) core, web: update translations (#24411) web/admin: better table filter (#24368) ci: fix source-docs publish (#24405) core, web: update translations (#24364) translate: Updates for project authentik and language sk_SK (#24406) brands: fix schema for current brand's flags (#24376) website/integrations: Google Workspace: cleanup (#23637) website/integrations: Fleet: cleanup (#23692) website/integrations: engomo: cleanup (#23644) website/integrations: Forgejo: cleanup (#23642) website/integrations: Organizr: cleanup (#23640) website/integrations: Linkwarden: cleanup (#23639) ...
* main: (70 commits) web/enterprise: add UI for pending offboardings (#24266) website: enterprise CTA (#24416) enterprise/core: add scheduled user offboarding (#23624) website/integrations: Dashy: cleanup (#23636) website/integrations: Arcane: cleanup (#23694) website/integrations: MeshCentral: cleanup (#23685) website/integrations: Proxmox VE: cleanup (#23703) web/elements: key the message list so stacked toasts don't share state (#24361) core, web: update translations (#24411) web/admin: better table filter (#24368) ci: fix source-docs publish (#24405) core, web: update translations (#24364) translate: Updates for project authentik and language sk_SK (#24406) brands: fix schema for current brand's flags (#24376) website/integrations: Google Workspace: cleanup (#23637) website/integrations: Fleet: cleanup (#23692) website/integrations: engomo: cleanup (#23644) website/integrations: Forgejo: cleanup (#23642) website/integrations: Organizr: cleanup (#23640) website/integrations: Linkwarden: cleanup (#23639) ...
Details
Adds a way to schedule deactivating or deleting a user at a future time, instead of doing it by hand when someone leaves.
From a user's page (Admin > Users) there's a new "Schedule Offboarding" button. You pick an action (deactivate or delete), a date/time, and whether to also revoke their sessions and tokens.
A worker checks every 5 minutes and runs anything that's due. While one is pending, the button flips to "Cancel Offboarding", which asks for confirmation and keeps the record as canceled.
You can't schedule one for yourself or an internal service account, and a user can only have one pending at a time.
The actual deactivate/delete logic lives in a small
offboard_user()helper so it can be reused later by the policy-driven action lifecycle. Every run emits aUSER_OFFBOARDEDaudit event, attributed to the admin who scheduled it.Report UI
#24266
Related
#5375
#22823
Checklist
make all)make docs)