Skip to content

events: use absolute URLs (constructed using base_url from the tenant) when sending notifications outside (e.g. via email) - #24877

Open
atereshkin wants to merge 1 commit into
goauthentik:mainfrom
atereshkin:notification-absolute-urls-2
Open

events: use absolute URLs (constructed using base_url from the tenant) when sending notifications outside (e.g. via email)#24877
atereshkin wants to merge 1 commit into
goauthentik:mainfrom
atereshkin:notification-absolute-urls-2

Conversation

@atereshkin

Copy link
Copy Markdown
Contributor

Details

What does this PR change?

This makes notifications containing a hyperlink use absolute URLs when they are going outside of the system (i.e. via email, Slack or webhook).

Why is this change needed?

We've added an ability to include a hyperlink in notifications earlier but it was useless for external notifications because those hyperlinks were relative URLs.

How was this tested?

Added a few new tests specifically for this + manually by triggering an access review notification.


Checklist

  • The project has been linted, built, and tested (make all)
  • The documentation has been updated and formatted (make docs)

…) when sending notifications outside (e.g. via email)
@atereshkin
atereshkin requested review from a team as code owners August 7, 2026 15:19
@netlify

netlify Bot commented Aug 7, 2026

Copy link
Copy Markdown

Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit 2007214
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/6a75f777d54d9a0008432742
😎 Deploy Preview https://deploy-preview-24877--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 project configuration.

@netlify

netlify Bot commented Aug 7, 2026

Copy link
Copy Markdown

Deploy Preview for authentik-integrations ready!

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

Copy link
Copy Markdown

Deploy Preview for authentik-docs ready!

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

@atereshkin atereshkin changed the title events: use absolute urls (constructed using base_url from the tenant) when sending notifications outside (e.g. via email) events: use absolute URLs (constructed using base_url from the tenant) when sending notifications outside (e.g. via email) Aug 7, 2026
@codecov

codecov Bot commented Aug 7, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 99.00990% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 91.35%. Comparing base (560518a) to head (2007214).
⚠️ Report is 7 commits behind head on main.

Files with missing lines Patch % Lines
authentik/events/models.py 90.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #24877      +/-   ##
==========================================
- Coverage   91.37%   91.35%   -0.03%     
==========================================
  Files        1137     1138       +1     
  Lines       71591    71691     +100     
  Branches     3875     3875              
==========================================
+ Hits        65417    65490      +73     
- Misses       6139     6166      +27     
  Partials       35       35              
Flag Coverage Δ
conformance 34.78% <4.95%> (-0.05%) ⬇️
e2e 39.49% <4.95%> (-0.06%) ⬇️
integration 30.90% <4.95%> (-0.50%) ⬇️
rust 38.89% <ø> (ø)
unit 93.04% <99.00%> (+<0.01%) ⬆️
unit-migrate 93.07% <99.00%> (+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.

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.

1 participant