Convert policy authZ from being based on a user to a user on a visit
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 45/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- python
- 领域
- authorization, backend
调研方向
未指定任何策略文件或测试。首先定位 OPA 策略定义和现有的授权测试,然后将当前基于用户的规则与 instrument_session 成员资格进行比较;当管理员规则保持不变且每个用户操作都遵循所述的基于会话的条件时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
These are the current policies
Admin
- Can create any task with a valid istrument_session
- Can see all tasks
- Can delete any tasks
- Can start any task
- Can abort any task
Users:
- Can create any task with a instrument_session they are on
- Can see tasks created by them
- Can delete tasks created by them
- Can start task created by them
- Can abort task created by them
the policy change that @DominicOram and @EmsArnold suggested is
the policy for admin remains the same but for the users it will change as follows.
Users:
- Can create any task with a instrument_session they are on
- Can see tasks with a instrument_session they are on
- Can delete tasks with a instrument_session they are on
- Can start task with a instrument_session they are on
- Can abort task with a instrument_session they are on
Acceptance Criteria
- OPA policies are tweaked according to the request
- 主要语言
- Python
- 星标
- 13
- 派生
- 14
- 平均合并
- 3 天 10 小时
- 30 天内合并 PR
- 13
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
DiamondLightSource/blueapi 的其他 Issue
-
kwargs: {} gets added to plan **kwargs可能已有人在做 @oliwenmandiamond 于 2 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 78/100
DiamondLightSource/blueapi#1719 ·
维护者通常 1 天内回复
-
deployment
难度 2/5 1-3 小时 新手友好度 72/100
DiamondLightSource/blueapi#1626 ·
维护者通常 1 天内回复
-
deployment dev-environment
难度 2/5 1-3 小时 新手友好度 75/100
DiamondLightSource/blueapi#1623 · 2 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
DiamondLightSource/blueapi#1605 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 64/100
DiamondLightSource/blueapi#1494 ·
维护者通常 1 天内回复
查看 DiamondLightSource/blueapi 的全部 Issue
相似的 Issue
-
The changelog workflow excludes otelbot but not dependabot, so every Dependabot pull request fails the changelog check可能已有人在做 @ocelotl 今天认领。 未关闭
难度 1/5 1 小时以内 新手友好度 82/100
open-telemetry/opentelemetry-python#5825 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
cuga-project/cuga-agent#1020 ·
维护者通常 2 天内回复
-
难度 1/5 1 小时以内 新手友好度 70/100
microsoft/playwright#43640 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
stac-utils/stac-fastapi-elasticsearch-opensearch#965 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复