Skip to content

enterprise/agents: add - #24598

Merged
BeryJu merged 95 commits into
mainfrom
enterprise/agents
Aug 5, 2026
Merged

BeryJu merged 95 commits into
mainfrom
enterprise/agents

Conversation

@BeryJu

@BeryJu BeryJu commented Jul 31, 2026

Copy link
Copy Markdown
Member

No description provided.

BeryJu added 30 commits July 16, 2026 12:32
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>

# Conflicts:
#	authentik/policies/engine.py
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>
@netlify

netlify Bot commented Jul 31, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit d18bfee
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6a731a29d8395800084bd9fb
😎 Deploy Preview https://deploy-preview-24598--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 Jul 31, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.31%. Comparing base (20fa636) to head (4a29d7e).
⚠️ Report is 6 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #24598      +/-   ##
==========================================
+ Coverage   91.23%   91.31%   +0.07%     
==========================================
  Files        1129     1136       +7     
  Lines       70881    71237     +356     
  Branches     3874     3874              
==========================================
+ Hits        64669    65050     +381     
+ Misses       6177     6152      -25     
  Partials       35       35              
Flag Coverage Δ
conformance 35.00% <19.26%> (+<0.01%) ⬆️
e2e 39.74% <19.26%> (-0.12%) ⬇️
integration 31.57% <18.13%> (-0.08%) ⬇️
rust 38.90% <ø> (ø)
unit 92.97% <100.00%> (+0.06%) ⬆️
unit-migrate 93.00% <100.00%> (+0.06%) ⬆️

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.

Base automatically changed from providers/oauth2/token-exchange-delegation to main August 4, 2026 13:38
Signed-off-by: Jens Langhammer <[email protected]>

# Conflicts:
#	authentik/core/models.py
#	authentik/policies/engine.py
#	authentik/providers/oauth2/id_token.py
#	authentik/providers/oauth2/migrations/0037_accesstoken_actor_authorizationcode_actor_and_more.py
#	authentik/providers/oauth2/models.py
#	authentik/providers/oauth2/tests/test_token_exchange.py
#	authentik/providers/oauth2/views/token.py
#	blueprints/schema.json
#	web/src/user/ak-interface-user.ts
@netlify

netlify Bot commented Aug 4, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit 4a29d7e
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/6a734c242ace300007db480d
😎 Deploy Preview https://deploy-preview-24598--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.

Signed-off-by: Jens Langhammer <[email protected]>
@BeryJu BeryJu added the backport/version-2026.8 Add this label to PRs to backport changes to version-2026.8 label Aug 4, 2026
@github-actions

github-actions Bot commented Aug 4, 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-4a29d7eb41b243927a40c507e0a998a8445ba506
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-4a29d7eb41b243927a40c507e0a998a8445ba506

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

@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.

Relatively straightforward

Comment thread authentik/enterprise/agents/models.py Resolved
Signed-off-by: Jens Langhammer <[email protected]>
@netlify

netlify Bot commented Aug 4, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit d18bfee
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/6a731a297fd49000088231af
😎 Deploy Preview https://deploy-preview-24598--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.

BeryJu added 2 commits August 4, 2026 17:04
Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens Langhammer <[email protected]>

@kensternberg-authentik kensternberg-authentik left a comment

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.

Observation: Nowhere on the "User" page in Admin is there any indication the User has a delegated agent.

There's not a lot of information on the Create Agent page that indicates how and when the responseForm() would get triggered or shown; I find the criteria and explanation for this page vague.

The managed-role for the user shows up in Admin ⮕ User ⮕ [User] ⮕ Roles... is it there forever, long after the agent has expired?  Can it/should it be hidden (by default) if the associated agent has expired?

Should superusers always be able to create Agents from their User page, even if the flag isn't set?

Should "Can create agent accounts" be a Permission rather than a Setting?

public override pageTitle = msg("Agents");
public override pageDescription = msg(
"Admin-provisioned delegate identities that access can be requested and granted for, separately from their parent user.",
);

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.

"Admin provisioned delegate identities that can request and be granted access independent of their parent user."

Is 'parent' a standard term here?

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.

I think so? I dont like calling it owner and parent matches the db

Comment thread web/src/user/agents/UserAgentForm.ts Resolved
@BeryJu

BeryJu commented Aug 5, 2026

Copy link
Copy Markdown
Member Author

Observation: Nowhere on the "User" page in Admin is there any indication the User has a delegated agent.

Fixed, there's now a tab in the credentials section

There's not a lot of information on the Create Agent page that indicates how and when the responseForm() would get triggered or shown; I find the criteria and explanation for this page vague.

Its the same as in the service account form

The managed-role for the user shows up in Admin ⮕ User ⮕ [User] ⮕ Roles... is it there forever, long after the agent has expired?  Can it/should it be hidden (by default) if the associated agent has expired?

The managed role will stay, but the permissions expire, and we purposefully dont hide it

Should superusers always be able to create Agents from their User page, even if the flag isn't set?

Previously no, now yes

Should "Can create agent accounts" be a Permission rather than a Setting?

Yeah good point actually, moved it to RBAC with a global role

Signed-off-by: Jens Langhammer <[email protected]>
@BeryJu
BeryJu force-pushed the enterprise/agents branch from ed66b72 to 4a29d7e Compare August 5, 2026 14:43
@BeryJu
BeryJu merged commit c8a513c into main Aug 5, 2026
143 checks passed
@BeryJu
BeryJu deleted the enterprise/agents branch August 5, 2026 15:19
@authentik-cherry-pick

Copy link
Copy Markdown
Contributor

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

BeryJu added a commit that referenced this pull request Aug 5, 2026
enterprise/agents: add (#24598)

* I think I'm happy with this structure



* fixup



* add api



* fix missing engine mode



* add ui



* pull in the requests machinery



* fixup and gen



* gen



* re-wire things up



* re-add more web stuff



* fix unrelated test issue



* fix mixin



* gen



* plumb in flows



* update ui



* initial web



* fix a couple things



* fix api tests & schema



* better pick request flow



* fix perms



* change method



* fix perms



* fix web lint



* explicit perms



* fix migrations



* concrete m2m



* fix perms



* format



* add some default config



* fix permission check -> requesting user checks against rule bindings' policies



* fix unrelated



* fix api client



* fix styling



* fix more



* add banner



* attributes mixin prep for object attrs



* fix tests



* update tests



* fix typo



* fix unrelated test failure



* ensure no self-approval



* configurable expiry



* add meta info to requestable target



* add more events



* only unique apps



* initial app card impl



* add entitlement modal



* respect filters



* re-migrate



* improve ux



* fix child bindings?



* better ux for rule bindings



* fix type check



* initial dcr



* re-migrate



* handle error



* format



* init



* rename



* rename



* self-service



* wip



* move to user view



* always expire self



* t



* format



* actor



* cleanup



* effective user early



* extract agents



* init



* Revert "extract agents"

This reverts commit dce02c0.

* update



* fix navbar



* fix and clamp username length



* format



* switch to rbac



* Fix translatins not apply.

* add admin ui



* add copy button



---------

Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: Jens L. <[email protected]>
Co-authored-by: Teffen Ellis <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/version-2026.8 Add this label to PRs to backport changes to version-2026.8

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants