Enhanced permissions control for git settings

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

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
git

调研方向

Start by tracing the existing permission handling for the git-source-control web UI and the Server Source Control menu, then check how IRIS security roles are defined and applied. The issue does not name files or tests, so locate those entry points before estimating the work. Done means owner, maintainer, and developer roles enforce the described access consistently across both interfaces.

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

描述

User permissions for git-source-control functionality should be expanded to better fit with that of common remote repositories, such as Gitlab/Github.

Currently, any user with access to the git-source-countrol web UI at all has the complete ability to:

  • Change their mode from Basic to Expert
  • Access to the Git settings page

On the subject of the settings page, the read-only flag is system-wide, so while it would keep a maintainer or developer out, a project admin would have to manually change the flag, temporarily giving full access to modify settings to any maintainers or developers also using the system.

This is fine for development instances, but for a production IRIS environment, this isn't ideal.

It would be useful to separate out "owner" vs "maintainer" vs "developer" access, with restrictions applying consistently between the web UI pages and the Server Source Control menu.

Owner:

  • Expert mode functionality access
  • Read/write access to settings UI at all times without needing to change the UI read-only flag
  • Full functionality available in repo web UI

Maintainer:

  • Basic mode functionality only
  • Read-only access to settings UI (could possibly have write access to update mappings only but nothing else)
  • Git controls in Server Source Control menu and web UI limited to Basic Mode controls

Developer:

  • No access to settings UI
  • Read-only access to repo UI
  • Only have access to Status and View File History settings

The assignment of these roles should be made at the IRIS security level via new roles created specific from the git-source-control package. This way, developers can have more control over their local repos (access to push, pull, etc.) while having limited access on a production server, and giving maintainers the ability to sync changes from a remote repo without having full access to the entire settings page.

主要语言
ObjectScript
星标
22
派生
15
PR 合并指标
30 天内没有已合并 PR

环境准备

从这里开始

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

intersystems/git-source-control 的其他 Issue

查看 intersystems/git-source-control 的全部 Issue

相似的 Issue

更多 Security Issue

把新 issue 发到你的邮箱

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