Repository navigation
feat(auth): match the email ignoring case when sharing - #9739
tanishqgandhi1908 wants to merge 1 commit into
Conversation
OwnerAccess.registeredUid, used by every share endpoint, now matches lower(email) like sign-up does, preferring an exact match when two accounts differ only in case. The workflow self-grant check ignores case too. Closes apache#9738
Backport auto-label reportThis
|
Automated Reviewer SuggestionsBased on the
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9739 +/- ##
=========================================
Coverage 91.77% 91.77%
+ Complexity 5136 5134 -2
=========================================
Files 1308 1308
Lines 58013 58015 +2
Branches 7552 7552
=========================================
+ Hits 53240 53244 +4
+ Misses 2887 2883 -4
- Partials 1886 1888 +2
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
| config | throughput | MB/s | latency | max Δ latest / 7d | |
|---|---|---|---|---|---|
| 🟢 | bs=10 sw=10 sl=64 | 748 | 0.456 | 12,941/18,354/18,354 us | 🟢 -27.8% / 🔴 +38.2% |
| 🟢 | bs=100 sw=10 sl=64 | 1,761 | 1.075 | 56,345/68,575/68,575 us | 🟢 -12.8% / 🟢 +35.4% |
| 🔴 | bs=1000 sw=10 sl=64 | 1,984 | 1.211 | 496,403/620,264/620,264 us | 🔴 +6.2% / 🟢 +47.7% |
Baseline details
Latest main e8c37e6 from same runner
| config | metric | PR | latest main | 7d avg | Δ latest | Δ 7d |
|---|---|---|---|---|---|---|
| bs=10 sw=10 sl=64 | throughput | 748 tuples/sec | 614 tuples/sec | 979.62 tuples/sec | +21.8% | -23.6% |
| bs=10 sw=10 sl=64 | MB/s | 0.456 MB/s | 0.375 MB/s | 0.598 MB/s | +21.6% | -23.7% |
| bs=10 sw=10 sl=64 | p50 | 12,941 us | 13,084 us | 10,327 us | -1.1% | +25.3% |
| bs=10 sw=10 sl=64 | p95 | 18,354 us | 25,413 us | 13,278 us | -27.8% | +38.2% |
| bs=10 sw=10 sl=64 | p99 | 18,354 us | 25,413 us | 16,337 us | -27.8% | +12.3% |
| bs=100 sw=10 sl=64 | throughput | 1,761 tuples/sec | 1,720 tuples/sec | 1,301 tuples/sec | +2.4% | +35.4% |
| bs=100 sw=10 sl=64 | MB/s | 1.075 MB/s | 1.05 MB/s | 0.794 MB/s | +2.4% | +35.4% |
| bs=100 sw=10 sl=64 | p50 | 56,345 us | 57,268 us | 81,097 us | -1.6% | -30.5% |
| bs=100 sw=10 sl=64 | p95 | 68,575 us | 78,607 us | 88,241 us | -12.8% | -22.3% |
| bs=100 sw=10 sl=64 | p99 | 68,575 us | 78,607 us | 100,970 us | -12.8% | -32.1% |
| bs=1000 sw=10 sl=64 | throughput | 1,984 tuples/sec | 1,936 tuples/sec | 1,344 tuples/sec | +2.5% | +47.6% |
| bs=1000 sw=10 sl=64 | MB/s | 1.211 MB/s | 1.182 MB/s | 0.82 MB/s | +2.5% | +47.7% |
| bs=1000 sw=10 sl=64 | p50 | 496,403 us | 513,950 us | 790,934 us | -3.4% | -37.2% |
| bs=1000 sw=10 sl=64 | p95 | 620,264 us | 583,929 us | 832,160 us | +6.2% | -25.5% |
| bs=1000 sw=10 sl=64 | p99 | 620,264 us | 583,929 us | 882,542 us | +6.2% | -29.7% |
Raw CSV
config_idx,batch_size,schema_width,string_len,num_batches,total_ms,total_tuples,total_bytes,tuples_per_sec,mb_per_sec,lat_p50_us,lat_p95_us,lat_p99_us
0,10,10,64,20,267.51,200,128000,748,0.456,12941.23,18354.12,18354.12
1,100,10,64,20,1135.54,2000,1280000,1761,1.075,56344.52,68574.98,68574.98
2,1000,10,64,20,10080.17,20000,12800000,1984,1.211,496403.30,620263.54,620263.54
What changes were proposed in this PR?
Sharing a workflow, dataset, model or compute unit failed with "No registered user with email ..." whenever the typed email's capitalisation differed from the account's. Stored emails keep the casing the user signed up with, and the share lookup compared them exactly.
OwnerAccess.registeredUid, which every share endpoint uses, now matcheslower(email), like sign-up (AuthResource.fetchUserByEmailIgnoreCase). The email's plainUNIQUEstill allows two accounts that differ only in case. In that case the exact match wins, instead of the lookup failing with more than one row.Any related issues, documentation, discussions?
Closes #9738
How was this PR tested?
OwnerAccessRegisteredUidSpec(MockTexeraDB):WorkflowAccessResourceSpec: new test that granting toNewGrantee@Test.comworks for the accountnewgrantee@test.com.DatasetAccessResourceSpec,ModelAccessResourceSpecandComputingUnitAccessResourceSpecstill pass.Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Claude Opus 5.5)