Vault-Web/cloud-page
[Feature]: Add user cloud summary endpoint for Vault Web dashboard
开放
#90 创建于 2026年7月5日
enhancementhelp wanted
仓库指标
- 星标
- (7 个星标)
- PR 合并指标
- (PR 指标待抓取)
描述
Problem
Vault Web should be able to show Cloud Page information on the user dashboard, but the frontend should not inspect filesystem details directly or depend on unsafe cross-service assumptions.
Example: a user opens the Vault Web dashboard and wants to see used storage, quota, recent cloud activity, and a quick link into their cloud area.
Proposed solution
Add a secure, dashboard-ready Cloud Page endpoint for the authenticated user, for example GET /api/dashboard/summary.
Suggested response fields:
usedStorageBytesquotaBytesfileCountfolderCountrecentItemswith name, path, type, size, and timestamp
A streaming endpoint can be considered later, but a small summary endpoint is enough for the first version.
Acceptance criteria
- Endpoint only returns data for the authenticated user.
- Paths are normalized and do not expose host/root filesystem paths.
- Response is small enough for dashboard usage.
- Tests cover authenticated access and user isolation.
- API docs or README mention the endpoint.