[Bug] 同一资产两个授权,一个排除root,一个授权所有账号,资产连接时还能勾选root,连接时提示root无权限连接

Open
#18,239 0 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@w940853815 is already working on this.

Since Dec 1, 2026.

Assessment

This issue has not been assessed yet.

Description

🐛 Bug 🔔 Pending processing
Product Version

v4.10.20

Product Edition
  • Community Edition
  • Enterprise Edition
  • Enterprise Trial Edition
Installation Method
  • Online Installation (One-click command installation)
  • Offline Package Installation
  • All-in-One
  • 1Panel
  • Kubernetes
  • Source Code
Environment Information

v4.10.20 企业版
基于https://github.com/jumpserver/jumpserver/issues/17644、https://github.com/jumpserver/lina/pull/5975修复了排除账号的bug。

8cd7c6ee6e00983d0eabcd08f5e92e2b

出现了新的bug。

🐛 Bug Description

一个资产有root账号和几个普通账号,建了两条授权规则,一条授权所有普通账号,排除root,一条授权所有账号,然后连接资产的时候可以选择到所有账号,包括root,用root连接报错了,提示无权限。

image
Recurrence Steps

1.在v4.10.20的基础上,先修复排除账号的bug。
2.创建一个资产,添加root和两个普通账号。
3.创建两条授权,一条授权所有普通账号,排除root,一条授权所有账号。
4.web端连接该资产,可以选到root账号。连接后报错。

Expected Behavior

No response

Additional Information

No response

Attempted Solutions

No response

Dominant language
Python
Stars
32.1k
Forks
5.8k
Avg merge
17h 14m
Merged PRs (30d)
217

Getting set up

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.

More from jumpserver/jumpserver

All issues in jumpserver/jumpserver

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.