Skip to content

packages/ak-common/config: fix list values from env variables parsing - #26081

Merged
rissson merged 4 commits into
goauthentik:mainfrom
chilikk:7836-optional-https-listener
Sep 22, 2026
Merged

rissson merged 4 commits into
goauthentik:mainfrom
chilikk:7836-optional-https-listener

Conversation

@chilikk

@chilikk chilikk commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

Details

Fixed the issue stated in #7836 by dropping empty list values when parsing a comma-separated list from an environment variable.

What does this PR change?

Empty values are dropped from the list before attempting to parse each value.

Why is this change needed?

Fixes a regression in 2026.8 where the HTTPS listener can no longer be disabled by setting the env variable to the empty value. This worked find in 2026.5.6

How was this tested?

Uncommented an already existing test case in ak-common/config.

Linked issues

closes #7836


Checklist

  • The project has been linted, built, and tested (make all)
  • The documentation has been updated and formatted (make docs)
  • I have read the AI usage policy.

@chilikk
chilikk requested review from a team as code owners September 12, 2026 13:38
@chilikk
chilikk force-pushed the 7836-optional-https-listener branch from bbf8fe9 to 617220a Compare September 12, 2026 13:39
@netlify

netlify Bot commented Sep 12, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

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

@chilikk
chilikk force-pushed the 7836-optional-https-listener branch from 617220a to 9651e13 Compare September 12, 2026 13:41

@rissson rissson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

a small docs nit, but otherwise LGTM

@rissson rissson self-assigned this Sep 21, 2026
@github-project-automation github-project-automation Bot moved this from Todo to In Progress in authentik Core Sep 21, 2026
@rissson rissson added the backport/version-2026.8 Add this label to PRs to backport changes to version-2026.8 label Sep 21, 2026
@codecov

codecov Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.07%. Comparing base (1436c66) to head (b370c1a).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #26081      +/-   ##
==========================================
- Coverage   92.11%   92.07%   -0.04%     
==========================================
  Files        1175     1175              
  Lines       76713    76713              
  Branches     4121     4121              
==========================================
- Hits        70661    70635      -26     
- Misses       5999     6025      +26     
  Partials       53       53              
Flag Coverage Δ
conformance 33.36% <ø> (+<0.01%) ⬆️
e2e 38.14% <ø> (+<0.01%) ⬆️
integration 29.66% <ø> (-0.45%) ⬇️
rust 44.79% <ø> (ø)
unit 93.60% <ø> (+<0.01%) ⬆️
unit-migrate 93.62% <ø> (+<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 changed the title packages/ak-common/config: fix list values from env variables parsing (#7836) packages/ak-common/config: fix list values from env variables parsing Sep 22, 2026
Signed-off-by: Marc 'risson' Schmitt <[email protected]>
Signed-off-by: Marc 'risson' Schmitt <[email protected]>
@netlify

netlify Bot commented Sep 22, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

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

@rissson
rissson merged commit f859467 into goauthentik:main Sep 22, 2026
230 of 233 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in authentik Core Sep 22, 2026
@authentik-cherry-pick

Copy link
Copy Markdown
Contributor

🍒 Cherry-pick to version-2026.8 created: #26351

rissson added a commit that referenced this pull request Sep 22, 2026
… (cherry-pick #26081 to version-2026.8) (#26351)

Co-authored-by: Denys Knertser <[email protected]>
Co-authored-by: Marc 'risson' Schmitt <[email protected]>
Signed-off-by: Marc 'risson' Schmitt <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:backend backport/version-2026.8 Add this label to PRs to backport changes to version-2026.8

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Make https listener (9443) optional

2 participants