function description
Allow which client addresses can connect to IoTDB
configuration file
conf/iotdb-system.properties
conf/white.list
configuration item
iotdb-system.properties:
Decide whether to enable white list
# Whether to enable white list enable_white_list=true
white.list:
Decide which IP addresses can connect to IoTDB
# Support for annotation # Supports precise matching, one IP per line 10.2.3.4 # Support for * wildcards, one ip per line 10.*.1.3 10.100.0.*
note
Audit log is the record credentials of a database, which can be queried by the audit log function to ensure information security by various operations such as user add, delete, change and check in the database. With the audit log function of IoTDB, the following scenarios can be achieved:
The audit log function traces all user operations in the database. The information recorded should include data operations (add, delete, query) and metadata operations (add, modify, delete, query), client login information (user name, ip address).
Client Sources:
No audit logs are required for data written by the hardware collector via Session/JDBC/MQTT if it is a non-human action.
It is available through through configurations:
In iotdb-system.properties, change the following configurations:
#################### ### 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