臺南市資訊資產管理系統架構

臺南市資訊資產管理系統架構 An architecture diagram generated by Archify. 桌面版 SPA · React 19 · nginx(主機埠 8080) · Architecture component 桌面版 SPA React 19 · nginx(主機埠 8080) 行動版 PWA · 獨立精簡介面 · Architecture component 行動版 PWA 獨立精簡介面 市府 OIDC · 開發/展示:mock-oidc · Architecture component 市府 OIDC 開發/展示:mock-oidc identity · PKCE 登入 · JWT · RBAC · apps/api · NestJS 12 :3000 · JIT Admin identity PKCE 登入 · JWT · RBAC JIT Admin 外部排程器 · 觸發 VPN 到期檢查 · Architecture component · 尚未設定 外部排程器 觸發 VPN 到期檢查 尚未設定 asset-core · 資產 · 生命週期 · 關聯 · apps/api · NestJS 12 :3000 asset-core 資產 · 生命週期 · 關聯 dcim-rack · 機房 · 機櫃 U 位 · apps/api · NestJS 12 :3000 dcim-rack 機房 · 機櫃 U 位 ipam · 網段 · IP 衝突 · apps/api · NestJS 12 :3000 ipam 網段 · IP 衝突 vm-cluster · 叢集 · 容量水位 · apps/api · NestJS 12 :3000 vm-cluster 叢集 · 容量水位 compliance · VPN 展延 · 二級電路 · apps/api · NestJS 12 :3000 compliance VPN 展延 · 二級電路 dashboard-api · KPI · 告警聚合 · apps/api · NestJS 12 :3000 dashboard-api KPI · 告警聚合 PostgreSQL 17 · TypeORM migrations · pgcrypto / btree_gist / pg_trgm / uuid-ossp · Architecture component PostgreSQL 17 TypeORM migrations · pgcrypto / btree_gist / pg_trgm / uuid-ossp REST · Bearer JWT REST · Bearer JWT OIDC PKCE JwtAuthGuard 注入 AssetsService 注入 AssetsService POST check-expiry SQL 唯讀 apps/api · NestJS 12 :3000

前端與身分

  • • 桌面版與行動版各自獨立建置,API 位址於執行期注入
  • • 登入走市府 OIDC Authorization Code + PKCE,本機與展示以 mock-oidc 頂替
  • • API 簽發自身 JWT,所有業務路由經 JwtAuthGuard / RolesGuard

模組依賴

  • • dcim-rack、vm-cluster 注入 AssetsService,並以 rackId / clusterId 參照資產;ipam 以 IP 落在 CIDR 內計算對應
  • • dashboard-api 直接注入各模組 Repository 唯讀彙總,不呼叫其他 service
  • • compliance 到期檢查是冪等 HTTP 端點,設計由外部排程器觸發(排程尚未設定)

已知缺口

  • • JIT 建立的 Admin 預設 superadmin,正式對接前須處理
  • • 外部來源同步(vCenter / Proxmox / ARP)列為 Phase 8,尚未實作