Skip to content

lifecycle/migrate: fix migration failing if killed during first startup #14207

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 24, 2025

Conversation

rissson
Copy link
Member

@rissson rissson commented Apr 24, 2025

Details

Closes #14201


Checklist

  • Local tests pass (ak test authentik/)
  • The code has been formatted (make lint-fix)

If an API change has been made

  • The API schema has been updated (make gen-build)

If changes to the frontend have been made

  • The code has been formatted (make web)

If applicable

  • The documentation has been updated
  • The documentation has been formatted (make website)

Co-authored-by: Taylor Jones <bigfootjonesy@gmail.com>
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
@rissson rissson self-assigned this Apr 24, 2025
@rissson rissson requested a review from a team as a code owner April 24, 2025 11:06
Copy link

netlify bot commented Apr 24, 2025

Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit 7f23e28
🔍 Latest deploy log https://app.netlify.com/sites/authentik-storybook/deploys/680a1b1fc55fe30009d58cd7
😎 Deploy Preview https://deploy-preview-14207--authentik-storybook.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 site configuration.

Copy link

netlify bot commented Apr 24, 2025

Deploy Preview for authentik-docs canceled.

Name Link
🔨 Latest commit 7f23e28
🔍 Latest deploy log https://app.netlify.com/sites/authentik-docs/deploys/680a1b1f78d4450008f50c53

@rissson rissson enabled auto-merge (squash) April 24, 2025 11:07
Copy link

codecov bot commented Apr 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.75%. Comparing base (ea22abc) to head (7f23e28).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #14207      +/-   ##
==========================================
+ Coverage   92.70%   92.75%   +0.05%     
==========================================
  Files         809      809              
  Lines       41533    41533              
==========================================
+ Hits        38505    38526      +21     
+ Misses       3028     3007      -21     
Flag Coverage Δ
e2e 47.85% <ø> (+0.07%) ⬆️
integration 24.39% <ø> (ø)
unit 90.57% <ø> (ø)

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.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@rissson rissson merged commit 0df4824 into main Apr 24, 2025
90 checks passed
@rissson rissson deleted the fix-migration-tenant-to-brand branch April 24, 2025 11:20
Copy link
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-7f23e2898c80b773952119e17b0e985b18a65082
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-7f23e2898c80b773952119e17b0e985b18a65082

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

kensternberg-authentik added a commit that referenced this pull request Apr 25, 2025
* main:
  web: Safari fixes merge branch (#14181)
  website: bump the build group in /website with 9 updates (#14204)
  website: bump typescript from 5.8.2 to 5.8.3 in /website (#13786)
  lifecycle/migrate: fix migration failing if killed during first startup (#14207)
  core, web: update translations (#14203)
  lifecycle/aws: bump aws-cdk from 2.1010.0 to 2.1012.0 in /lifecycle/aws (#14205)
  website/integrations: improves netbird documentation (#14191)
  website/docs: updated user count info (#14186)
  website/docs: rearranged brands docs (#14116)
  website: integrations: apache guacamole: remove redirect URI comments (#14113)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migration fails permanently if container is killed during initial bootstrap
2 participants