feat: admin dashboard UI with live activity feed#22
Open
ServerSideHannes wants to merge 1 commit intomainfrom
Open
feat: admin dashboard UI with live activity feed#22ServerSideHannes wants to merge 1 commit intomainfrom
ServerSideHannes wants to merge 1 commit intomainfrom
Conversation
Add an optional admin dashboard at `/admin` (gated by `S3PROXY_ADMIN_UI`) that renders summary cards, a live request feed, bucket/key tables, and a status footer. Matches the light, card-based design spec. - Basic Auth (falls back to configured AWS credentials if unset) - `/admin/` serves the HTML; `/admin/api/status` returns JSON - Request log ring buffer hooked into request_handler for live traffic - Sparklines fed from a rolling rate tracker over Prometheus counters - Single self-contained HTML template (no extra deps)
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.
Summary
/admin(opt-in viaS3PROXY_ADMIN_UI=true), matching the requested light, card-based design: summary cards with sparklines, live recent-activity feed, buckets/keys tables, and a status footer.admin_username/admin_passwordaren't set./admin/api/status, which is hydrated every 5s.request_handler.pyso the activity feed reflects real traffic. Sparklines and rate totals are computed from Prometheus counters via a sliding-window rate tracker.New settings
S3PROXY_ADMIN_UIfalseS3PROXY_ADMIN_PATH/adminS3PROXY_ADMIN_USERNAMES3PROXY_ADMIN_PASSWORDTest plan
pytest tests/unit— 310 passed (includes 9 newtest_admin.pycases)ruff checkclean on new files (template file exempted from E501 for unavoidable inline HTML)TestClientrenders/admin/with 200 + seeded request log renders the activity feed, buckets, keys, and footer as expected/admin/returns 401 +WWW-Authenticate: Basic realm="S3Proxy Admin"without creds