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

website/integrations: Update nextcloud Admin Group Expression #7314

Merged
merged 2 commits into from
Mar 25, 2024

Conversation

smdion
Copy link
Contributor

@smdion smdion commented Oct 26, 2023

Replace user.ak_groups.all() with user.all_groups per 2023.8 release notes in Admin Group

Update Expression in Admin group to only pass groups that start with 'NC-' to NextCloud. Add verbiage around naming for admin group.


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)

Replace user.ak_groups.all() with user.all_groups per 2023.8 release notes in Admin Group

Update Expression in Admin group to only pass groups that start with 'NC-' to NextCloud.  Add verbiage around naming for admin group.

Signed-off-by: Sean Dion <smdion@gmail.com>
@smdion smdion requested a review from a team as a code owner October 26, 2023 17:41
@netlify
Copy link

netlify bot commented Oct 26, 2023

Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit e2f2def
🔍 Latest deploy log https://app.netlify.com/sites/authentik-storybook/deploys/66016739a1c9530008135294
😎 Deploy Preview https://deploy-preview-7314--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
Copy link

netlify bot commented Oct 26, 2023

Deploy Preview for authentik ready!

Name Link
🔨 Latest commit 4865864
🔍 Latest deploy log https://app.netlify.com/sites/authentik/deploys/653aa4de0d80690008c6463f
😎 Deploy Preview https://deploy-preview-7314--authentik.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 94 (🟢 up 11 from production)
Accessibility: 90 (no change from production)
Best Practices: 100 (no change from production)
SEO: 80 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Member

@rissson rissson left a comment

Choose a reason for hiding this comment

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

I agree with changing user.ak_groups.all() to user.all_groups(), but I don't like the NC- prefix for groups that will be synced to Nextcloud. I think we should leave that up to the admin to decide.
Thoughts @tanberry @BeryJu ?

@BeryJu
Copy link
Member

BeryJu commented Nov 1, 2023

I agree with changing user.ak_groups.all() to user.all_groups(), but I don't like the NC- prefix for groups that will be synced to Nextcloud. I think we should leave that up to the admin to decide. Thoughts @tanberry @BeryJu ?

Agree, it should be updated to use all_groups but not filter based on a prefix (and if it were to filter, it should be filtered on the database level)

Copy link

codecov bot commented Nov 1, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 50.62%. Comparing base (e086da6) to head (e2f2def).
Report is 1127 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #7314       +/-   ##
===========================================
- Coverage   92.65%   50.62%   -42.03%     
===========================================
  Files         587      640       +53     
  Lines       28888    31553     +2665     
===========================================
- Hits        26765    15973    -10792     
- Misses       2123    15580    +13457     
Flag Coverage Δ
e2e 49.06% <ø> (-1.89%) ⬇️
integration 26.09% <ø> (+0.07%) ⬆️
unit ?

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

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

Apologies it took me so long to look at this. @smdion shall we continue discussion about the use of a prefix, and can you update the docs/PR accordingly?

@@ -98,13 +98,14 @@ To give authentik users admin access to your Nextcloud instance, you need to cre
Create a custom SAML Property Mapping:

- Set the _SAML Attribute Name_ to `http://schemas.xmlsoap.org/claims/Group`.
- Set the _Expression_ to:
- Set group names that you want to passthrough to start with 'NC-'
Copy link
Contributor

Choose a reason for hiding this comment

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

@smdion what is the agreement on having this prefix? Sounds like @BeryJu and @rissson advise against it?

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
@BeryJu BeryJu changed the title Update Admin Group Expression website/integrations: Update nextcloud Admin Group Expression Mar 25, 2024
Copy link

netlify bot commented Mar 25, 2024

Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit e2f2def
🔍 Latest deploy log https://app.netlify.com/sites/authentik-docs/deploys/660167393eb3050008503e10
😎 Deploy Preview https://deploy-preview-7314--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.

@BeryJu BeryJu merged commit 285dc8c into goauthentik:main Mar 25, 2024
56 of 61 checks passed
kensternberg-authentik added a commit that referenced this pull request Mar 26, 2024
* main:
  web: bump API Client version (#9021)
  sources/ldap: add ability to disable password write on login (#8377)
  web: bump API Client version (#9020)
  lifecycle: migrate: ensure template schema exists before migrating (#8952)
  website/integrations: Update nextcloud Admin Group Expression (#7314)
  web/flow: general ux improvements (#8558)
  website: bump @types/react from 18.2.67 to 18.2.69 in /website (#9016)
  core: bump requests-oauthlib from 1.4.0 to 2.0.0 (#9018)
  web: bump the sentry group in /web with 2 updates (#9017)
  web/admin: small fixes (#9002)
  website: bump webpack-dev-middleware from 5.3.3 to 5.3.4 in /website (#9001)
  core: bump ruff from 0.3.3 to 0.3.4 (#8998)
  website/docs: Upgrade nginx reverse porxy config (#8947)
  website/docs: improve flow inspector docs (#8993)
  website/deverlop-docs website/integrations: add links to integrations template (#8995)
kensternberg-authentik added a commit that referenced this pull request Mar 26, 2024
* main: (27 commits)
  web: bump API Client version (#9035)
  website/docs: maintenance, re-add system settings (#9026)
  core: bump duo-client from 5.2.0 to 5.3.0 (#9029)
  website: bump express from 4.18.2 to 4.19.2 in /website (#9027)
  web: bump express from 4.18.3 to 4.19.2 in /web (#9028)
  web: bump the eslint group in /web with 2 updates (#9030)
  core: bump goauthentik.io/api/v3 from 3.2024022.3 to 3.2024022.5 (#9031)
  website: bump @types/react from 18.2.69 to 18.2.70 in /website (#9032)
  web: bump the eslint group in /tests/wdio with 2 updates (#9033)
  web: bump katex from 0.16.9 to 0.16.10 in /web (#9025)
  translate: Updates for file locale/en/LC_MESSAGES/django.po in fr (#9023)
  website/docs: include OS-specific docker-compose install instructions + minor fixes (#8975)
  web: bump API Client version (#9021)
  sources/ldap: add ability to disable password write on login (#8377)
  web: bump API Client version (#9020)
  lifecycle: migrate: ensure template schema exists before migrating (#8952)
  website/integrations: Update nextcloud Admin Group Expression (#7314)
  web/flow: general ux improvements (#8558)
  website: bump @types/react from 18.2.67 to 18.2.69 in /website (#9016)
  core: bump requests-oauthlib from 1.4.0 to 2.0.0 (#9018)
  ...
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.

4 participants