Skip to content

stages/authenticator_webauthn: optimize device types creation#9932

Merged
rissson merged 2 commits intomainfrom
webauthn-mds-optimize-db-creation
Jun 1, 2024
Merged

stages/authenticator_webauthn: optimize device types creation#9932
rissson merged 2 commits intomainfrom
webauthn-mds-optimize-db-creation

Conversation

@rissson
Copy link
Member

@rissson rissson commented May 31, 2024

Details

Small improvement to avoid long-running transactions.


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)

@rissson rissson self-assigned this May 31, 2024
@rissson rissson requested a review from a team as a code owner May 31, 2024 15:04
@netlify
Copy link

netlify bot commented May 31, 2024

Deploy Preview for authentik-storybook canceled.

Name Link
🔨 Latest commit afe1b79
🔍 Latest deploy log https://app.netlify.com/sites/authentik-storybook/deploys/6659e7649dc7060008459969

@netlify
Copy link

netlify bot commented May 31, 2024

Deploy Preview for authentik-docs canceled.

Name Link
🔨 Latest commit afe1b79
🔍 Latest deploy log https://app.netlify.com/sites/authentik-docs/deploys/6659e7640e6452000876953c

Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
@rissson rissson force-pushed the webauthn-mds-optimize-db-creation branch from c2c3264 to 15f069a Compare May 31, 2024 15:04
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
@codecov
Copy link

codecov bot commented May 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.63%. Comparing base (1cac149) to head (afe1b79).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #9932   +/-   ##
=======================================
  Coverage   92.63%   92.63%           
=======================================
  Files         710      710           
  Lines       34767    34771    +4     
=======================================
+ Hits        32205    32210    +5     
+ Misses       2562     2561    -1     
Flag Coverage Δ
e2e 49.65% <0.00%> (-0.01%) ⬇️
integration 25.49% <0.00%> (-0.01%) ⬇️
unit 90.09% <100.00%> (+<0.01%) ⬆️

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.

@github-actions
Copy link
Contributor

github-actions bot commented May 31, 2024

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-ghcr.io/goauthentik/dev-server:gh-afe1b79fec5b97ee1b8bde8351f31905098d5d45
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s

For arm64, use these values:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-ghcr.io/goauthentik/dev-server:gh-afe1b79fec5b97ee1b8bde8351f31905098d5d45-arm64
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
image:
    repository: ghcr.io/goauthentik/dev-server
    tag: gh-ghcr.io/goauthentik/dev-server:gh-afe1b79fec5b97ee1b8bde8351f31905098d5d45

For arm64, use these values:

authentik:
    outposts:
        container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
image:
    repository: ghcr.io/goauthentik/dev-server
    tag: gh-ghcr.io/goauthentik/dev-server:gh-afe1b79fec5b97ee1b8bde8351f31905098d5d45-arm64

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

Copy link
Member

@BeryJu BeryJu left a comment

Choose a reason for hiding this comment

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

That's a good way to fix it, I would've probably added a lock to it instead

I think we might still want to combine the tasks as a system task and set it on a schedule so we don't have to dispatch it on startup since even with the optimisation that's not great

@rissson rissson merged commit c3cb9bc into main Jun 1, 2024
@rissson rissson deleted the webauthn-mds-optimize-db-creation branch June 1, 2024 09:16
kensternberg-authentik added a commit that referenced this pull request Jun 11, 2024
* main: (44 commits)
  translate: Updates for file locale/en/LC_MESSAGES/django.po in ru (#9943)
  translate: Updates for file locale/en/LC_MESSAGES/django.po in zh-Hans (#9944)
  translate: Updates for file locale/en/LC_MESSAGES/django.po in zh_CN (#9942)
  stages/authenticator_webauthn: migrate device type import to systemtask and schedule (#9958)
  website: bump prettier from 3.2.5 to 3.3.0 in /website (#9951)
  web: bump yaml from 2.4.2 to 2.4.3 in /web (#9945)
  web: bump prettier from 3.2.5 to 3.3.0 in /web (#9946)
  core: bump uvicorn from 0.30.0 to 0.30.1 (#9948)
  core: bump ruff from 0.4.6 to 0.4.7 (#9949)
  website: bump the docusaurus group in /website with 9 updates (#9950)
  web: bump prettier from 3.2.5 to 3.3.0 in /tests/wdio (#9952)
  web: bump chromedriver from 125.0.2 to 125.0.3 in /tests/wdio (#9953)
  core: groups: optimize recursive children query (#9931)
  core, web: update translations (#9938)
  stages/authenticator_webauthn: optimize device types creation (#9932)
  stages/authenticator_webauthn: Update FIDO MDS3 & Passkey aaguid blobs (#9936)
  providers/oauth2: don't handle api scope as special scope (#9910)
  core: bump goauthentik.io/api/v3 from 3.2024042.8 to 3.2024042.9 (#9915)
  web: bump the storybook group in /web with 7 updates (#9917)
  website/integrations: firezone: remove question mark typo and remove promotional sentence (#9927)
  ...
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.

2 participants