Skip to content

Conversation

@xfournet
Copy link
Member

@xfournet xfournet commented Dec 23, 2025

Proposed changes

  • Cache the decoded EE license to avoid to check it at every request
  • Ensure the raw PEM has not been changed since the cached value has been created

Related issues

Checklist

  • I consider the submitted work as finished
  • I tested the code for its functionality
  • I wrote test cases for the relevant uses case (coverage and e2e)
  • I added/update the relevant documentation (either on github or on notion)
  • Where necessary I refactored code to improve the overall quality

@codecov
Copy link

codecov bot commented Dec 23, 2025

Codecov Report

❌ Patch coverage is 91.66667% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 30.84%. Comparing base (a837f71) to head (f5bc128).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
...tform/opencti-graphql/src/http/httpChatbotProxy.ts 0.00% 1 Missing ⚠️
.../opencti-graphql/src/modules/settings/licensing.ts 95.65% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master   #13824   +/-   ##
=======================================
  Coverage   30.84%   30.84%           
=======================================
  Files        2910     2910           
  Lines      192266   192260    -6     
  Branches    39185    39185           
=======================================
+ Hits        59299    59300    +1     
+ Misses     132967   132960    -7     
Flag Coverage Δ
opencti 30.84% <91.66%> (+<0.01%) ⬆️
opencti-front 2.47% <ø> (+<0.01%) ⬆️
opencti-graphql 68.21% <91.66%> (-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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

EE license is decoded for each HTTP request

3 participants