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

[venus*] 用户数据隔离 #5384

Closed
11 tasks
hunjixin opened this issue Oct 17, 2022 · 8 comments
Closed
11 tasks

[venus*] 用户数据隔离 #5384

hunjixin opened this issue Oct 17, 2022 · 8 comments
Assignees
Labels
C-enhancement Category: feature enhancement C-need-testing Category: Venus testing related C-ux-change Category: ux change that need attentions (CLI, config, database, folder structure) P2 Medium - we should get to this soon

Comments

@hunjixin
Copy link
Contributor

hunjixin commented Oct 17, 2022

链服务模块 / Chain Service Components

  • venus
  • venus-auth
  • venus-gateway
  • venus-messager
  • venus-miner
  • 文档 / docs

订单服务模块 / Deal Service Components

  • venus-market
  • 文档 / docs

算力服务模块 / Storage Power Service Components

  • venus-sector-manager
  • venus-worker
  • 文档 / docs

描述 / Description

未来希望用户可以查看自己的信息,或者对自己的信息进行处理。

  1. 通过 token 鉴别用户身份,只允许用户访问自己相关的数据
  2. admin 权限是最高权限, 可以访问所有的接口或者说数据, 该权限只应 链服务管理员持有, 其他用户 最高可以拥有 sign 权限
  3. 详细的接口权限变动以及注意事项 参见 各组件对应PR(下面的回复中) ,主要包括 messager, market, miner, auth
@hunjixin hunjixin added C-enhancement Category: feature enhancement P2 Medium - we should get to this soon labels Oct 17, 2022
@diwufeiwen
Copy link
Contributor

diwufeiwen commented Oct 20, 2022

用户的入口:
首先,用户需要一个UI来执行查询,目前貌似可供选择的只有venus-sector-manager,比如订单管理(查询,重新标识状态等),消息管理(查询,替换等),这些本就是与venus-cluster强关联的数据,在vsm上操作是合理的。除此之外,是不是有部分数据与venus-cluster没有关系的,比如想查看一天出块权等(venus-miner上的API),这种用户的操作入口是什么,新开发的venus-tools?

@diwufeiwen
Copy link
Contributor

数据分类:
要展示什么数据,提供哪些操作,在哪里操作等

@diwufeiwen
Copy link
Contributor

实现方式:
RPC接口的token感觉没啥问题,根据token可以找到对应的minerID,signer等,有这些足够查询出关联的数据了

@diwufeiwen diwufeiwen assigned diwufeiwen and unassigned diwufeiwen Oct 20, 2022
@Fatman13 Fatman13 added this to the 链服务 v1.9.0 milestone Oct 21, 2022
@hunjixin
Copy link
Contributor Author

现在在auth中保存了地址信息, 如果venus-tool中用户需要管理地址, 那么这里可能是需要连接到auth中。

@hunjixin hunjixin mentioned this issue Nov 21, 2022
39 tasks
@LinZexiao LinZexiao self-assigned this Nov 28, 2022
@LinZexiao
Copy link
Collaborator

LinZexiao commented Feb 6, 2023

@LinZexiao LinZexiao added C-need-testing Category: Venus testing related C-ux-change Category: ux change that need attentions (CLI, config, database, folder structure) labels Feb 22, 2023
@LinZexiao
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: feature enhancement C-need-testing Category: Venus testing related C-ux-change Category: ux change that need attentions (CLI, config, database, folder structure) P2 Medium - we should get to this soon
Projects
Archived in project
Development

No branches or pull requests

4 participants