Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app-console: 云存储支持 service account 管理 #76

Closed
maslow opened this issue May 6, 2022 · 1 comment
Closed

app-console: 云存储支持 service account 管理 #76

maslow opened this issue May 6, 2022 · 1 comment
Labels
feature New feature or request

Comments

@maslow
Copy link
Member

maslow commented May 6, 2022

laf 提供完整的 minio 能力,可将 laf oss bucket 用于其它 minio/s3 兼容的场景,
所以需要提供 app oss 的 Service Account 能力;

  • 一个应用仅支持生成一个 SA
  • SA 只在生成时显示一次,不可重复查看
  • 重新生成 SA 即为重置,会删除之前存在的 SA

只需要提供一个「获取SA」 按钮和接口即可,即重置。

同时增加显示 endpoint;

@maslow maslow added the feature New feature or request label May 6, 2022
@dingzhenznen
Copy link
Contributor

dingzhenznen commented May 7, 2022

service account

介绍

生成,重置sa。

sa设计思路

1.文档对象设计

  • 应用service account对象(service_account)
    字段 类型 说明
    _id string 主键
    status string 状态
    appid string 应用ID
    access_key string 目标应用ID
    secret_key string 目标应用ID
    created_at Date 创建时间
    updated_at Date 更新时间
  • status取值说明
      1.使用中
      0.删除
    

2.接口设计

  • 更新sa(PUT /bucket/serviceAccount)
     1.请求参数
     {
     }
     2.响应
     {
      "code":0,
      "data":{"access_key":"","secret_key":""}
    }
    

maslow pushed a commit that referenced this issue May 8, 2022
Co-authored-by: 丁振振 <dingzhenzhen@dingzhenzhendeMacBook-Pro.local>
@maslow maslow closed this as completed May 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants