microsoft / microsoft/HydraLab
设备,设备组访问,使用权限重新设计
Open
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1k
- Forks
- 107
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 2
Description
现状
设置Private
设备
- 调用center接口修改设备属性,并保存至agent本地数据库,设备下次接入时,继承数据库中属性
- 调用center接口接口生成key,并立即发送给center,以便center校验
Group
- 调用center接口,修改Group属性,仅限Group Owner / team admin
- 调用center接口,生成Key,仅限Group Owner / team admin
校验
设备校验
- 可以在首页看到public的设备以及team内的private设备
- 通过设备SerialNum调用设备执行任务,校验team关联 ? 通过 : 校验key
- 将设备添加进Group,校验key
Group校验
- 通过Group运行测试任务,校验team关联 ? 通过 : 校验key
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source files, tests, or entry points are named. Start by locating the existing device and Group permission and key-validation paths described in the issue, then identify relevant tests and define expected behavior for public, private, team-linked, and key-authorized access.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- authorization, backend, security
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100