Skip to content

Force npm username lowercase#6977

Merged
knolleary merged 3 commits intomainfrom
force-npm-username-lowercase
Mar 27, 2026
Merged

Force npm username lowercase#6977
knolleary merged 3 commits intomainfrom
force-npm-username-lowercase

Conversation

@hardillb
Copy link
Copy Markdown
Contributor

@hardillb hardillb commented Mar 26, 2026

fixes #5613

Description

npm enforces lowercase usernames on the client side now, so we
need to provide lowsercase usernames.

We already enforce that usernames are unique when converted to
lowercase so not a problem. This change to allows token auth checks
specifically for npm to be matched to the lowercase version.

Related Issue(s)

#5613

Checklist

  • I have read the contribution guidelines
  • Suitable unit/system level tests have been added and they pass
  • Documentation has been updated
    • Upgrade instructions
    • Configuration details
    • Concepts
  • Changes flowforge.yml?
    • Issue/PR raised on FlowFuse/helm to update ConfigMap Template
    • Issue/PR raised on FlowFuse/CloudProject to update values for Staging/Production
  • Link to Changelog Entry PR, or note why one is not needed.

Labels

  • Includes a DB migration? -> add the area:migration label

fixes #5613

npm enforces lowercase usernames on the client side now, so we
need to provide lowsercase usernames.

We already enforce that usernames are unique when converted to
lowercase so not a problem. This change to allows token auth checks
specifically for npm to be matched to the lowercase version.
@hardillb hardillb self-assigned this Mar 26, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.29%. Comparing base (9e8c0fc) to head (c9f900b).
⚠️ Report is 79 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6977   +/-   ##
=======================================
  Coverage   76.29%   76.29%           
=======================================
  Files         403      403           
  Lines       20293    20296    +3     
  Branches     4880     4881    +1     
=======================================
+ Hits        15482    15485    +3     
  Misses       4811     4811           
Flag Coverage Δ
backend 76.29% <100.00%> (+<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.

@knolleary knolleary merged commit 9276ea3 into main Mar 27, 2026
36 of 38 checks passed
@knolleary knolleary deleted the force-npm-username-lowercase branch March 27, 2026 15:22
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.

npm requires lowercase usernames

2 participants