Skip to content

lib: add expression helper ak_create_jwt to create JWTs #12599

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

Merged
merged 3 commits into from
Jan 8, 2025

Conversation

BeryJu
Copy link
Member

@BeryJu BeryJu commented Jan 8, 2025

Details

REPLACE ME


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 has been updated (make gen-build)

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 website)

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
@BeryJu BeryJu requested review from a team as code owners January 8, 2025 14:27
Copy link

netlify bot commented Jan 8, 2025

Deploy Preview for authentik-docs canceled.

Name Link
🔨 Latest commit cbab26c
🔍 Latest deploy log https://app.netlify.com/sites/authentik-docs/deploys/677ea471eef54200088c1f6e

Copy link

netlify bot commented Jan 8, 2025

Deploy Preview for authentik-storybook canceled.

Name Link
🔨 Latest commit cbab26c
🔍 Latest deploy log https://app.netlify.com/sites/authentik-storybook/deploys/677ea471aa389f0008534143

Copy link

codecov bot commented Jan 8, 2025

Codecov Report

Attention: Patch coverage is 94.59459% with 2 lines in your changes missing coverage. Please review.

Project coverage is 92.69%. Comparing base (10c3584) to head (cbab26c).
Report is 3 commits behind head on main.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
authentik/lib/expression/evaluator.py 89.47% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main   #12599   +/-   ##
=======================================
  Coverage   92.68%   92.69%           
=======================================
  Files         770      770           
  Lines       38873    38907   +34     
=======================================
+ Hits        36031    36066   +35     
+ Misses       2842     2841    -1     
Flag Coverage Δ
e2e 48.58% <21.62%> (+0.94%) ⬆️
integration 24.58% <18.91%> (-0.01%) ⬇️
unit 90.39% <94.59%> (+<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.

Copy link
Contributor

github-actions bot commented Jan 8, 2025

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-c85fa03c422098335224e72319cb36c792466401
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s

For arm64, use these values:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-c85fa03c422098335224e72319cb36c792466401-arm64
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-c85fa03c422098335224e72319cb36c792466401

For arm64, use these values:

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-c85fa03c422098335224e72319cb36c792466401-arm64

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

BeryJu added 2 commits January 8, 2025 16:36
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
@BeryJu BeryJu merged commit 646d133 into main Jan 8, 2025
70 of 71 checks passed
@BeryJu BeryJu deleted the lib/add-ak_create_jwt branch January 8, 2025 17:28
kensternberg-authentik added a commit that referenced this pull request Jan 8, 2025
* main:
  lib: add expression helper ak_create_jwt to create JWTs (#12599)
  api: cleanup owner permissions (#12598)
  website: bump aws-cdk from 2.174.0 to 2.174.1 in /website (#12593)
  core: bump aws-cdk-lib from 2.174.0 to 2.174.1 (#12594)
  website/integrations: portainer: group config steps (#12548)
  translate: Updates for file web/xliff/en.xlf in fi (#12586)
  translate: Updates for file locale/en/LC_MESSAGES/django.po in fi (#12584)
  website/docs: fix Nginx redirection example (#12561)
mahmoudajawad pushed a commit to mahmoudajawad/authentik that referenced this pull request Jan 15, 2025
…12599)

* lib: add expression helper ak_create_jwt to create JWTs

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* add tests

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* fix lookup

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

---------

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
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.

2 participants