fix: runner alloc idx logic, api auth for actor get#4443
fix: runner alloc idx logic, api auth for actor get#4443MasterPtato wants to merge 1 commit intomainfrom
Conversation
|
🚅 Deployed to the rivet-pr-4443 environment in rivet-frontend
|
PR Review: fix: runner alloc idx logic, api auth for actor getSummaryThis PR fixes two related issues: (1) runner allocation index logic during drain/eviction, and (2) API auth being required for actor lookups by specific IDs/keys. Overall the approach is correct, but I have some concerns worth discussing. Concerns1. Auth bypass logic may need clarification (security)File: The comment says “Reading is allowed, list requires auth” — but this allows unauthenticated access to any actor when the caller knows its ID or key. Since This may be intentional (e.g., actors have public-readable state by design), but the comment should clarify why unauthenticated reads are safe here — specifically, whether actor IDs/keys are considered non-secret or whether there is another access control layer downstream. 2. Incomplete eviction handling in
|
5b2bead to
cfc4fad
Compare
cfc4fad to
65280b5
Compare
65280b5 to
84dbf32
Compare
84dbf32 to
90c2e97
Compare
90c2e97 to
ebdaa13
Compare
ebdaa13 to
63b3a1f
Compare

Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context.
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Checklist: