Skip to content

rbac: guard for non-existent object in object permission API - #25601

Merged
gergosimonyi merged 2 commits into
mainfrom
rbac/fix-permission-removal
Sep 2, 2026
Merged

gergosimonyi merged 2 commits into
mainfrom
rbac/fix-permission-removal

Conversation

@gergosimonyi

Copy link
Copy Markdown
Member

Closes #25373

@gergosimonyi
gergosimonyi requested a review from a team as a code owner August 31, 2026 13:40
@gergosimonyi gergosimonyi added the backport/version-2026.8 Add this label to PRs to backport changes to version-2026.8 label Aug 31, 2026
@netlify

netlify Bot commented Aug 31, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit f135023
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/6a9584504c22f20008b5dfcc
😎 Deploy Preview https://deploy-preview-25601--authentik-integrations.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.

@netlify

netlify Bot commented Aug 31, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit f135023
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6a958450d1f46e0008fca594
😎 Deploy Preview https://deploy-preview-25601--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.

@codecov

codecov Bot commented Aug 31, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 98.18182% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 91.67%. Comparing base (1a424a3) to head (f135023).
⚠️ Report is 14 commits behind head on main.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
authentik/rbac/api/rbac_assigned_by_roles.py 97.14% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #25601      +/-   ##
==========================================
+ Coverage   91.57%   91.67%   +0.10%     
==========================================
  Files        1152     1152              
  Lines       73504    73531      +27     
  Branches     4054     4054              
==========================================
+ Hits        67311    67411     +100     
+ Misses       6151     6078      -73     
  Partials       42       42              
Flag Coverage Δ
conformance 34.37% <25.45%> (-0.02%) ⬇️
e2e 39.02% <25.45%> (+0.53%) ⬆️
integration 30.52% <25.45%> (-0.46%) ⬇️
rust 42.92% <ø> (ø)
unit 93.25% <98.18%> (+<0.01%) ⬆️
unit-migrate 93.27% <98.18%> (+<0.01%) ⬆️

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.

@github-actions

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-f1350238d0ea8db6f3e8ced0224274727a601e59
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-f1350238d0ea8db6f3e8ced0224274727a601e59

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

@gergosimonyi
gergosimonyi merged commit 9a1bd39 into main Sep 2, 2026
144 checks passed
@gergosimonyi
gergosimonyi deleted the rbac/fix-permission-removal branch September 2, 2026 08:10
@authentik-cherry-pick

Copy link
Copy Markdown
Contributor

🍒 Cherry-pick to version-2026.8 created: #25674

gergosimonyi added a commit that referenced this pull request Sep 2, 2026
…pick #25601 to version-2026.8) (#25674)

rbac: guard for non-existent object in object permission API (#25601)

* relocate serializers

* guard for non-existent object

Co-authored-by: Simonyi Gergő <[email protected]>
kensternberg-authentik added a commit that referenced this pull request Sep 8, 2026
…-flow-diagram

* web/admin/the-new-flow-diagram:
  web/elements: fix ak-diagram race condition (#25646)
  core: bump astral-sh/uv from 0.12.8 to 0.12.9 in /lifecycle/container (#25663)
  core: bump goauthentik/fips-python from `e9a21ec` to `5020143` in /lifecycle/container (#25664)
  ci: bump taiki-e/install-action from 2.87.1 to 2.87.2 in /.github/actions/setup (#25670)
  core: bump library/golang from `df98008` to `6fa523b` in /lifecycle/container (#25665)
  website/integrations: ghes: cleanup (#25661)
  rbac: add cleanup task for orphaned object permissions (#25602)
  rbac: guard for non-existent object in object permission API (#25601)
  core: bump aws-lc-rs from 1.18.0 to 1.18.1 (#25669)
  core: bump gssapi from 1.11.1 to 1.12.0 (#25666)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/version-2026.8 Add this label to PRs to backport changes to version-2026.8

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Assigned object permissions persist after object deletion, and manual removal erroneously deletes global permissions

2 participants