Skip to content

Use django function for secret_key generation - #12999

Merged
SchrodingersGat merged 1 commit into
inventree:masterfrom
SchrodingersGat:secret-key
Oct 13, 2026
Merged

SchrodingersGat merged 1 commit into
inventree:masterfrom
SchrodingersGat:secret-key

Conversation

@SchrodingersGat

Copy link
Copy Markdown
Member

Rather than rolling our own secret-key generation, use django's built-in functionality.

This only impacts generation of a new key - any existing secret keys will be untouched.

@SchrodingersGat SchrodingersGat added this to the 1.6.0 milestone Oct 12, 2026
@SchrodingersGat SchrodingersGat added the security Relates to a security issue label Oct 12, 2026
@netlify

netlify Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for inventree-web-pui-preview ready!

Name Link
🔨 Latest commit 7fa25bf
🔍 Latest deploy log https://app.netlify.com/projects/inventree-web-pui-preview/deploys/6acd685b4f6f76a892552c48
😎 Deploy Preview https://deploy-preview-12999--inventree-web-pui-preview.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: 95 (🟢 up 2 from production)
Accessibility: 82 (no change from production)
Best Practices: 92 (no change from production)
SEO: 78 (no change from production)
PWA: -
View the detailed breakdown and full score reports
🤖 Make changes Run an agent on this branch

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

@codecov

codecov Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.15%. Comparing base (db90e48) to head (7fa25bf).
⚠️ Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #12999      +/-   ##
==========================================
- Coverage   87.22%   87.15%   -0.07%     
==========================================
  Files        1512     1512              
  Lines      104148   104247      +99     
  Branches    11708    11669      -39     
==========================================
+ Hits        90838    90859      +21     
- Misses      13244    13325      +81     
+ Partials       66       63       -3     
Flag Coverage Δ
backend 92.05% <100.00%> (+<0.01%) ⬆️

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

Components Coverage Δ
Backend Apps 92.57% <ø> (-0.09%) ⬇️
Backend General 94.52% <ø> (ø)
Frontend 79.36% <ø> (+0.02%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@guest20

guest20 commented Oct 13, 2026

Copy link
Copy Markdown

Is it worth sticking a prefix/suffix on the secret so it's easier to redact in cases where it gets committed somewhere, or accidentally makes it way into logs?

@SchrodingersGat
SchrodingersGat merged commit bdcba5c into inventree:master Oct 13, 2026
48 of 49 checks passed
@SchrodingersGat
SchrodingersGat deleted the secret-key branch October 13, 2026 02:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

security Relates to a security issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants