Vault-Web/cloud-page

[Feature]: Add user cloud summary endpoint for Vault Web dashboard

開放

#90 建立於 2026年7月5日

 (4 則留言) (0 個反應) (1 位負責人)Java (21 個分叉)auto 404
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:

  • usedStorageBytes
  • quotaBytes
  • fileCount
  • folderCount
  • recentItems with 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.

貢獻者指南