Skip to content

packages/ak-common/tokio/proxy_procotol: init - #21311

Merged
rissson merged 6 commits into
mainfrom
rust-lib-proxy-protocol
Apr 2, 2026
Merged

rissson merged 6 commits into
mainfrom
rust-lib-proxy-protocol

Conversation

@rissson

@rissson rissson commented Apr 1, 2026 •

Copy link
Copy Markdown
Member

Details

wrapper around a tokio stream to parse optional PROXY protocol information


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 and clients have been updated (make gen)

If changes to the frontend have been made

  • The code has been formatted (make web)

If applicable

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

Signed-off-by: Marc 'risson' Schmitt <[email protected]>
@rissson rissson self-assigned this Apr 1, 2026
@rissson rissson moved this to In Progress in authentik Core Apr 1, 2026
@netlify

netlify Bot commented Apr 1, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 915af95
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/69ce5d974021de0008aebc21
😎 Deploy Preview https://deploy-preview-21311--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 Apr 1, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 63.72361% with 189 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.48%. Comparing base (3355669) to head (10998b7).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...kages/ak-common/src/tokio/proxy_protocol/header.rs 60.40% 87 Missing and 12 partials ⚠️
packages/ak-common/src/tokio/proxy_protocol/mod.rs 44.33% 59 Missing ⚠️
packages/ak-common/src/tokio/proxy_protocol/v2.rs 70.93% 25 Missing ⚠️
packages/ak-common/src/tokio/proxy_protocol/v1.rs 90.62% 4 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #21311      +/-   ##
==========================================
- Coverage   92.75%   92.48%   -0.27%     
==========================================
  Files        1008     1013       +5     
  Lines       57644    58165     +521     
  Branches      973     1494     +521     
==========================================
+ Hits        53465    53792     +327     
- Misses       4155     4333     +178     
- Partials       24       40      +16     
Flag Coverage Δ
conformance 37.16% <ø> (+<0.01%) ⬆️
e2e 42.63% <ø> (ø)
integration 22.12% <ø> (+<0.01%) ⬆️
rust 53.54% <63.72%> (+5.24%) ⬆️
unit 91.82% <ø> (-0.01%) ⬇️
unit-migrate 91.88% <ø> (-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.

Signed-off-by: Marc 'risson' Schmitt <[email protected]>
@rissson rissson moved this from In Progress to Needs review in authentik Core Apr 1, 2026
@rissson
rissson marked this pull request as ready for review April 1, 2026 14:43
@rissson
rissson requested a review from a team as a code owner April 1, 2026 14:43
@rissson rissson changed the title packages/ak-lib/tokio/proxy_procotol: init packages/ak-common/tokio/proxy_procotol: init Apr 1, 2026
@github-actions

github-actions Bot commented Apr 1, 2026 •

Copy link
Copy Markdown
Contributor

authentik PR Installation instructions

Instructions for docker-compose

Add the following block to your .env file:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-10998b7937778328347c77cd06f0529ecd465e86
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s

Afterwards, run the upgrade commands from the latest release notes.

Instructions for Kubernetes

Add the following block to your values.yml file:

authentik:
    outposts:
        container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
    image:
        repository: ghcr.io/goauthentik/dev-server
        tag: gh-10998b7937778328347c77cd06f0529ecd465e86

Afterwards, run the upgrade commands from the latest release notes.

rissson added a commit that referenced this pull request Apr 1, 2026
Squashed commit of the following:

commit 365de9d
Merge: ab239bf 0079984
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Wed Apr 1 17:15:04 2026 +0200

    Merge branch 'rust-lib-rename' into rust-lib-proxy-protocol

    Signed-off-by: Marc 'risson' Schmitt <[email protected]>

commit 0079984
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Wed Apr 1 17:08:07 2026 +0200

    packages/ak-common: rename from ak-lib

    Signed-off-by: Marc 'risson' Schmitt <[email protected]>

commit ab239bf
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Wed Apr 1 16:39:44 2026 +0200

    fix import

    Signed-off-by: Marc 'risson' Schmitt <[email protected]>

commit 3ef0080
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Wed Apr 1 16:29:35 2026 +0200

    packages/ak-lib/tokio/proxy_procotol: init

    Signed-off-by: Marc 'risson' Schmitt <[email protected]>

Signed-off-by: Marc 'risson' Schmitt <[email protected]>
@rissson rissson mentioned this pull request Apr 1, 2026
rissson added a commit that referenced this pull request Apr 1, 2026
Squashed commit of the following:

commit 365de9d
Merge: ab239bf 0079984
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Wed Apr 1 17:15:04 2026 +0200

    Merge branch 'rust-lib-rename' into rust-lib-proxy-protocol

    Signed-off-by: Marc 'risson' Schmitt <[email protected]>

commit 0079984
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Wed Apr 1 17:08:07 2026 +0200

    packages/ak-common: rename from ak-lib

    Signed-off-by: Marc 'risson' Schmitt <[email protected]>

commit ab239bf
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Wed Apr 1 16:39:44 2026 +0200

    fix import

    Signed-off-by: Marc 'risson' Schmitt <[email protected]>

commit 3ef0080
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Wed Apr 1 16:29:35 2026 +0200

    packages/ak-lib/tokio/proxy_procotol: init

    Signed-off-by: Marc 'risson' Schmitt <[email protected]>

Signed-off-by: Marc 'risson' Schmitt <[email protected]>
rissson added a commit that referenced this pull request Apr 2, 2026
Squashed commit of the following:

commit 365de9d
Merge: ab239bf 0079984
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Wed Apr 1 17:15:04 2026 +0200

    Merge branch 'rust-lib-rename' into rust-lib-proxy-protocol

    Signed-off-by: Marc 'risson' Schmitt <[email protected]>

commit 0079984
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Wed Apr 1 17:08:07 2026 +0200

    packages/ak-common: rename from ak-lib

    Signed-off-by: Marc 'risson' Schmitt <[email protected]>

commit ab239bf
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Wed Apr 1 16:39:44 2026 +0200

    fix import

    Signed-off-by: Marc 'risson' Schmitt <[email protected]>

commit 3ef0080
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Wed Apr 1 16:29:35 2026 +0200

    packages/ak-lib/tokio/proxy_procotol: init

    Signed-off-by: Marc 'risson' Schmitt <[email protected]>

Signed-off-by: Marc 'risson' Schmitt <[email protected]>
rissson added a commit that referenced this pull request Apr 2, 2026
Squashed commit of the following:

commit 365de9d
Merge: ab239bf 0079984
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Wed Apr 1 17:15:04 2026 +0200

    Merge branch 'rust-lib-rename' into rust-lib-proxy-protocol

    Signed-off-by: Marc 'risson' Schmitt <[email protected]>

commit 0079984
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Wed Apr 1 17:08:07 2026 +0200

    packages/ak-common: rename from ak-lib

    Signed-off-by: Marc 'risson' Schmitt <[email protected]>

commit ab239bf
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Wed Apr 1 16:39:44 2026 +0200

    fix import

    Signed-off-by: Marc 'risson' Schmitt <[email protected]>

commit 3ef0080
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Wed Apr 1 16:29:35 2026 +0200

    packages/ak-lib/tokio/proxy_procotol: init

    Signed-off-by: Marc 'risson' Schmitt <[email protected]>

Signed-off-by: Marc 'risson' Schmitt <[email protected]>
@github-project-automation github-project-automation Bot moved this from Needs review to In Progress in authentik Core Apr 2, 2026
@rissson
rissson enabled auto-merge (squash) April 2, 2026 13:12
rissson added a commit that referenced this pull request Apr 2, 2026
Squashed commit of the following:

commit 365de9d
Merge: ab239bf 0079984
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Wed Apr 1 17:15:04 2026 +0200

    Merge branch 'rust-lib-rename' into rust-lib-proxy-protocol

    Signed-off-by: Marc 'risson' Schmitt <[email protected]>

commit 0079984
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Wed Apr 1 17:08:07 2026 +0200

    packages/ak-common: rename from ak-lib

    Signed-off-by: Marc 'risson' Schmitt <[email protected]>

commit ab239bf
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Wed Apr 1 16:39:44 2026 +0200

    fix import

    Signed-off-by: Marc 'risson' Schmitt <[email protected]>

commit 3ef0080
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Wed Apr 1 16:29:35 2026 +0200

    packages/ak-lib/tokio/proxy_procotol: init

    Signed-off-by: Marc 'risson' Schmitt <[email protected]>

Signed-off-by: Marc 'risson' Schmitt <[email protected]>
@rissson
rissson merged commit 62ccf88 into main Apr 2, 2026
106 of 107 checks passed
@rissson
rissson deleted the rust-lib-proxy-protocol branch April 2, 2026 13:40
@github-project-automation github-project-automation Bot moved this from In Progress to Done in authentik Core Apr 2, 2026
kensternberg-authentik added a commit that referenced this pull request Apr 8, 2026
* main: (26 commits)
  root: fix compose generation for patch releases release candidates (#21353)
  web: bump @swc/cli from 0.8.0 to 0.8.1 in /web in the swc group across 1 directory (#21300)
  providers/proxy: fix oidc client not using socket in embedded outpost (#21280)
  packages/client-rust: fix portable sed usage (#21337)
  packages/ak-common/tokio/proxy_procotol: init (#21311)
  packages/ak-common/config: init (#21256)
  core: bump beryju.io/ldap from 0.1.0 to 0.2.1 (#21235)
  web: bump @sentry/browser from 10.46.0 to 10.47.0 in /web in the sentry group across 1 directory (#21297)
  packages/ak-common/arbiter: init (#21253)
  website/docs: fix full dev setup ordering (#21332)
  core: bump types-docker from 7.1.0.20260328 to 7.1.0.20260402 (#21342)
  packages/ak-common: rename from ak-lib (#21314)
  root: fix rustfmt config (#21312)
  core: bump types-ldap3 from 2.9.13.20260319 to 2.9.13.20260402 (#21343)
  web: bump the bundler group across 1 directory with 4 updates (#21345)
  core: bump aiohttp from 3.13.3 to 3.13.4 (#21333)
  core, web: update translations (#21335)
  lifecycle/aws: bump aws-cdk from 2.1115.1 to 2.1116.0 in /lifecycle/aws (#21338)
  core: bump types-requests from 2.33.0.20260327 to 2.33.0.20260402 (#21339)
  core: bump django-stubs[compatible-mypy] from 6.0.1 to 6.0.2 (#21340)
  ...
davepgreene pushed a commit to davepgreene/authentik that referenced this pull request Apr 13, 2026
davepgreene pushed a commit to davepgreene/authentik that referenced this pull request Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants