Skip to content

Commit 4508df8

Browse files
authored
update black white list (#951)
1 parent f4b2cfa commit 4508df8

File tree

24 files changed

+643
-295
lines changed

24 files changed

+643
-295
lines changed

src/.vuepress/sidebar/V2.0.x/en-Table.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export const enSidebar = {
108108
{ text: 'Data Sync', link: 'Data-Sync_apache' },
109109
{ text: 'UDF', link: 'User-defined-function' },
110110
{
111-
text: 'Security Permissions',
111+
text: 'Security Management',
112112
collapsible: true,
113113
children: [
114114
{ text: 'Authority Management', link: 'Authority-Management_apache' },

src/.vuepress/sidebar/V2.0.x/en-Tree.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export const enSidebar = {
127127
},
128128
{ text: 'UDF', link: 'User-defined-function_apache' },
129129
{
130-
text: 'Security Permissions',
130+
text: 'Security Management',
131131
collapsible: true,
132132
children: [{ text: 'Permission Management', link: 'Authority-Management_apache' }],
133133
},

src/.vuepress/sidebar/V2.0.x/zh-Table.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export const zhSidebar = {
108108
{ text: '数据同步', link: 'Data-Sync_apache' },
109109
{ text: 'UDF', link: 'User-defined-function' },
110110
{
111-
text: '安全权限',
111+
text: '安全管理',
112112
collapsible: true,
113113
children: [{ text: '权限管理', link: 'Authority-Management_apache' }],
114114
},

src/.vuepress/sidebar/V2.0.x/zh-Tree.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export const zhSidebar = {
118118
},
119119
{ text: 'UDF', link: 'User-defined-function_apache' },
120120
{
121-
text: '安全权限',
121+
text: '安全管理',
122122
collapsible: true,
123123
children: [{ text: '权限管理', link: 'Authority-Management_apache' }],
124124
},

src/.vuepress/sidebar_timecho/V2.0.x/en-Table.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,11 @@ export const enSidebar = {
125125
{ text: 'Data Sync', link: 'Data-Sync_timecho' },
126126
{ text: 'UDF', link: 'User-defined-function' },
127127
{
128-
text: 'Security Permissions',
128+
text: 'Security Management',
129129
collapsible: true,
130130
children: [
131131
{ text: 'Authority Management', link: 'Authority-Management_timecho' },
132+
{ text: 'Black White List', link: 'Black-White-List_timecho' },
132133
],
133134
},
134135
{ text: 'Tiered Storage', link: 'Tiered-Storage_timecho' },

src/.vuepress/sidebar_timecho/V2.0.x/en-Tree.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,11 @@ export const enSidebar = {
147147
{ text: 'UDF', link: 'User-defined-function_timecho' },
148148
{ text: 'View', link: 'IoTDB-View_timecho' },
149149
{
150-
text: 'Security Permissions',
150+
text: 'Security Management',
151151
collapsible: true,
152152
children: [
153153
{ text: 'Permission Management', link: 'Authority-Management_timecho' },
154-
{ text: 'White List', link: 'White-List_timecho' },
154+
{ text: 'Black White List', link: 'Black-White-List_timecho' },
155155
{ text: 'Security Audit', link: 'Audit-Log_timecho' },
156156
],
157157
},

src/.vuepress/sidebar_timecho/V2.0.x/zh-Table.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,12 @@ export const zhSidebar = {
116116
{ text: '数据同步', link: 'Data-Sync_timecho' },
117117
{ text: 'UDF', link: 'User-defined-function' },
118118
{
119-
text: '安全权限',
119+
text: '安全管理',
120120
collapsible: true,
121-
children: [{ text: '权限管理', link: 'Authority-Management_timecho' }],
121+
children: [
122+
{ text: '权限管理', link: 'Authority-Management_timecho' },
123+
{ text: '黑白名单', link: 'Black-White-List_timecho' },
124+
],
122125
},
123126
{ text: '多级存储', link: 'Tiered-Storage_timecho' },
124127
{ text: '树转表视图', link: 'Tree-to-Table' },

src/.vuepress/sidebar_timecho/V2.0.x/zh-Tree.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,11 @@ export const zhSidebar = {
129129
{ text: 'UDF', link: 'User-defined-function_timecho' },
130130
{ text: '视图', link: 'IoTDB-View_timecho' },
131131
{
132-
text: '安全权限',
132+
text: '安全管理',
133133
collapsible: true,
134134
children: [
135135
{ text: '权限管理', link: 'Authority-Management_timecho' },
136-
{ text: '白名单', link: 'White-List_timecho' },
136+
{ text: '黑白名单', link: 'Black-White-List_timecho' },
137137
{ text: '安全审计', link: 'Audit-Log_timecho' },
138138
],
139139
},
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
<!--
2+
3+
Licensed to the Apache Software Foundation (ASF) under one
4+
or more contributor license agreements. See the NOTICE file
5+
distributed with this work for additional information
6+
regarding copyright ownership. The ASF licenses this file
7+
to you under the Apache License, Version 2.0 (the
8+
"License"); you may not use this file except in compliance
9+
with the License. You may obtain a copy of the License at
10+
11+
http://www.apache.org/licenses/LICENSE-2.0
12+
13+
Unless required by applicable law or agreed to in writing,
14+
software distributed under the License is distributed on an
15+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
KIND, either express or implied. See the License for the
17+
specific language governing permissions and limitations
18+
under the License.
19+
20+
-->
21+
22+
# Black White List
23+
24+
## 1. Introduction
25+
26+
IoTDB is a time-series database designed for IoT scenarios, supporting efficient data storage, query, and analysis. With the widespread application of IoT technology, data security and access control have become critical. In open environments, ensuring secure data access for legitimate users presents a key challenge. The whitelist mechanism allows only trusted IPs or users to connect, reducing the attack surface at the source. The blacklist function can block malicious IPs in real time in edge-cloud collaborative scenarios, preventing unauthorized access, SQL injection, brute‑force attacks, DDoS, and other threats, thereby providing continuous and stable security for data transmission.
27+
28+
> Note: This feature is available starting from version 2.0.6.
29+
30+
## 2. Whitelist
31+
32+
### 2.1 Function Description
33+
34+
By enabling the whitelist function and configuring the whitelist, client addresses allowed to connect to IoTDB are specified. Only clients within the whitelist can access IoTDB, achieving security control.
35+
36+
### 2.2 Configuration Parameters
37+
38+
Administrators can enable/disable the whitelist function and add, modify, or delete whitelist IPs/IP segments in the following two ways:
39+
40+
* Edit the configuration file `iotdb‑system.properties`.
41+
* Use the `set configuration` statement.
42+
* Table model reference: [set configuration](../SQL-Manual/SQL-Maintenance-Statements.md#_2-2-update-configuration-items)
43+
44+
Related parameters are as follows:
45+
46+
| Name | Description | Default Value | Effective Mode | Example |
47+
| ----------------- | ----------------------------------------------------------------------------------------------------------------------------------- | --------------- | ---------------- | ------------------------------------------------------------------- |
48+
| `enable_white_list` | Whether to enable the whitelist function. true: enable; false: disable. The value is case‑insensitive. | false | Hot reload | `set enable_white_list = 'true'` |
49+
| `white_ip_list` | Add, modify, or delete whitelist IPs/IP segments. Supports exact match and the \* wildcard. Multiple IPs are separated by commas. | empty | Hot reload | `set white_ip_list='192.168.1.200,192.168.1.201,192.168.1.*'` |
50+
51+
## 3. Blacklist
52+
53+
### 3.1 Function Description
54+
55+
By enabling the blacklist function and configuring the blacklist, certain specific IP addresses are prevented from accessing the database, guarding against unauthorized access, SQL injection, brute‑force attacks, DDoS attacks, and other security threats, thereby ensuring the security and stability of data transmission.
56+
57+
### 3.2 Configuration Parameters
58+
59+
Administrators can enable/disable the blacklist function and add, modify, or delete blacklist IPs/IP segments in the following two ways:
60+
61+
* Edit the configuration file `iotdb‑system.properties`.
62+
* Use the `set configuration`statement.
63+
* Table model reference:[set configuration](../SQL-Manual/SQL-Maintenance-Statements.md#_2-2-update-configuration-items)
64+
65+
Related parameters are as follows:
66+
67+
| Name | Description | Default Value | Effective Mode | Example |
68+
|---------------------| ----------------------------------------------------------------------------------------------------------------------------------- | --------------- | ---------------- | ------------------------------------------------------------------- |
69+
| `enable_black_list` | Whether to enable the blacklist function. true: enable; false: disable. The value is case‑insensitive. | false | Hot reload | `set enable_black_list = 'true'` |
70+
| `black_ip_list` | Add, modify, or delete blacklist IPs/IP segments. Supports exact match and the \* wildcard. Multiple IPs are separated by commas. | empty | Hot reload | `set black_ip_list='192.168.1.200,192.168.1.201,192.168.1.*'` |
71+
72+
## 4. Notes
73+
74+
1. After the whitelist is enabled, if the list is empty, all connections are denied. If the local IP is not included, local login is denied.
75+
2. When the same IP appears in both the whitelist and blacklist, the blacklist takes precedence.
76+
3. The system validates the IP format. Invalid entries will cause an error when the user connects and be skipped, without affecting the loading of other valid IPs.
77+
4. Duplicate IPs in the configuration are supported; they are automatically deduplicated in memory without notification. For manual deduplication, edit the configuration accordingly.
78+
5. Blacklist/whitelist rules only apply to new connections. Existing connections before enabling the function are not affected; they will be intercepted only upon subsequent reconnection.

src/UserGuide/Master/Tree/QuickStart/QuickStart_timecho.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ This guide will assist you in quickly installing and deploying IoTDB. You can qu
7070

7171
- Stream Framework: [Stream Framework](../User-Manual/Streaming_timecho.md)
7272

73-
- Security Management: [Security Management](../User-Manual/White-List_timecho.md)
73+
- Security Management: [Security Management](../User-Manual/Black-White-List_timecho.md)
7474

7575
- Database Administration: [Database Administration](../User-Manual/Authority-Management_timecho.md)
7676

0 commit comments

Comments
 (0)