Skip to content

packages/ak-common/arbiter: init - #21253

Merged
BeryJu merged 16 commits into
mainfrom
rust-arbiter
Apr 2, 2026
Merged

BeryJu merged 16 commits into
mainfrom
rust-arbiter

Conversation

@rissson

@rissson rissson commented Mar 30, 2026 •

Copy link
Copy Markdown
Member

Details

needs #21312 and #21314


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 Mar 30, 2026
@rissson
rissson requested review from a team as code owners March 30, 2026 14:35
@netlify

netlify Bot commented Mar 30, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 5ccaf9a
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/69ce4f5c683e4c0008c5a0b8
😎 Deploy Preview https://deploy-preview-21253--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.

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

codecov Bot commented Mar 30, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 90.18868% with 26 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.78%. Comparing base (b303677) to head (5ccaf9a).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
packages/ak-common/src/arbiter.rs 90.18% 14 Missing and 12 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #21253      +/-   ##
==========================================
- Coverage   92.79%   92.78%   -0.02%     
==========================================
  Files        1006     1007       +1     
  Lines       57108    57372     +264     
  Branches      437      701     +264     
==========================================
+ Hits        52995    53230     +235     
- Misses       4113     4130      +17     
- Partials        0       12      +12     
Flag Coverage Δ
conformance 37.16% <ø> (+<0.01%) ⬆️
e2e 42.63% <ø> (-0.01%) ⬇️
integration 22.12% <ø> (+<0.01%) ⬆️
rust 34.09% <90.18%> (+33.86%) ⬆️
unit 91.82% <ø> (+<0.01%) ⬆️
unit-migrate 91.89% <ø> (-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.

@github-actions

github-actions Bot commented Mar 30, 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-5ccaf9ab3435f4a7436f41356098f50890ee5a59
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-5ccaf9ab3435f4a7436f41356098f50890ee5a59

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

Signed-off-by: Marc 'risson' Schmitt <[email protected]>
@rissson
rissson requested a review from a team as a code owner March 30, 2026 15:48
Signed-off-by: Marc 'risson' Schmitt <[email protected]>
@netlify

netlify Bot commented Mar 30, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit 5ccaf9a
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/69ce4f5c4ba6df0008a2e27c
😎 Deploy Preview https://deploy-preview-21253--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.

@rissson
rissson enabled auto-merge (squash) March 30, 2026 15:54
@rissson rissson mentioned this pull request Mar 30, 2026
6 tasks
rissson added 2 commits March 30, 2026 19:32
Signed-off-by: Marc 'risson' Schmitt <[email protected]>
Signed-off-by: Marc 'risson' Schmitt <[email protected]>
@rissson rissson changed the title packages/ak-arbiter: init packages/ak-lib: init Mar 30, 2026
Signed-off-by: Marc 'risson' Schmitt <[email protected]>
@rissson rissson changed the title packages/ak-lib: init packages/ak-lib/arbiter: init Mar 30, 2026
rissson added 3 commits March 30, 2026 19:58
Signed-off-by: Marc 'risson' Schmitt <[email protected]>
Signed-off-by: Marc 'risson' Schmitt <[email protected]>
Signed-off-by: Marc 'risson' Schmitt <[email protected]>
@rissson rissson moved this from Todo to Needs review in authentik Core Mar 30, 2026
@rissson rissson changed the title packages/ak-lib/arbiter: init packages/ak-common/arbiter: init Apr 1, 2026
rissson added a commit that referenced this pull request Apr 1, 2026
Squashed commit of the following:

commit 507eb2f
Merge: 6968d59 0079984
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Wed Apr 1 17:10:37 2026 +0200

    Merge branch 'rust-lib-rename' into rust-arbiter

    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 6968d59
Merge: 341c9cc a3fea5d
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Wed Apr 1 16:52:55 2026 +0200

    Merge branch 'fix-rustfmt-config' into rust-arbiter

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

    root: fix rustfmt config

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

commit 341c9cc
Merge: a1cf0a7 55e555c
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Tue Mar 31 13:55:28 2026 +0200

    Merge branch 'main' into rust-arbiter

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

commit a1cf0a7
Merge: 1ee6f11 524b788
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Mon Mar 30 20:03:01 2026 +0200

    Merge branch 'rust-lib' into rust-arbiter

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

commit 524b788
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Mon Mar 30 19:57:51 2026 +0200

    fixup

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

commit dc65ab1
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Mon Mar 30 16:33:49 2026 +0200

    packages/ak-lib: init

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

commit 1ee6f11
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Mon Mar 30 19:43:21 2026 +0200

    fixup

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

commit 27ff039
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Mon Mar 30 19:40:37 2026 +0200

    rename to ak-lib

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

commit 1e5cb4b
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Mon Mar 30 19:32:18 2026 +0200

    sort out package versions

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

commit 64b9391
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Mon Mar 30 17:49:16 2026 +0200

    lint

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

commit 57edeec
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Mon Mar 30 17:48:51 2026 +0200

    add tests

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

commit 5294f8a
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Mon Mar 30 16:38:11 2026 +0200

    fixup

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

commit f1257d2
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Mon Mar 30 16:33:49 2026 +0200

    packages/ak-arbiter: 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 507eb2f
Merge: 6968d59 0079984
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Wed Apr 1 17:10:37 2026 +0200

    Merge branch 'rust-lib-rename' into rust-arbiter

    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 6968d59
Merge: 341c9cc a3fea5d
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Wed Apr 1 16:52:55 2026 +0200

    Merge branch 'fix-rustfmt-config' into rust-arbiter

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

    root: fix rustfmt config

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

commit 341c9cc
Merge: a1cf0a7 55e555c
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Tue Mar 31 13:55:28 2026 +0200

    Merge branch 'main' into rust-arbiter

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

commit a1cf0a7
Merge: 1ee6f11 524b788
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Mon Mar 30 20:03:01 2026 +0200

    Merge branch 'rust-lib' into rust-arbiter

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

commit 524b788
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Mon Mar 30 19:57:51 2026 +0200

    fixup

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

commit dc65ab1
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Mon Mar 30 16:33:49 2026 +0200

    packages/ak-lib: init

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

commit 1ee6f11
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Mon Mar 30 19:43:21 2026 +0200

    fixup

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

commit 27ff039
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Mon Mar 30 19:40:37 2026 +0200

    rename to ak-lib

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

commit 1e5cb4b
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Mon Mar 30 19:32:18 2026 +0200

    sort out package versions

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

commit 64b9391
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Mon Mar 30 17:49:16 2026 +0200

    lint

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

commit 57edeec
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Mon Mar 30 17:48:51 2026 +0200

    add tests

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

commit 5294f8a
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Mon Mar 30 16:38:11 2026 +0200

    fixup

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

commit f1257d2
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Mon Mar 30 16:33:49 2026 +0200

    packages/ak-arbiter: 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 507eb2f
Merge: 6968d59 0079984
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Wed Apr 1 17:10:37 2026 +0200

    Merge branch 'rust-lib-rename' into rust-arbiter

    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 6968d59
Merge: 341c9cc a3fea5d
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Wed Apr 1 16:52:55 2026 +0200

    Merge branch 'fix-rustfmt-config' into rust-arbiter

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

    root: fix rustfmt config

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

commit 341c9cc
Merge: a1cf0a7 55e555c
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Tue Mar 31 13:55:28 2026 +0200

    Merge branch 'main' into rust-arbiter

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

commit a1cf0a7
Merge: 1ee6f11 524b788
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Mon Mar 30 20:03:01 2026 +0200

    Merge branch 'rust-lib' into rust-arbiter

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

commit 524b788
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Mon Mar 30 19:57:51 2026 +0200

    fixup

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

commit dc65ab1
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Mon Mar 30 16:33:49 2026 +0200

    packages/ak-lib: init

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

commit 1ee6f11
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Mon Mar 30 19:43:21 2026 +0200

    fixup

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

commit 27ff039
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Mon Mar 30 19:40:37 2026 +0200

    rename to ak-lib

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

commit 1e5cb4b
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Mon Mar 30 19:32:18 2026 +0200

    sort out package versions

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

commit 64b9391
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Mon Mar 30 17:49:16 2026 +0200

    lint

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

commit 57edeec
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Mon Mar 30 17:48:51 2026 +0200

    add tests

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

commit 5294f8a
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Mon Mar 30 16:38:11 2026 +0200

    fixup

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

commit f1257d2
Author: Marc 'risson' Schmitt <[email protected]>
Date:   Mon Mar 30 16:33:49 2026 +0200

    packages/ak-arbiter: init

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

Signed-off-by: Marc 'risson' Schmitt <[email protected]>
loop {
tokio::select! {
_ = hup.recv() => {
info!("signal HUP received");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If these are the info-level messages that appear in a log, or print, etc., they should be capitalized like a sentence (though no punctuation).

info!("Signal HUP received");

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.

lowercase is a style convention

@BeryJu
BeryJu disabled auto-merge April 2, 2026 12:06
@BeryJu
BeryJu merged commit d3fca33 into main Apr 2, 2026
107 of 108 checks passed
@BeryJu
BeryJu deleted the rust-arbiter branch April 2, 2026 12:06
@github-project-automation github-project-automation Bot moved this from Needs review to Done in authentik Core Apr 2, 2026
self.unix_handles.lock().await.push(handle);
}

/// Future that will complete when the application needs to shutdown immediately.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Future what, exactly?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

a future is a thing! It's like a promise in js, it's something that will complete at a later point in time. https://doc.rust-lang.org/stable/std/future/trait.Future.html

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
* packages/ak-arbiter: init

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

* fixup

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

* add tests

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

* lint

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

* sort out package versions

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

* rename to ak-lib

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

* fixup

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

* packages/ak-lib: init

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

* fixup

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

* root: fix rustfmt config

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

* packages/ak-common: rename from ak-lib

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

---------

Signed-off-by: Marc 'risson' Schmitt <[email protected]>
davepgreene pushed a commit to davepgreene/authentik that referenced this pull request Apr 13, 2026
* packages/ak-arbiter: init

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

* fixup

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

* add tests

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

* lint

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

* sort out package versions

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

* rename to ak-lib

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

* fixup

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

* packages/ak-lib: init

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

* fixup

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

* root: fix rustfmt config

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

* packages/ak-common: rename from ak-lib

Signed-off-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

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants