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

providers/proxy: fix Traefik label generation for v3 #10411

Merged
merged 2 commits into from
Jul 22, 2024
Merged

providers/proxy: fix Traefik label generation for v3 #10411

merged 2 commits into from
Jul 22, 2024

Conversation

DriftDevil
Copy link
Contributor

@DriftDevil DriftDevil commented Jul 8, 2024

Fixes #9786

Details

When deploying a proxy outpost, labels are added automatically which add the outpost to Traefik. For each single-forward provider a Host() label has to be used. Authentik generates these as Host(, , ...) which is not possible anymore since Traefik v3.0. This leads to an invalid deployment of the outpost.
This PR remedies that and created labels that separate the Host. i.e. (Host() || Host())

Copy link

netlify bot commented Jul 8, 2024

Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit dbfd549
🔍 Latest deploy log https://app.netlify.com/sites/authentik-storybook/deploys/668eb133515668000880c3cf
😎 Deploy Preview https://deploy-preview-10411--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

netlify bot commented Jul 8, 2024

Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit dbfd549
🔍 Latest deploy log https://app.netlify.com/sites/authentik-docs/deploys/668eb133edd0d000080b6092
😎 Deploy Preview https://deploy-preview-10411--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 site configuration.

@DriftDevil DriftDevil marked this pull request as ready for review July 8, 2024 21:59
@DriftDevil DriftDevil requested a review from a team as a code owner July 8, 2024 21:59
@DriftDevil DriftDevil changed the title providers/proxy: fix Traefik label generation for v3 providers/proxy: fix Traefik label generation for v3 #9786 Jul 8, 2024
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.

I'm assuming this fixed syntax also works with traefik 2.x?

@BeryJu BeryJu changed the title providers/proxy: fix Traefik label generation for v3 #9786 providers/proxy: fix Traefik label generation for v3 Jul 9, 2024
Copy link

codecov bot commented Jul 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.64%. Comparing base (9ca3ff9) to head (dbfd549).
Report is 86 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10411      +/-   ##
==========================================
+ Coverage   92.62%   92.64%   +0.01%     
==========================================
  Files         714      714              
  Lines       35012    35014       +2     
==========================================
+ Hits        32431    32438       +7     
+ Misses       2581     2576       -5     
Flag Coverage Δ
e2e 49.59% <ø> (-0.01%) ⬇️
integration 25.36% <ø> (-0.01%) ⬇️
unit 90.13% <ø> (+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.

Broke up the line so code line is not too long

Signed-off-by: DriftDevil <[email protected]>
@rissson
Copy link
Member

rissson commented Jul 21, 2024

I'm assuming this fixed syntax also works with traefik 2.x?

It does yes.

@rissson rissson merged commit 919d5fc into goauthentik:main Jul 22, 2024
61 of 66 checks passed
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.

Automatic Outpost Deployment via Docker Integration prodouces invalid Traefik Labels
3 participants