Skip to content
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

events: fix missing model_* events when not directly authenticated #7588

Merged
merged 2 commits into from
Nov 16, 2023

Conversation

BeryJu
Copy link
Member

@BeryJu BeryJu commented Nov 15, 2023

Details

previously certain events were not created in an un-authenticated session, which would typically impact flow executions as especially for signups the session is not authenticated

closes #4878


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)
  • The translation files have been updated (make i18n-extract)

If applicable

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

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
@BeryJu BeryJu requested a review from a team as a code owner November 15, 2023 20:56
Copy link

netlify bot commented Nov 15, 2023

Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit 4b36ebf
🔍 Latest deploy log https://app.netlify.com/sites/authentik-storybook/deploys/65554428c3962e0008d41539
😎 Deploy Preview https://deploy-preview-7588--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

codecov bot commented Nov 15, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (95c7101) 91.16% compared to head (4b36ebf) 92.61%.
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7588      +/-   ##
==========================================
+ Coverage   91.16%   92.61%   +1.45%     
==========================================
  Files         587      587              
  Lines       29030    29042      +12     
==========================================
+ Hits        26464    26898     +434     
+ Misses       2566     2144     -422     
Flag Coverage Δ
e2e 50.91% <65.00%> (+0.10%) ⬆️
integration 25.97% <0.00%> (?)
unit 89.66% <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.

@BeryJu
Copy link
Member Author

BeryJu commented Nov 15, 2023

/cherry-pick version-2023.10

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Copy link

netlify bot commented Nov 15, 2023

Deploy Preview for authentik ready!

Name Link
🔨 Latest commit 4b36ebf
🔍 Latest deploy log https://app.netlify.com/sites/authentik/deploys/65554428006fb00008d878d4
😎 Deploy Preview https://deploy-preview-7588--authentik.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 95 (🔴 down 2 from production)
Accessibility: 90 (no change from production)
Best Practices: 100 (no change from production)
SEO: 80 (no change from production)
PWA: -
View the detailed breakdown and full score reports

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

@BeryJu BeryJu merged commit 31ef919 into main Nov 16, 2023
63 checks passed
@BeryJu BeryJu deleted the events/fix-missing-events branch November 16, 2023 11:06
gcp-cherry-pick-bot bot pushed a commit that referenced this pull request Nov 16, 2023
…7588)

* events: fix missing model_* events when not directly authenticated

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* defer accessing database

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

---------

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
BeryJu added a commit that referenced this pull request Nov 16, 2023
…herry-pick #7588) (#7597)

events: fix missing model_* events when not directly authenticated (#7588)

* events: fix missing model_* events when not directly authenticated



* defer accessing database



---------

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Co-authored-by: Jens L <jens@goauthentik.io>
kensternberg-authentik added a commit that referenced this pull request Nov 17, 2023
* main: (42 commits)
  stages/authenticator_totp: fix API validation error due to choices (#7608)
  website: fix pricing page inconsistency (#7607)
  web: bump API Client version (#7602)
  translate: Updates for file web/xliff/en.xlf in zh_CN (#7603)
  core: bump goauthentik.io/api/v3 from 3.2023103.2 to 3.2023103.3 (#7606)
  translate: Updates for file web/xliff/en.xlf in zh-Hans (#7604)
  Revert "web: bump @lit-labs/context from 0.4.1 to 0.5.1 in /web (#7486)"
  root: fix API schema for kotlin (#7601)
  web: bump @lit-labs/context from 0.4.1 to 0.5.1 in /web (#7486)
  translate: Updates for file web/xliff/en.xlf in zh-Hans (#7583)
  events: fix missing model_* events when not directly authenticated (#7588)
  translate: Updates for file locale/en/LC_MESSAGES/django.po in zh_TW (#7594)
  providers/scim: fix missing schemas attribute for User and Group (#7477)
  core: bump pydantic from 2.5.0 to 2.5.1 (#7592)
  web/admin: contextually add user to group when creating user from group page (#7586)
  website/blog: title and slug change (#7585)
  events: sanitize functions (#7587)
  stages/email: use uuid for email confirmation token instead of username (#7581)
  website/blog: Blog about zero trust and wireguard (#7567)
  ci: translation-advice: avoid commenting after make i18n-extract
  ...
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.

User write stages do not trigger a Model Updated event when writing to an existing user
1 participant