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

enterprise: add up-to-date license status #11042

Merged
merged 1 commit into from
Aug 23, 2024

Conversation

BeryJu
Copy link
Member

@BeryJu BeryJu commented Aug 23, 2024

Details

Since the current admin interface only uses the cached license status, it can happen that the cached status is out-dated, and enterprise features might not work as expected due to the difference


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 August 23, 2024 11:34
Copy link

netlify bot commented Aug 23, 2024

Deploy Preview for authentik-docs canceled.

Name Link
🔨 Latest commit edb09cb
🔍 Latest deploy log https://app.netlify.com/sites/authentik-docs/deploys/66c873c59d884c000846de91

Copy link

netlify bot commented Aug 23, 2024

Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit edb09cb
🔍 Latest deploy log https://app.netlify.com/sites/authentik-storybook/deploys/66c873c57ffba50008400fbd
😎 Deploy Preview https://deploy-preview-11042--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.

Copy link

codecov bot commented Aug 23, 2024

Codecov Report

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

Project coverage is 92.70%. Comparing base (b301048) to head (edb09cb).
Report is 3 commits behind head on main.

Files Patch % Lines
authentik/enterprise/api.py 66.66% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #11042      +/-   ##
==========================================
- Coverage   92.76%   92.70%   -0.06%     
==========================================
  Files         736      736              
  Lines       36422    36425       +3     
==========================================
- Hits        33786    33767      -19     
- Misses       2636     2658      +22     
Flag Coverage Δ
e2e 49.20% <66.66%> (-0.07%) ⬇️
integration 25.01% <33.33%> (-0.01%) ⬇️
unit 90.25% <33.33%> (+<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.

@BeryJu BeryJu merged commit 41fbb6d into main Aug 23, 2024
66 of 67 checks passed
@BeryJu BeryJu deleted the enterprise/better-license-status branch August 23, 2024 12:05
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-edb09cb16c75995d5b8af32d40c2a3f5f9372b36
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-edb09cb16c75995d5b8af32d40c2a3f5f9372b36-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-edb09cb16c75995d5b8af32d40c2a3f5f9372b36

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

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

Copy link

sentry-io bot commented Aug 23, 2024

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ AttributeError: 'NoneType' object has no attribute 'lower' authentik.enterprise.api.LicenseViewSet View Issue

Did you find this useful? React with a 👍 or 👎

kensternberg-authentik added a commit that referenced this pull request Aug 23, 2024
* main: (165 commits)
  web/flows: update flow background (#11044)
  web: bump API Client version (#11043)
  website/integrations: Correct Discord avatar code and add warning. (#11031)
  core, web: update translations (#11032)
  website: bump docusaurus-theme-openapi-docs from 4.0.0 to 4.0.1 in /website (#11034)
  core: bump ruff from 0.6.1 to 0.6.2 (#11035)
  core: bump goauthentik.io/api/v3 from 3.2024063.12 to 3.2024063.13 (#11036)
  web: bump the babel group across 1 directory with 3 updates (#11038)
  web: bump wireit from 0.14.7 to 0.14.8 in /web (#11039)
  web: bump @goauthentik/api from 2024.6.3-1723921843 to 2024.6.3-1724337552 in /web/sfe (#11040)
  enterprise: add up-to-date license status (#11042)
  website/docs: cve release notes (#11026)
  security: fix CVE-2024-42490 (#11022)
  web: bump API Client version (#11021)
  providers/scim: optimize sending all members within a group (#9968)
  providers/scim: add API endpoint to sync single user (#8486)
  web: bump chromedriver from 127.0.3 to 128.0.0 in /tests/wdio (#11017)
  web: dual-select uses, part 2: dual-select harder (#9377)
  web: fix flash of unstructured content, add tests for it (#11013)
  core: bump drf-orjson-renderer from 1.7.2 to 1.7.3 (#11015)
  ...
kensternberg-authentik added a commit that referenced this pull request Aug 27, 2024
* dev:
  web/flows: update flow background (#11044)
  web: bump API Client version (#11043)
  website/integrations: Correct Discord avatar code and add warning. (#11031)
  core, web: update translations (#11032)
  website: bump docusaurus-theme-openapi-docs from 4.0.0 to 4.0.1 in /website (#11034)
  core: bump ruff from 0.6.1 to 0.6.2 (#11035)
  core: bump goauthentik.io/api/v3 from 3.2024063.12 to 3.2024063.13 (#11036)
  web: bump the babel group across 1 directory with 3 updates (#11038)
  web: bump wireit from 0.14.7 to 0.14.8 in /web (#11039)
  web: bump @goauthentik/api from 2024.6.3-1723921843 to 2024.6.3-1724337552 in /web/sfe (#11040)
  enterprise: add up-to-date license status (#11042)
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