Skip to content

stages/authenticator: protect devices from stage deletion - #24324

Merged
dominic-r merged 3 commits into
mainfrom
dominic/preserve-authenticators-on-stage-delete
Jul 23, 2026
Merged

dominic-r merged 3 commits into
mainfrom
dominic/preserve-authenticators-on-stage-delete

Conversation

@dominic-r

@dominic-r dominic-r commented Jul 23, 2026 •

Copy link
Copy Markdown
Member

Deleting an SMS, email, or Duo, authenticator stage currently cascades into its associated devices or connections, allowing an administrator to unintentionally remove enrolled authenticators.

Details

What does this PR change?

Why is this change needed?

How was this tested?

Linked issues


Checklist

  • The project has been linted, built, and tested (make all)
  • The documentation has been updated and formatted (make docs)

Deleting an SMS, email, Duo, or GDTC authenticator stage currently cascades into its associated devices or connections, allowing an administrator to unintentionally remove enrolled authenticators.
@dominic-r
dominic-r requested a review from BeryJu July 23, 2026 15:11
@dominic-r dominic-r self-assigned this Jul 23, 2026
@dominic-r
dominic-r requested a review from a team as a code owner July 23, 2026 15:11
Copilot AI review requested due to automatic review settings July 23, 2026 15:11

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@BeryJu BeryJu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can probably leave out the GDTC stage since that's deprecated anyways otherwise yeah exactly this

@github-project-automation github-project-automation Bot moved this from Todo to In Progress in authentik Core Jul 23, 2026
@netlify

netlify Bot commented Jul 23, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 7f12685
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6a622f2d8da632000af969b4
😎 Deploy Preview https://deploy-preview-24324--authentik-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI review requested due to automatic review settings July 23, 2026 15:15

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@dominic-r
dominic-r enabled auto-merge (squash) July 23, 2026 15:15
@dominic-r
dominic-r disabled auto-merge July 23, 2026 15:16
@dominic-r
dominic-r enabled auto-merge (squash) July 23, 2026 15:16
@github-actions

github-actions Bot commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

authentik PR Installation instructions

Instructions for docker-compose

Add the following block to your .env file:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-5bdf09e90532c78c31350c6f8a82ca6c4ef2cb8a
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s

Afterwards, run the upgrade commands from the latest release notes.

Instructions for Kubernetes

Add the following block to your values.yml file:

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-5bdf09e90532c78c31350c6f8a82ca6c4ef2cb8a

Afterwards, run the upgrade commands from the latest release notes.

@codecov

codecov Bot commented Jul 23, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.45%. Comparing base (f0c5345) to head (5bdf09e).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #24324      +/-   ##
==========================================
- Coverage   93.50%   93.45%   -0.05%     
==========================================
  Files        1063     1063              
  Lines       64087    64108      +21     
  Branches      424      424              
==========================================
- Hits        59924    59914      -10     
- Misses       4163     4194      +31     
Flag Coverage Δ
conformance 35.43% <12.50%> (-0.02%) ⬇️
e2e 40.37% <12.50%> (-0.02%) ⬇️
integration 31.49% <12.50%> (-0.48%) ⬇️
rust 0.00% <ø> (ø)
unit 92.69% <100.00%> (+<0.01%) ⬆️
unit-migrate 91.38% <100.00%> (-1.34%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@dominic-r
dominic-r merged commit 020fe6d into main Jul 23, 2026
192 of 195 checks passed
@dominic-r
dominic-r deleted the dominic/preserve-authenticators-on-stage-delete branch July 23, 2026 16:16
@github-project-automation github-project-automation Bot moved this from In Progress to Done in authentik Core Jul 23, 2026
kensternberg-authentik added a commit that referenced this pull request Jul 23, 2026
* main: (172 commits)
  web/admin: QOL: Add "Expiring in `n` days" and "Expiring today" notices to LicenseStatusCard (#24300)
  stages/authenticator: protect devices from stage deletion (#24324)
  core: prompt securely when hashing passwords (#24126)
  events: show account changes in user event history (#24323)
  website/integrations: The Lounge: cleanup (#23628)
  ci: bump taiki-e/install-action from 2.83.4 to 2.84.0 in /.github/actions/setup (#24312)
  ci: add working dir prefix to file paths (#24319)
  core, web: update translations (#24304)
  packages/ak-common/tracing: make console subscriber optional (#24219)
  website: bump the build group in /website with 6 updates (#24305)
  core: bump pnpm/pnpm from 11.15.0 to 11.15.1 in /lifecycle/container (#24308)
  core: bump pnpm/pnpm from 11.15.0 to 11.15.1 in /website (#24309)
  core: bump constructs from 10.6.0 to 10.7.0 (#24310)
  core: bump uuid from 1.23.5 to 1.24.0 (#24311)
  enterprise/providers/ws_fed: add SAML 1.1 support (#23851)
  web/admin: enterprise status card properties (#24170)
  web/elements: update the progress bar (#24134)
  web/maint: upgrade ak-divider (#24082)
  web/bug: harmonize and make routine the display of tasks (part 6: sch… (#23859)
  web/maint: upgrade ak-toggle-group (#24038)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants