TimechoDB v0.13.4.1/v1.0.1.1 发布 | 新增审计日志功能、客户端白名单控制查询

TimechoDB v0.13.4.1/v1.0.1.1 版本已发布!

此版本分别适配 Apache IoTDB 的 v0.13.4 和 v1.0.1 版本,对 TimechoDB 的审计日志功能、客户端白名单控制、查询/修改白名单及查看 license 接口进行了更新。

欢迎查看结尾联系方式,联系天谋科技,了解更详细的版本信息!

新亮点一

新增 TimechoDB 审计日志、文档索引功能。审计日志是数据库的记录凭证,通过审计日志功能可以查询到用户在数据库中的所有操作(增、删、改、查),以保证信息安全,并可按链接来源(是否人为操作、是否为系统级别的写入操作等)决定是否记录审计日志。

TimechoDB 中的 PlanExecutor 包含所有操作记录,根据 PlanExecutor 中执行日志的类型,将其划分为 DDL、DML、QUERY 三个类别,并在调用 AuditLogUtils 工具类时传入具体的类别,进行配置匹配后记录审计日志。相关配置项如下:

####################
### Audit log Configuration
####################

# whether to enable the audit log.
# Datatype: Boolean
# enable_audit_log=false

# Output location of audit logs
# Datatype: String
# IOTDB: the stored time series is: root.__system.audit._{user}
# LOGGER: log_audit.log in the log directory
# audit_log_storage=IOTDB,LOGGER

# whether enable audit log for DML operation of data
# whether enable audit log for DDL operation of schema
# whether enable audit log for QUERY operation of data and schema
# Datatype: String
# audit_log_operation=DML,DDL,QUERY

# whether the local write api records audit logs
# Datatype: Boolean
# This contains Session insert api: insertRecord(s),insertTablet(s),insertRecordsOfOneDevice
# MQTT insert api
# RestAPI insert api
# This parameter will cover the DML in audit_log_operation
# enable_audit_log_for_native_insert_api=true

新亮点二

新增 TimechoDB 客户端白名单控制,可设置允许哪些客户端地址能够连接TimechoDB。

决定是否开启白名单功能,可运行如下命令:

# 是否开启白名单功能
enable_white_list=true

决定哪些 IP 地址能够连接 TimechoDB,可运行如下命令:

# 支持注释
# 支持精确匹配,每行一个ip
10.2.3.4

# 支持*通配符,每行一个ip
10.*.1.3
10.100.0.*

新亮点三

TimechoDB 客户端新增以下接口,可支持查询/修改白名单,及 TimechoDB license 信息查询。TimechoDB 客户端包含开源版 Apache IoTDB 客户端的所有接口,并在此基础上增加新的功能接口。

WhiteListInfoResp getWhiteIpSet() throws IoTDBConnectionException, StatementExecutionException;

void updateWhiteList(Set<String> ipSet)
    throws IoTDBConnectionException, StatementExecutionException;

LicenseInfoResp getLicenseInfo() throws StatementExecutionException, IoTDBConnectionException;

更多内容推荐

了解如何使用 IoTDB 企业版