Skip to content
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

core: app entitlements #12090

Merged
merged 18 commits into from
Dec 18, 2024
Merged

core: app entitlements #12090

merged 18 commits into from
Dec 18, 2024

Conversation

BeryJu
Copy link
Member

@BeryJu BeryJu commented Nov 20, 2024

Details

Application scoped entitlements which can be used to configure authorization within a given application. Entitlements can be assigned to individual users or groups and can store attributes

  • Add scope mapping for entitlements
  • Add docs
  • Add note that policies are not supported for bindings to the entitlements yet
  • Add validation that policies cant be set in bindings to this target type
  • Add preview label

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)

@BeryJu BeryJu requested review from a team as code owners November 20, 2024 14:12
Copy link

netlify bot commented Nov 20, 2024

Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 273310b
🔍 Latest deploy log https://app.netlify.com/sites/authentik-docs/deploys/6762c6f6550516000819a78b
😎 Deploy Preview https://deploy-preview-12090--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 site configuration.

Copy link

netlify bot commented Nov 20, 2024

Deploy Preview for authentik-storybook canceled.

Name Link
🔨 Latest commit 273310b
🔍 Latest deploy log https://app.netlify.com/sites/authentik-storybook/deploys/6762c6f692b26400098a0711

Copy link

codecov bot commented Nov 20, 2024

Codecov Report

Attention: Patch coverage is 96.52778% with 5 lines in your changes missing coverage. Please review.

Project coverage is 92.72%. Comparing base (9a5effa) to head (273310b).
Report is 40 commits behind head on main.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
authentik/core/models.py 79.16% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #12090      +/-   ##
==========================================
- Coverage   92.76%   92.72%   -0.05%     
==========================================
  Files         767      770       +3     
  Lines       38522    38701     +179     
==========================================
+ Hits        35736    35886     +150     
- Misses       2786     2815      +29     
Flag Coverage Δ
e2e 48.69% <30.55%> (-0.17%) ⬇️
integration 24.61% <9.72%> (-0.08%) ⬇️
unit 90.38% <96.52%> (+0.05%) ⬆️

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.

@BeryJu BeryJu force-pushed the core/app-entitlements branch 2 times, most recently from 281fc44 to 25602f4 Compare November 25, 2024 15:41
@BeryJu BeryJu requested a review from a team as a code owner November 25, 2024 17:00
Copy link
Contributor

github-actions bot commented Nov 25, 2024

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-273310bf20fbd56aa5899dad3d3ab220f6618fe2
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-273310bf20fbd56aa5899dad3d3ab220f6618fe2-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-273310bf20fbd56aa5899dad3d3ab220f6618fe2

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-273310bf20fbd56aa5899dad3d3ab220f6618fe2-arm64

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

@BeryJu BeryJu force-pushed the core/app-entitlements branch 2 times, most recently from c5ed579 to 3da4d9d Compare December 10, 2024 18:17
@BeryJu BeryJu added the deploy_me Deploy the PR changes on a test environment label Dec 10, 2024
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]>
@BeryJu BeryJu force-pushed the core/app-entitlements branch from 0db3612 to 00503df Compare December 16, 2024 16:59
Copy link
Contributor

@tanberry tanberry left a comment

Choose a reason for hiding this comment

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

Thanks for the docs!

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]>
@BeryJu BeryJu force-pushed the core/app-entitlements branch from d2bc757 to 273310b Compare December 18, 2024 12:58
@BeryJu BeryJu merged commit 40a7135 into main Dec 18, 2024
67 of 68 checks passed
@BeryJu BeryJu deleted the core/app-entitlements branch December 18, 2024 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deploy_me Deploy the PR changes on a test environment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants