authentik icon indicating copy to clipboard operation
authentik copied to clipboard

sources: introduce new property mappings per user and group

Open rissson opened this issue 1 year ago • 6 comments

Details

Upstream the user and group property mappings logic of the LDAP provider to all sources.


Checklist

  • [x] Local tests pass (ak test authentik/)
  • [x] The code has been formatted (make lint-fix)

If an API change has been made

  • [x] The API schema has been updated (make gen-build)

If changes to the frontend have been made

  • [x] The code has been formatted (make web)

Documentation PR: https://github.com/goauthentik/authentik/pull/8780

rissson avatar Feb 29 '24 11:02 rissson

Deploy Preview for authentik-docs ready!

Name Link
Latest commit d23fc6881b0505f41c7315fc0583133c55234a18
Latest deploy log https://app.netlify.com/sites/authentik-docs/deploys/669ae47162dc4f0008361686
Deploy Preview https://deploy-preview-8750--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.

netlify[bot] avatar Feb 29 '24 11:02 netlify[bot]

Deploy Preview for authentik-storybook ready!

Name Link
Latest commit d23fc6881b0505f41c7315fc0583133c55234a18
Latest deploy log https://app.netlify.com/sites/authentik-storybook/deploys/669ae471942ac000086de513
Deploy Preview https://deploy-preview-8750--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 site configuration.

netlify[bot] avatar Feb 29 '24 11:02 netlify[bot]

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-d23fc6881b0505f41c7315fc0583133c55234a18
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-d23fc6881b0505f41c7315fc0583133c55234a18-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-d23fc6881b0505f41c7315fc0583133c55234a18

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

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

github-actions[bot] avatar Mar 01 '24 13:03 github-actions[bot]

This should be ready for review.

rissson avatar Mar 01 '24 14:03 rissson

Codecov Report

Attention: Patch coverage is 97.71429% with 4 lines in your changes missing coverage. Please review.

Project coverage is 92.61%. Comparing base (f24d508) to head (d23fc68). Report is 14 commits behind head on main.

Files Patch % Lines
authentik/sources/ldap/models.py 91.66% 2 Missing :warning:
authentik/core/sources/mapper.py 97.95% 1 Missing :warning:
authentik/sources/ldap/sync/groups.py 90.00% 1 Missing :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8750      +/-   ##
==========================================
+ Coverage   92.59%   92.61%   +0.02%     
==========================================
  Files         714      717       +3     
  Lines       35010    35084      +74     
==========================================
+ Hits        32417    32494      +77     
+ Misses       2593     2590       -3     
Flag Coverage Δ
e2e 49.59% <61.71%> (+0.01%) :arrow_up:
integration 25.37% <37.14%> (+<0.01%) :arrow_up:
unit 90.12% <97.71%> (+0.01%) :arrow_up:

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

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Apr 25 '24 11:04 codecov[bot]

@rissson is this coming on the next release? @kensternberg-authentik

eram avatar May 05 '24 11:05 eram