登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
AI 队友
登录
注册
轻量养虾,开箱即用!低 Token + 稳定算力,Gitee & 模力方舟联合出品的 PocketClaw 正式开售!点击了解详情~
代码拉取完成,页面将自动刷新
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
25
Star
26
Fork
400
openGauss
/
openGauss-OM
代码
Issues
53
Pull Requests
16
Wiki
统计
流水线
服务
JavaDoc
PHPDoc
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
开发画像分析
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
【测试类型:工具功能】【测试版本:7.0.0-RC1】gs_checkse工具检测指定数据库。B5修复成功后应不打印报错信息
已验收
#IB0JHN
缺陷
lihongji
创建于
2024-10-29 15:19
【标题描述】: gs_checkse工具检测指定数据库。B5修复成功后应不打印报错信息 【测试类型:工具功能】【测试版本:7.0.0-RC1】 问题描述:gs_checkse工具检测指定数据库。B5修复成功后应不打印报错信息 【操作系统和硬件信息】(查询命令: cat /etc/system-release, uname -a): openEuler release 22.03 LTS Linux openeuler-22 5.10.0-60.139.0.166.oe2203.x86_64 #1 SMP Thu May 30 05:17:57 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux 【测试环境】(单机/1主x备x级联备): 单机 【被测功能】: gs_checkse 【测试类型】: 功能测试 【数据库版本】(查询命令: gaussdb -V): gaussdb (openGauss 7.0.0-RC1 build 665cb8b1) compiled at 2024-10-14 00:45:37 commit 0 last mr 【预置条件】: om安装数据库成功 【操作步骤】(请填写详细的操作步骤): 1. 增加参数可以指定对应的库检测 ``` gsql -d testdb -p 61526 -c "GRANT ALL PRIVILEGES ON pg_authid TO PUBLIC;" GRANT [lhj@openeuler-22 server]$ [lhj@openeuler-22 server]$ gs_checkse -i A5 --detail Checking items A5. [ Permission management ] : Normal Checking Permission management succeeded. Total numbers:1. Abnormal numbers:0. Warning numbers:0. [lhj@openeuler-22 server]$ gsql -d postgres -p 61526 -c "GRANT ALL PRIVILEGES ON pg_authid TO PUBLIC;" GRANT [lhj@openeuler-22 server]$ gs_checkse -i A5 --detail Checking items A5. [ Permission management ] : Warning [openeuler-22] Warning reason: Prohibit the PUBLIC role from having permissions on the pg_authid system table.Since all users inherit the permissions of the PUBLIC role, to prevent sensitiv e information from being leaked or altered, the PUBLIC role is not allowed to have any permissions on the pg_authid system table. Warning reason:Disallow granting all privileges on objects to the PUBLIC role.The PUBLIC role belongs to any user, and if all permissions of an object are granted to the PUBL IC role, then any user will inherit all permissions of this object, which violates the principle of least privilege. To ensure the security of database data, this role should have as few permissions as possible, and it is prohibited to grant all permissions of an object to the PUBLIC role. Total numbers:1. Abnormal numbers:0. Warning numbers:1. ``` 2. B5修复后打印了报错信息 ``` openGauss=# CREATE user lily WITH CREATEROLE PASSWORD "qwer*963."; CREATE ROLE openGauss=# SELECT rolname FROM pg_roles WHERE rolcreaterole = true AND rolsuper = false; rolname --------- lily (1 row) [lhj@openeuler-22 server]$ gs_checkse -i A5 --detail Checking items A5. [ Permission management ] : Warning [openeuler-22] Warning reason:Ensure revocation of unnecessary administrative privileges from regular users.As a regular user, they should not possess administrative permissions beyond thei r normal scope. To ensure that the permissions of regular users are minimized while meeting normal business needs, unnecessary administrative permissions for regular users should be revoked. [lhj@openeuler-22 server]$ gs_checkse -i B5 --detail [openeuler-22]: [GAUSS-51632] : Failed to do python3 '/data/lhj/6.0.0master/tool/script/local/LocalCheckSE.py' -t Set_Permission_management -l '/data/lhj/6.0.0master/log/lhj/lhj/om/gs_local.log' . E rror: 'list' object has no attribute 'errormsg' [lhj@openeuler-22 server]$ gsql -d postgres -p 61526 -r gsql ((openGauss 7.0.0-RC1 build 665cb8b1) compiled at 2024-10-14 00:45:37 commit 0 last mr ) Non-SSL connection (SSL connection is recommended when requiring high-security) Type "help" for help. openGauss=# SELECT rolname FROM pg_roles WHERE rolcreaterole = true AND rolsuper = false; rolname --------- (0 rows) ``` 【预期输出】: 1. 增加参数可以指定对应的库检测 2. 用户具有创建角色的权限,进行修复gs_checkse -i B5 --detail不报错 【实际输出】: 1. 不能指定库检测 2. 用户具有创建角色的权限,进行修复gs_checkse -i B5 --detail报错  【原因分析】: 1. 这个问题的根因 2. 问题推断过程 3. 还有哪些原因可能造成类似现象 4. 该问题是否有临时规避措施 5. 问题解决方案 6. 预计修复问题时间 【日志信息】(请附上日志文件、截图、coredump信息): 【测试代码】:
【标题描述】: gs_checkse工具检测指定数据库。B5修复成功后应不打印报错信息 【测试类型:工具功能】【测试版本:7.0.0-RC1】 问题描述:gs_checkse工具检测指定数据库。B5修复成功后应不打印报错信息 【操作系统和硬件信息】(查询命令: cat /etc/system-release, uname -a): openEuler release 22.03 LTS Linux openeuler-22 5.10.0-60.139.0.166.oe2203.x86_64 #1 SMP Thu May 30 05:17:57 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux 【测试环境】(单机/1主x备x级联备): 单机 【被测功能】: gs_checkse 【测试类型】: 功能测试 【数据库版本】(查询命令: gaussdb -V): gaussdb (openGauss 7.0.0-RC1 build 665cb8b1) compiled at 2024-10-14 00:45:37 commit 0 last mr 【预置条件】: om安装数据库成功 【操作步骤】(请填写详细的操作步骤): 1. 增加参数可以指定对应的库检测 ``` gsql -d testdb -p 61526 -c "GRANT ALL PRIVILEGES ON pg_authid TO PUBLIC;" GRANT [lhj@openeuler-22 server]$ [lhj@openeuler-22 server]$ gs_checkse -i A5 --detail Checking items A5. [ Permission management ] : Normal Checking Permission management succeeded. Total numbers:1. Abnormal numbers:0. Warning numbers:0. [lhj@openeuler-22 server]$ gsql -d postgres -p 61526 -c "GRANT ALL PRIVILEGES ON pg_authid TO PUBLIC;" GRANT [lhj@openeuler-22 server]$ gs_checkse -i A5 --detail Checking items A5. [ Permission management ] : Warning [openeuler-22] Warning reason: Prohibit the PUBLIC role from having permissions on the pg_authid system table.Since all users inherit the permissions of the PUBLIC role, to prevent sensitiv e information from being leaked or altered, the PUBLIC role is not allowed to have any permissions on the pg_authid system table. Warning reason:Disallow granting all privileges on objects to the PUBLIC role.The PUBLIC role belongs to any user, and if all permissions of an object are granted to the PUBL IC role, then any user will inherit all permissions of this object, which violates the principle of least privilege. To ensure the security of database data, this role should have as few permissions as possible, and it is prohibited to grant all permissions of an object to the PUBLIC role. Total numbers:1. Abnormal numbers:0. Warning numbers:1. ``` 2. B5修复后打印了报错信息 ``` openGauss=# CREATE user lily WITH CREATEROLE PASSWORD "qwer*963."; CREATE ROLE openGauss=# SELECT rolname FROM pg_roles WHERE rolcreaterole = true AND rolsuper = false; rolname --------- lily (1 row) [lhj@openeuler-22 server]$ gs_checkse -i A5 --detail Checking items A5. [ Permission management ] : Warning [openeuler-22] Warning reason:Ensure revocation of unnecessary administrative privileges from regular users.As a regular user, they should not possess administrative permissions beyond thei r normal scope. To ensure that the permissions of regular users are minimized while meeting normal business needs, unnecessary administrative permissions for regular users should be revoked. [lhj@openeuler-22 server]$ gs_checkse -i B5 --detail [openeuler-22]: [GAUSS-51632] : Failed to do python3 '/data/lhj/6.0.0master/tool/script/local/LocalCheckSE.py' -t Set_Permission_management -l '/data/lhj/6.0.0master/log/lhj/lhj/om/gs_local.log' . E rror: 'list' object has no attribute 'errormsg' [lhj@openeuler-22 server]$ gsql -d postgres -p 61526 -r gsql ((openGauss 7.0.0-RC1 build 665cb8b1) compiled at 2024-10-14 00:45:37 commit 0 last mr ) Non-SSL connection (SSL connection is recommended when requiring high-security) Type "help" for help. openGauss=# SELECT rolname FROM pg_roles WHERE rolcreaterole = true AND rolsuper = false; rolname --------- (0 rows) ``` 【预期输出】: 1. 增加参数可以指定对应的库检测 2. 用户具有创建角色的权限,进行修复gs_checkse -i B5 --detail不报错 【实际输出】: 1. 不能指定库检测 2. 用户具有创建角色的权限,进行修复gs_checkse -i B5 --detail报错  【原因分析】: 1. 这个问题的根因 2. 问题推断过程 3. 还有哪些原因可能造成类似现象 4. 该问题是否有临时规避措施 5. 问题解决方案 6. 预计修复问题时间 【日志信息】(请附上日志文件、截图、coredump信息): 【测试代码】:
评论 (
3
)
登录
后才可以发表评论
状态
已验收
待办的
已确认
已答复
已取消
挂起
修复中
已完成
待回归
测试中
已验收
负责人
未设置
zzh
zhangzhihui42
负责人
协作者
+负责人
+协作者
申正
shenzheng4
负责人
协作者
+负责人
+协作者
标签
sig/om
未设置
项目
未立项任务
未立项任务
里程碑
未关联里程碑
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (
-
)
标签 (
-
)
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
预计工期
(小时)
参与者(3)
1
https://gitee.com/opengauss/openGauss-OM.git
git@gitee.com:opengauss/openGauss-OM.git
opengauss
openGauss-OM
openGauss-OM
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册