Repository navigation
fix(plan,admin): monitors/API keys stop with the plan; admin stats and avatars - #131
Merged
Merged
Conversation
…user stats and avatars - Monitors record who set them up; each scheduled run re-reads that person's live plan (service account, plan sharing included) and is held, with a history entry and a "Held: plan" pill, when it no longer covers monitoring. Resuming a paused monitor now needs the plan. Unreadable plans fail open. - API keys record their creator; ingest is refused with 402 once the creator no longer has Team. Read-back, list, revoke and drain stay open. - Admin: "New users (7 days)", the registration chart and last-active now count the Auth metadata date strings profiles store. - Admin: avatars load only from Google/GitHub avatar hosts, with no-referrer, so a user-set photoURL can't make the owner's browser call an arbitrary server.
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
From the 2026-11-20 bug audit (#5 and #6).
#5: monitors and API keys kept working after a downgrade
by). Every scheduled (alarm) run re-reads that person's live plan with the service account, including a team owner's shared plan (newliveTierinworker/plan-share.js).pausewithpaused:false) now needs the plan, like upsert, run and test. The resumer then carries the check.createdBy.#6: admin panel
ensureUserDocstores. Before, every real profile counted as 0.lh*.googleusercontent.com/avatars.githubusercontent.com, withreferrerpolicy="no-referrer". Any other user-setphotoURLfalls back to initials, so opening Admin > Users no longer sends the owner's IP to a server the user chose.Tests
14 new tests:
liveTier: service-account read, downgrade, admin, legacy fallback, shared plan, fail-openalarm()pathnpm test: 5050 passed, 0 failed.Not deployed. Shipping needs a Worker deploy (wrangler) as well as hosting.