Skip to content

Conversation

@SamyRai
Copy link
Collaborator

@SamyRai SamyRai commented Jan 28, 2026

Summary

This PR implements a production-ready internal inspection surface for just-storage.

Key Features

  • HTMX Dashboard: A live-refreshing health dashboard located at /internal/health.
  • Administrative Actions: Support for manual cache clearing and GC triggering via the UI.
  • Isolated Admin Port: Support for the ADMIN_PORT environment variable to run the dashboard on a separate network interface/port.
  • Storage Stats: Real-time calculation of hot/cold storage disk usage.
  • Migration Status: Automated checks to ensure the database schema is up to date.
  • Production Security: Strict security headers (CSP, Cache-Control) and Bearer Token authentication.
  • Audit Integration: Full integration with the audit logging system for all administrative actions.

Test plan

  1. Run the application with INTERNAL_ADMIN_TOKEN=test-token.
  2. Access :8080/internal/health with Authorization: Bearer test-token.
  3. Verify that storage sizes and object counts are reported correctly.
  4. Trigger a "Reindex" and verify the success toast and audit log entry.

@SamyRai SamyRai force-pushed the feature/internal-ops-dashboard branch 16 times, most recently from 97e067a to 622df9f Compare January 28, 2026 01:28
- Implement HTMX-powered internal health dashboard
- Support for separate admin listener on ADMIN_PORT
- Add storage usage stats and migration status checks
- Implement manual GC trigger action via dashboard
- Integrate security headers and bearer auth for internal routes
- Re-enable and fix audit middleware for security logging
- Fix CI workflows by setting correct working directory for Cargo
@SamyRai SamyRai force-pushed the feature/internal-ops-dashboard branch from 622df9f to 840c282 Compare January 28, 2026 01:29
@SamyRai SamyRai merged commit 3a787d5 into main Jan 28, 2026
4 of 17 checks passed
@SamyRai SamyRai deleted the feature/internal-ops-dashboard branch January 28, 2026 01:30
SamyRai added a commit that referenced this pull request Jan 28, 2026
## Summary
This PR implements a production-ready internal inspection surface for
`just-storage`.

### Key Features
- **HTMX Dashboard**: A live-refreshing health dashboard located at
`/internal/health`.
- **Administrative Actions**: Support for manual cache clearing and GC
triggering via the UI.
- **Isolated Admin Port**: Support for the `ADMIN_PORT` environment
variable to run the dashboard on a separate network interface/port.
- **Storage Stats**: Real-time calculation of hot/cold storage disk
usage.
- **Migration Status**: Automated checks to ensure the database schema
is up to date.
- **Production Security**: Strict security headers (CSP, Cache-Control)
and Bearer Token authentication.
- **Audit Integration**: Full integration with the audit logging system
for all administrative actions.

## Test plan
1. Run the application with `INTERNAL_ADMIN_TOKEN=test-token`.
2. Access `:8080/internal/health` with `Authorization: Bearer
test-token`.
3. Verify that storage sizes and object counts are reported correctly.
4. Trigger a "Reindex" and verify the success toast and audit log entry.
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.

2 participants