当前位置:网站首页>金仓数据库KingbaseES安全指南--5.2. 数据完整性保护
金仓数据库KingbaseES安全指南--5.2. 数据完整性保护
2022-07-28 03:59:00 【沉舟侧畔千帆过_】
5.2. 数据完整性保护
5.2.1. 传输完整性保护
数据库通过SSL通信进行传输完整性保护,配置方法同SSL传输加密。
5.2.2. 用户数据完整性保护
通过在每个数据块头增加"数据水印",KingbaseES实现了数据存储过程中的完整性校验和保护。每次读磁盘时,自动进行数据水印校验。每次写磁盘时,自动更新数据水印。
数据校验支持CRC、SM3、SM3_HMAC算法,可以在初始化数据目录时指定使用的校验算法。此外,KingbaseES还支持国密算法校验。
initdb -a sm3 -D datadir
也可以使用 sys_checksums 工具来启用或切换使用的校验算法。
sys_checksums -d -D datadir sys_checksums -e -a sm3 -D datadir
使用 sys_controldata 工具可查看已指定的校验算法。
sys_controldata -D datadir
输出 Data page checksum version 信息标识当前使用的算法。可能取值为0、1、2、3。 0表示未开启完整性保护功能,非0表示已开启功能。1表示使用CRC校验,2表示使用SM3校验,3表示SM3_HMAC校验。
KingbaseES 提供配置参数zero_damaged_pages,若设置为true,在读取数据发现页面错误时,服务器将页面初始化为初始状态,继续处理。这个设置适用于对数据一致性要求不高,允许数据部分丢失的场合。
对于在透明加密需要做校验的情况下,写出数据时会先判断页面所属的表空间是否加密,如果表空间是加密的那么会先加密数据然后对加密完成后的数据计算校验值并写出,非加密表空间则直接计算校验值并写出。读入数据时也是先对读进来的页面判断所属表空间是否加密,如果表空间是加密的先计算校验值,校验通过后再解密数据,表空间非加密则跳过解密过程。
边栏推荐
- C language: realize the exchange of two numbers without creating temporary variables
- LightPicture – 精致图床系统
- [P4] solve the conflict between local file modification and library file
- 巧用栈回溯,帮你快速定位问题
- 【图像分类】2021-MLP-Mixer NIPS
- Detailed explanation of string + memory function (C language)
- 21天,胖哥亲自带你玩转OAuth2
- 高等数学(第七版)同济大学 习题3-6 个人解答
- xml文件使用及解析
- 2022.7.13-----leetcode.735
猜你喜欢

C language: find the number of 1 in binary stored in memory as an integer

Monotonic stack - 739. Daily temperature

Prefix-Tuning: Optimizing Continuous Prompts for Generation

Detailed explanation of pointer written test questions (C language)

Dynamic planning - 62. Different paths

Servlet usage

numeric_ Limits the range and related attributes of each data type learned

Advanced Mathematics (Seventh Edition) Tongji University exercises 3-6 personal solutions

ServletContext、request、response

21天,胖哥亲自带你玩转OAuth2
随机推荐
LightPicture – 精致图床系统
Move notice!
Redis cluster
过滤器、拦截器、监听器
Summary and interpretation of CONDA virtual environment
Do you regret doing automated testing?
《剑指offer》| 刷题小记
Dynamic programming - 416. Segmentation and subsets
STC timer is abnormal (how to modify the initial value, the timing time is 100ms)
un7.27:redis数据库常用命令。
Leetcode58. Length of the last word
[openvx] VX for basic use of objects_ pyramid
Is there a bonus period for robot engineering
高等数学(第七版)同济大学 习题3-4 个人解答(后8题)
[openvx] VX for basic use of objects_ image
Build an "industrial brain" and improve the park's operation, management and service capabilities with "digitalization"!
Leetcode skimming: dynamic programming 08 (segmentation and subsets)
21天,胖哥亲自带你玩转OAuth2
[MySQL database] index and transaction (often used in interview)
Convert py file to exe executable file