Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Convert policy authZ from being based on a user to a user on a visit

未关闭
#1,616 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
冷清
技术栈
python

调研方向

未指定任何策略文件或测试。首先定位 OPA 策略定义和现有的授权测试,然后将当前基于用户的规则与 instrument_session 成员资格进行比较;当管理员规则保持不变且每个用户操作都遵循所述的基于会话的条件时,即视为完成。

由索引模型根据 Issue 内容生成。

描述

These are the current policies

Admin

  1. Can create any task with a valid istrument_session
  2. Can see all tasks
  3. Can delete any tasks
  4. Can start any task
  5. Can abort any task

Users:

  1. Can create any task with a instrument_session they are on
  2. Can see tasks created by them
  3. Can delete tasks created by them
  4. Can start task created by them
  5. 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:

  1. Can create any task with a instrument_session they are on
  2. Can see tasks with a instrument_session they are on
  3. Can delete tasks with a instrument_session they are on
  4. Can start task with a instrument_session they are on
  5. 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

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

DiamondLightSource/blueapi 的其他 Issue

查看 DiamondLightSource/blueapi 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。