Skip to content

blueprints: handle integrity exception when applying blueprints - #22599

Merged
BeryJu merged 1 commit into
mainfrom
blueprints/fix-race-condition-apply-blueprint-startup
Jun 8, 2026
Merged

BeryJu merged 1 commit into
mainfrom
blueprints/fix-race-condition-apply-blueprint-startup

Conversation

@BeryJu

@BeryJu BeryJu commented May 24, 2026

Copy link
Copy Markdown
Member

this can happen when the server/worker are starting and you also try to apply blueprints with ak apply_blueprint, as seen in https://github.com/goauthentik/action-setup-authentik

this can happen when the server/worker are starting and you also try to apply blueprints with `ak apply_blueprint`, as seen in https://github.com/goauthentik/action-setup-authentik
@BeryJu
BeryJu requested a review from a team as a code owner May 24, 2026 00:21
@BeryJu BeryJu added backport/version-2026.2 Add this label to PRs to backport changes to version-2026.2 backport/version-2026.5 Add this label to PRs to backport changes to version-2026.5 labels May 24, 2026
@netlify

netlify Bot commented May 24, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 5d11be2
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6a124485aaeca500088a7100
😎 Deploy Preview https://deploy-preview-22599--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 May 24, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 24.00000% with 19 lines in your changes missing coverage. Please review.
✅ Project coverage is 93.22%. Comparing base (3e74ab9) to head (5d11be2).
⚠️ Report is 97 commits behind head on main.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
authentik/blueprints/v1/importer.py 24.00% 19 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #22599      +/-   ##
==========================================
- Coverage   93.29%   93.22%   -0.08%     
==========================================
  Files        1033     1033              
  Lines       60091    60115      +24     
  Branches      400      400              
==========================================
- Hits        56062    56040      -22     
- Misses       4029     4075      +46     
Flag Coverage Δ
conformance 36.59% <24.00%> (-0.01%) ⬇️
e2e 41.85% <24.00%> (-0.01%) ⬇️
integration 32.53% <4.00%> (-0.51%) ⬇️
rust 0.00% <ø> (ø)
unit 92.19% <24.00%> (-0.03%) ⬇️
unit-migrate 92.24% <24.00%> (-0.03%) ⬇️

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

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

@BeryJu
BeryJu requested review from gergosimonyi and rissson May 26, 2026 21:35
@github-actions

github-actions Bot commented Jun 3, 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-5d11be261c257b68c2670cb52deca26b7c85766f
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-5d11be261c257b68c2670cb52deca26b7c85766f

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

@BeryJu
BeryJu merged commit 519a4d7 into main Jun 8, 2026
164 of 167 checks passed
@BeryJu
BeryJu deleted the blueprints/fix-race-condition-apply-blueprint-startup branch June 8, 2026 13:24
@authentik-automation

Copy link
Copy Markdown
Contributor

🍒 Cherry-pick to version-2026.2 created: #22926

@authentik-automation

Copy link
Copy Markdown
Contributor

🍒 Cherry-pick to version-2026.5 created: #22927

BeryJu added a commit that referenced this pull request Jun 8, 2026
…ry-pick #22599 to version-2026.5) (#22927)

blueprints: handle integrity exception when applying blueprints (#22599)

this can happen when the server/worker are starting and you also try to apply blueprints with `ak apply_blueprint`, as seen in https://github.com/goauthentik/action-setup-authentik

Co-authored-by: Jens L. <[email protected]>
BeryJu added a commit that referenced this pull request Jun 8, 2026
…ry-pick #22599 to version-2026.2) (#22926)

blueprints: handle integrity exception when applying blueprints (#22599)

this can happen when the server/worker are starting and you also try to apply blueprints with `ak apply_blueprint`, as seen in https://github.com/goauthentik/action-setup-authentik

Co-authored-by: Jens L. <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/version-2026.2 Add this label to PRs to backport changes to version-2026.2 backport/version-2026.5 Add this label to PRs to backport changes to version-2026.5

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants