Skip to content

root: move server and worker healthcheck to rust - #23556

Merged
rissson merged 2 commits into
mainfrom
rust-healthcheck
Jun 30, 2026
Merged

rissson merged 2 commits into
mainfrom
rust-healthcheck

Conversation

@rissson

@rissson rissson commented Jun 30, 2026

Copy link
Copy Markdown
Member

Details

What does this PR change?

move the ak healthcheck command from go to rust

The proxy healthcheck is also implemented but not used by anything in this PR, so nothing really changes here.

It also adds /-/health/live/ endpoint regardless of web.path in the server so that we don't need to load the config only for running the healthcheck.

Why is this change needed?

We're rewriting in rust so yeah

How was this tested?

Manually by running the targets and then running ak healthcheck

Linked issues


Checklist

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

@github-project-automation github-project-automation Bot moved this from Todo to In Progress in authentik Core Jun 30, 2026
@netlify

netlify Bot commented Jun 30, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit c662377
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/6a43e9e038a01a00085dd7ea
😎 Deploy Preview https://deploy-preview-23556--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 project configuration.

@netlify

netlify Bot commented Jun 30, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit c662377
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6a43e9e012f3cd00084f55f5
😎 Deploy Preview https://deploy-preview-23556--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]>
@rissson
rissson enabled auto-merge (squash) June 30, 2026 16:21
@codecov

codecov Bot commented Jun 30, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 25 lines in your changes missing coverage. Please review.
✅ Project coverage is 93.22%. Comparing base (09b2d4b) to head (21a9e7f).
⚠️ Report is 3 commits behind head on main.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/healthcheck.rs 0.00% 22 Missing ⚠️
src/main.rs 0.00% 2 Missing ⚠️
src/metrics/mod.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #23556      +/-   ##
==========================================
+ Coverage   93.10%   93.22%   +0.12%     
==========================================
  Files        1038     1039       +1     
  Lines       60744    60801      +57     
  Branches      400      424      +24     
==========================================
+ Hits        56553    56680     +127     
+ Misses       4191     4121      -70     
Flag Coverage Δ
conformance 36.31% <ø> (-0.02%) ⬇️
e2e 41.52% <ø> (+0.61%) ⬆️
integration 32.75% <ø> (-0.02%) ⬇️
rust 0.00% <0.00%> (ø)
unit 92.29% <ø> (+<0.01%) ⬆️
unit-migrate 92.32% <ø> (+<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 927ec37 into main Jun 30, 2026
108 of 109 checks passed
@rissson
rissson deleted the rust-healthcheck branch June 30, 2026 16:49
@github-project-automation github-project-automation Bot moved this from In Progress to Done in authentik Core Jun 30, 2026
@github-actions

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-21a9e7fe00a15add3e81192463b34fc6830a3542
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-21a9e7fe00a15add3e81192463b34fc6830a3542

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

kensternberg-authentik added a commit that referenced this pull request Jun 30, 2026
* main: (415 commits)
  Web/maintenance: Replace routine form endpoints (#23554)
  root: move server and worker healthcheck to rust (#23556)
  website/docs: api: remove note (#23555)
  web: bump @playwright/test from 1.60.0 to 1.61.0 in /web (#23545)
  providers/scim: fix enum warning when de-serializing (#23553)
  flows: fix flow executor authentication with jwt  (#16646)
  web: bump playwright from 1.60.0 to 1.61.0 in /web (#23542)
  core, web: update translations (#23534)
  web: bump the eslint group across 1 directory with 3 updates (#23538)
  web: bump type-fest from 5.6.0 to 5.7.0 in /web (#23544)
  lifecycle/aws: bump aws-cdk from 2.1128.0 to 2.1128.1 in /lifecycle/aws (#23535)
  core: bump deepmerge from 2.0 to 2.1.0 (#23539)
  root: fix "make gen" failing with "the input device is not a TTY" (#23546)
  core: bump library/golang from `76a2924` to `68b7145` in /lifecycle/container (#23536)
  core: bump goauthentik/fips-python from `15f00f3` to `6067443` in /lifecycle/container (#23537)
  website/integrations: fix logo missing (#23548)
  translate: Updates for project authentik and language ar_AA (#23516)
  Web/maintenance/explicit model endpoints (#22897)
  providers/oauth: Properly return error via post and for request objects (#23037)
  providers/oauth: Logout remove static html (#23002)
  ...
kensternberg-authentik added a commit that referenced this pull request Jun 30, 2026
* main: (487 commits)
  Web/maintenance: Replace routine form endpoints (#23554)
  root: move server and worker healthcheck to rust (#23556)
  website/docs: api: remove note (#23555)
  web: bump @playwright/test from 1.60.0 to 1.61.0 in /web (#23545)
  providers/scim: fix enum warning when de-serializing (#23553)
  flows: fix flow executor authentication with jwt  (#16646)
  web: bump playwright from 1.60.0 to 1.61.0 in /web (#23542)
  core, web: update translations (#23534)
  web: bump the eslint group across 1 directory with 3 updates (#23538)
  web: bump type-fest from 5.6.0 to 5.7.0 in /web (#23544)
  lifecycle/aws: bump aws-cdk from 2.1128.0 to 2.1128.1 in /lifecycle/aws (#23535)
  core: bump deepmerge from 2.0 to 2.1.0 (#23539)
  root: fix "make gen" failing with "the input device is not a TTY" (#23546)
  core: bump library/golang from `76a2924` to `68b7145` in /lifecycle/container (#23536)
  core: bump goauthentik/fips-python from `15f00f3` to `6067443` in /lifecycle/container (#23537)
  website/integrations: fix logo missing (#23548)
  translate: Updates for project authentik and language ar_AA (#23516)
  Web/maintenance/explicit model endpoints (#22897)
  providers/oauth: Properly return error via post and for request objects (#23037)
  providers/oauth: Logout remove static html (#23002)
  ...
kensternberg-authentik added a commit that referenced this pull request Jun 30, 2026
* main:
  Web/maintenance: Replace routine form endpoints (#23554)
  root: move server and worker healthcheck to rust (#23556)
  website/docs: api: remove note (#23555)
  web: bump @playwright/test from 1.60.0 to 1.61.0 in /web (#23545)
  providers/scim: fix enum warning when de-serializing (#23553)
  flows: fix flow executor authentication with jwt  (#16646)
  web: bump playwright from 1.60.0 to 1.61.0 in /web (#23542)
  core, web: update translations (#23534)
  web: bump the eslint group across 1 directory with 3 updates (#23538)
  web: bump type-fest from 5.6.0 to 5.7.0 in /web (#23544)
  lifecycle/aws: bump aws-cdk from 2.1128.0 to 2.1128.1 in /lifecycle/aws (#23535)
  core: bump deepmerge from 2.0 to 2.1.0 (#23539)
  root: fix "make gen" failing with "the input device is not a TTY" (#23546)
  core: bump library/golang from `76a2924` to `68b7145` in /lifecycle/container (#23536)
  core: bump goauthentik/fips-python from `15f00f3` to `6067443` in /lifecycle/container (#23537)
  website/integrations: fix logo missing (#23548)
  translate: Updates for project authentik and language ar_AA (#23516)
  Web/maintenance/explicit model endpoints (#22897)
  providers/oauth: Properly return error via post and for request objects (#23037)
  providers/oauth: Logout remove static html (#23002)
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