当前位置:网站首页>GBase 8a数据库用户密码安全相关参数汇总
GBase 8a数据库用户密码安全相关参数汇总
2022-06-27 19:33:00 【生命之源;】
GBase 8a数据库用户密码安全相关参数汇总
密码相关参数
测试版本 9.5.2.44。
提醒:这些参数,在所有节点的gcluster和gnode配置文件必须全部修改,否则更严格的限制参数将导致部分节点密码设置失败,出现【无法自动恢复】的event。
这些参数只允许通过配置文件修改,不允许set设置。
gbase> show variables like 'password%';
+--------------------------------------+-------+
| Variable_name | Value |
+--------------------------------------+-------+
| password_format_option | 0 |
| password_life_time | 0 |
| password_max_contain_continuous_char | 0 |
| password_min_length | 0 |
| password_not_same_reverse_username | OFF |
| password_reuse_max | 0 |
| password_reuse_time | 0 |
+--------------------------------------+-------+
7 rows in set (Elapsed: 00:00:00.00)
密码策略参数
password_format_option
密码内容格式参数。包括大写字母、小写字母、数字以及特殊字符4种中的几种。该参数在9.5.2.44以前的版本含义有变动,请参考后面文章介绍。
建议参数值:3。
password_max_contain_continuous_char
包含连续字段字符的最大长度,默认值0为不限制。允许范围0-65535。
字典在password_format_option里有说明,。如果一个字典类型内的字符连续长度超过参数,则为不符合要求的密码。 新版集群数据库用户(root和gbase)默认密码符合参数值为4的要求。
建议参数值:4
password_not_same_reverse_username
密码是否可以包含和用户名相同或逆序。默认为0表示禁止该参数;1表示不允许包含用户名或逆序。
建议参数值:1
password_min_length
密码最短长度,默认值0表示禁用参数。允许范围0-65535。
建议参数值:不小于8
密码重用控制
password_reuse_max
密码允许重用的间隔次数。0表示不控制。正数N 表示允许口令重用间隔,大约等于参数的可以设置成功。
比如2,则PassA、PassB、PassC、PassA, 因为PassA间隔达到了2个,可以设置成功。
password_reuse_time
限定使用指定天数内的历史密码。默认值0为不控制。N表示允许的口令间隔大于N天才允许设置。
元数据表gbase.password_history
记录了密码历史。
字段 类型 含义
Host char(60) 主机名
User char(128) 用户名。 与主机名一起组合成登录账号
Password char(65) 密码,密文
Password_time datetime 密码更新时间
密码有效期控制
password_life_time
密码过期时间天数。 默认0为禁用该参数。正数值N表示密码过期天数,在密码N天后登录必须修改,否则登录后,除了修改密码外的其它任何功能全部禁用。
数据库初始安装默认密码
密码符合推荐的安全要求
password_max_contain_continuous_char=4
password_format_option=3
password_not_same_reverse_username=1
password_min_length=8
请联系产品提供人员获取新的默认密码。
新用户首次登录命令行客户端提示修改密码
新建用户,第一次登录时给出提示修改密码的提示信息。可以由数据库dba在创建用户时,自行登录一次来避免。
密码策略变更
如变更后的新策略比老策略更严格,将用户登录后提示修改密码。
尝试密码登录惩罚
同一个账号连续登录错误次数超过限制后,将锁定该账号一段时间再次登录,提示账号锁定信息。
锁定时间随着登录失败次数越来越长。
锁定期结束自动解锁。连续登录失败次数超过最高次数限制,锁定账号时间将会延长。
连续登录失败次数超过最大允许次数后,将永久锁定账号,必须由管理员手工解锁。
有关参数如下,这些参数必须同时设置(非0)锁定功能才能生效。
+---------------------+-------+
| Variable_name | Value |
+---------------------+-------+
| login_attempt_times | 0 |
| login_locked_factor | 0 |
| login_locked_time | 0 |
+---------------------+-------+
login_attempt_times
用户登录失败超过该次数,将锁定一段时间。
参数范围:0-65535
默认值:0 不限制
建议值:3 ,连续3次登录失败,锁定账号一段时间
login_locked_time
锁定的时间,单位为分钟
参数范围:0-180
默认值:0 不限制
建议值:30, 嗯。。。 其实有点大了,根据项目安全要求设定吧,普通项目1-3分钟可以了。
login_locked_factor
锁定时间惩罚因子。 锁定后,如果再次登录失败,锁定时间会乘以这个参数和失败次数
参数范围:0-10
默认值:0 锁定时间无效
建议值:2, 即每次锁定时间(锁定时间失败次数惩罚因子)。比如每次锁定1分钟,第1次锁定112=分,第2次为122=4分,第3次为132=6分,第10次为1102=20分。
最大密码登录次数永久锁定
login_attempt_max
连续登录达到该次数后,将永久锁定该账号,无法由系统自动解锁,必须管理员手工解锁。
总结
GBase 8a将对数据库用户密码提供更全面的防护,包括密码构成、密码重用,密码过期,登录惩罚和禁用等功能。建议用户根据系统安全要求等级,在安全和易用性之间做出平衡。
边栏推荐
- 根据自定义excel标题模板快速excel导出
- Release of global Unicorn list in 2021: the full list of 301 Unicorn enterprises in China is coming!
- 100 important knowledge points for SQL: in operator
- 专题教程——选队长游戏
- AI 绘画极简教程
- Goldfish rhca memoirs: do447 managing projects and carrying out operations -- creating job templates and starting jobs
- Use the storcli tool to configure raid. Just collect this article
- squid代理服务器
- Set code exercise
- Codeforces Global Round 14
猜你喜欢

Oracle的CTAS能不能将约束等属性带到新表?

本周二晚19:00战码先锋第8期直播丨如何多方位参与OpenHarmony开源贡献

JVM memory structure when creating objects

关于异常处理的知识整理

Use the storcli tool to configure raid. Just collect this article

Go从入门到实战——依赖管理(笔记)

100 important knowledge points that SQL must master: filtering data

SQL必需掌握的100个重要知识点:过滤数据

Modify large online games through CE modifier

Data platform scheduling upgrade and transformation | operation practice from Azkaban smooth transition to Apache dolphin scheduler
随机推荐
今晚战码先锋润和赛道第2期直播丨如何参与OpenHarmony代码贡献
ABC-Teleporter Setting-(思维+最短路)
After being forced to develop the app within 20 days, the group was laid off, and the technical director angrily criticized it: I wish "closure as soon as possible!"
mysql使用笔记一
PCIE知识点-008:PCIE switch的结构
MySQL performance optimization index function, hidden, prefix, hash index usage (2)
SQL必需掌握的100个重要知识点:使用函数处理数据
VMware vSphere esxi 7.0 installation tutorial
CORBA 架构体系指南(通用对象请求代理体系架构)
Go从入门到实战——CSP并发机制(笔记)
Codeforces Round #716 (Div. 2)
Scrum和看板的区别
Go from introduction to practice - polymorphism (note)
Bit.Store:熊市漫漫,稳定Staking产品或成主旋律
Serveur mandataire SQUID
Null pointer exception
Go from introduction to actual combat - all tasks completed (notes)
Educational Codeforces Round 108 (Rated for Div. 2)
农产品期货怎么做怎么开户,期货开户手续费多少,找谁能优惠手续费?
MYSQL 性能优化 index 函数,隐藏,前缀,hash 索引 使用方法(2)