Skip to content

core: hotfix group membership check#6584

Merged
BeryJu merged 1 commit intomainfrom
core/hotfix-group-membership-check
Aug 20, 2023
Merged

core: hotfix group membership check#6584
BeryJu merged 1 commit intomainfrom
core/hotfix-group-membership-check

Conversation

@BeryJu
Copy link
Member

@BeryJu BeryJu commented Aug 20, 2023

Details

The reworked group membership pr #6017 broke memberships with multiple groups, which was lacking a test case so the issue wasn't caught in the PR

This PR fixes the issue and adds a test case to prevent this in the future

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)
  • The translation files have been updated (make i18n-extract)

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 a review from a team as a code owner August 20, 2023 21:30
@BeryJu BeryJu requested review from smusali and removed request for a team August 20, 2023 21:30
@netlify
Copy link

netlify bot commented Aug 20, 2023

Deploy Preview for authentik-storybook canceled.

Name Link
🔨 Latest commit 64ff4ff
🔍 Latest deploy log https://app.netlify.com/sites/authentik-storybook/deploys/64e28606349b780008c07ba7

@codecov
Copy link

codecov bot commented Aug 20, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.01% 🎉

Comparison is base (cecf7a0) 92.46% compared to head (64ff4ff) 92.46%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6584      +/-   ##
==========================================
+ Coverage   92.46%   92.46%   +0.01%     
==========================================
  Files         561      561              
  Lines       27092    27094       +2     
==========================================
+ Hits        25048    25050       +2     
  Misses       2044     2044              
Flag Coverage Δ
e2e 51.69% <50.00%> (+0.09%) ⬆️
integration 26.57% <0.00%> (-<0.01%) ⬇️
unit 89.28% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
authentik/core/models.py 92.82% <100.00%> (ø)
authentik/core/tests/test_groups.py 100.00% <100.00%> (ø)

... and 2 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@BeryJu BeryJu merged commit 0472ef5 into main Aug 20, 2023
@BeryJu BeryJu deleted the core/hotfix-group-membership-check branch August 20, 2023 21:47
@github-actions
Copy link
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-core-hotfix-group-membership-check-1692567877-64ff4ff
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-core-hotfix-group-membership-check-1692567877-64ff4ff-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
image:
    repository: ghcr.io/goauthentik/dev-server
    tag: gh-core-hotfix-group-membership-check-1692567877-64ff4ff

For arm64, use these values:

authentik:
    outposts:
        container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
image:
    repository: ghcr.io/goauthentik/dev-server
    tag: gh-core-hotfix-group-membership-check-1692567877-64ff4ff-arm64

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

kensternberg-authentik added a commit that referenced this pull request Aug 21, 2023
* main: (70 commits)
  core: hotfix group membership check (#6584)
  web: bump core-js from 3.32.0 to 3.32.1 in /web (#6581)
  web: bump tslib from 2.6.1 to 2.6.2 in /web (#6583)
  web: bump the storybook group in /web with 5 updates (#6580)
  web/flows: update flow background (#6579)
  translate: Updates for file web/xliff/en.xlf in zh_CN on branch main (#6575)
  core: rework recursive group membership (#6017)
  core: bump goauthentik.io/api/v3 from 3.2023061.11 to 3.2023061.12 (#6572)
  core: bump ruff from 0.0.284 to 0.0.285 (#6570)
  ci: bump actions/setup-node from 3.8.0 to 3.8.1
  blueprints: fix blueprint importer logging potentially sensitive data (#6567)
  web: bump API Client version (#6568)
  stages/authenticator_static: make static token size adjustable (#6565)
  root: always use persistent database connections (#6560)
  website/blog: identity fun (#6564)
  web: bump the storybook group in /web with 1 update (#6561)
  web: bump @rollup/plugin-node-resolve from 15.1.0 to 15.2.0 in /web (#6562)
  web: bump @lit-labs/task from 3.0.0 to 3.0.1 in /web (#6544)
  web: bump prettier from 3.0.1 to 3.0.2 in /web (#6549)
  web: bump the storybook group in /web with 5 updates (#6559)
  ...
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.

1 participant