AirGate/API方案.md
seaislee1209 8b49d49048 feat: add edit sub-account profile + verify all password features
- Add edit profile (display name, phone, email) with Volcengine sync
- Add IAMService.update_user for Volcengine UpdateUser API
- Add edit-profile API endpoint and URL
- Add Edit Profile dialog in IAMUserList frontend
- Verify admin change password, sub-account change password, set login password all working

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-28 15:57:02 +08:00

33 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

方案一:火山 IAM 子账号(推荐)
思路:给队友创建火山子用户,让他直连火山 API。
给他的东西
用途 给什么
Assets API 子账号的 AK/SK
Seedance 调用 子账号的 Ark API Key + 专用接入点(只绑 Seedance 2.0
对账 控制台登录密码
项目标识 ProjectName: "int_dev_Airlabs"
权限范围
✅ Ark 模型调用、Assets 素材管理、费用中心(只读)
❌ IAM 管理、其他云服务、充值/支付
优缺点
✅ 零开发量,控制台几分钟搞定
✅ 他能自己对账
✅ 权限可控,随时可禁用/删除
✅ 互不影响,你的服务挂了不影响他
❌ 他能直接接触火山资源(但权限受限)
方案二:后端转发
思路你的后端包一层队友只调你的接口AK/SK 不出服务器。
给他的东西
用途 给什么
所有调用 后端地址 + 账号密码JWT 认证)
优缺点
✅ 队友什么密钥都不需要,最安全
✅ 你能完全掌控调用行为
❌ 要写新接口把火山 API 都包一遍
❌ 对账要你自己做用量统计页面
❌ 多一跳,依赖你的服务稳定性
❌ 火山 API 变更你得跟着维护
一句话结论
队友是自己人 → 方案一,省事;对外卖服务/不信任对方 → 方案二,可控。