Skip to content

core: run debugpy within worker process so it's DAP-attachable again - #23401

Merged
rissson merged 1 commit into
goauthentik:mainfrom
atereshkin:worker-dap
Jun 25, 2026
Merged

rissson merged 1 commit into
goauthentik:mainfrom
atereshkin:worker-dap

Conversation

@atereshkin

Copy link
Copy Markdown
Contributor

Details

This reinstates the ability to attach a debugger to the worker process via DAP. Additionally, worker's debugpy now listens on a separate port, so both the web server and worker can be debugged simultaneously.

What does this PR change?

start_debug_server is now called at the worker's entry point and a port offset is introduced so that worker(s) can listen for the debugger on a port(s) distinct from the web server.

Why is this change needed?

The ability to attach a debugger to the worker process was lost at some point (despite still being in the docs).

How was this tested?

Verified that you can now attach to the worker via DAP.

Checklist

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

@atereshkin
atereshkin requested review from a team as code owners June 25, 2026 12:52
@netlify

netlify Bot commented Jun 25, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit 6686d48
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/6a3d247903797b0008534fa9
😎 Deploy Preview https://deploy-preview-23401--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 Jun 25, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 6686d48
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6a3d247921b0d70008670683
😎 Deploy Preview https://deploy-preview-23401--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 Jun 25, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 33.33333% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 93.24%. Comparing base (0658a49) to head (6686d48).
⚠️ Report is 9 commits behind head on main.

Files with missing lines Patch % Lines
authentik/lib/debug.py 33.33% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #23401      +/-   ##
==========================================
- Coverage   93.29%   93.24%   -0.05%     
==========================================
  Files        1037     1037              
  Lines       60555    60556       +1     
  Branches      400      400              
==========================================
- Hits        56497    56468      -29     
- Misses       4058     4088      +30     
Flag Coverage Δ
conformance 36.34% <0.00%> (+<0.01%) ⬆️
e2e 41.57% <0.00%> (-0.02%) ⬇️
integration 32.31% <0.00%> (-0.49%) ⬇️
rust 0.00% <ø> (ø)
unit 92.26% <33.33%> (+<0.01%) ⬆️
unit-migrate 92.31% <33.33%> (+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.

@rissson
rissson merged commit c69a159 into goauthentik:main Jun 25, 2026
103 of 105 checks passed
kensternberg-authentik added a commit that referenced this pull request Jun 25, 2026
* main: (27 commits)
  website/integrations: Planka: cleanup (#23332)
  website/integrations: SharePoint Server SE: cleanup (#23335)
  core: run debugpy within worker process so it's DAP-attachable again (#23401)
  core, web: update translations (#23373)
  core: bump library/golang from `bbf22dd` to `76a2924` in /lifecycle/container (#23380)
  core: bump library/node from `191ef87` to `f9b8bd6` in /lifecycle/container (#23378)
  core: bump library/nginx from `42f2d24` to `ec4ed8b` in /website (#23382)
  core: bump library/node from `3c05c2c` to `15797fb` in /website (#23383)
  core: bump goauthentik/fips-python from `c54ab1b` to `fe20a68` in /lifecycle/container (#23379)
  website/docs: fix 2026.5 release notes mentioning docker-compose.yml (#23385)
  website/docs: fix 2026.2 release notes docker compose mention take 2 (#23388)
  website/docs: clean up source docs (#23374)
  website/api: debug build issues (#23392)
  core: preserve encoded avatar URLs (#23225)
  website/integrations: add ExcaliDash integration (#23375)
  website/docs: sources: remove support_level labels from docs (#23389)
  website/integrations: Zabbix: cleanup (#23271)
  fix release notes docker compose mention (#23386)
  core: bump goauthentik/fips-debian and fips-python in /lifecycle/container (#23362)
  root: Fix SECURITY.md versions (#23370)
  ...
kensternberg-authentik added a commit that referenced this pull request Jun 25, 2026
* web/css/enabling-layers: (27 commits)
  website/integrations: Planka: cleanup (#23332)
  website/integrations: SharePoint Server SE: cleanup (#23335)
  core: run debugpy within worker process so it's DAP-attachable again (#23401)
  core, web: update translations (#23373)
  core: bump library/golang from `bbf22dd` to `76a2924` in /lifecycle/container (#23380)
  core: bump library/node from `191ef87` to `f9b8bd6` in /lifecycle/container (#23378)
  core: bump library/nginx from `42f2d24` to `ec4ed8b` in /website (#23382)
  core: bump library/node from `3c05c2c` to `15797fb` in /website (#23383)
  core: bump goauthentik/fips-python from `c54ab1b` to `fe20a68` in /lifecycle/container (#23379)
  website/docs: fix 2026.5 release notes mentioning docker-compose.yml (#23385)
  website/docs: fix 2026.2 release notes docker compose mention take 2 (#23388)
  website/docs: clean up source docs (#23374)
  website/api: debug build issues (#23392)
  core: preserve encoded avatar URLs (#23225)
  website/integrations: add ExcaliDash integration (#23375)
  website/docs: sources: remove support_level labels from docs (#23389)
  website/integrations: Zabbix: cleanup (#23271)
  fix release notes docker compose mention (#23386)
  core: bump goauthentik/fips-debian and fips-python in /lifecycle/container (#23362)
  root: Fix SECURITY.md versions (#23370)
  ...
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