microsoft / microsoft/HydraLab

设备,设备组访问,使用权限重新设计

Open
#317 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
1k
Forks
107
Avg merge
1d 10h
Merged PRs (30d)
2

Description

现状

设置Private

设备
  1. 调用center接口修改设备属性,并保存至agent本地数据库,设备下次接入时,继承数据库中属性
  2. 调用center接口接口生成key,并立即发送给center,以便center校验
Group
  1. 调用center接口,修改Group属性,仅限Group Owner / team admin
  2. 调用center接口,生成Key,仅限Group Owner / team admin

校验

设备校验
  1. 可以在首页看到public的设备以及team内的private设备
  2. 通过设备SerialNum调用设备执行任务,校验team关联 ? 通过 : 校验key
  3. 将设备添加进Group,校验key
Group校验
  1. 通过Group运行测试任务,校验team关联 ? 通过 : 校验key

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.