This is an automated email from the ASF dual-hosted git repository.
justinchen pushed a change to branch fix-audit-logger
in repository https://gitbox.apache.org/repos/asf/iotdb.git
from 0a183b94c44 fix
add 781a3c98dce Feature/login lock manager (#16494)
add d583362ab98 Optimized the value type check for update device (#16448)
add b86ea430b69 Create Multi Time Series: Modify logger level & Pipe:
Adjusted the show pipe privilege (#16439)
add 7235ec91305 Adjust encrypt config file. (#16528)
add c2696b33ae4 Add audit logic for login and logout event (#16520)
add 6d610816259 Revert "Adjust encrypt config file. (#16528)" (#16534)
add 32c80280eba Patch for rename user and audit log (#16535)
add e4081b90a2c [AINode] Fix: reduce package size (#16511)
add 451024279b8 [AINode] Fix compile bug (#16536)
add 530335536fb Merge branch 'master' of https://github.com/apache/iotdb
into fix-audit-logger
No new revisions were added by this update.
Summary of changes:
.../iotdb/it/env/cluster/env/AbstractEnv.java | 2 +-
.../itbase/runtime/ClusterTestConnection.java | 10 +-
.../iotdb/itbase/runtime/ClusterTestStatement.java | 4 +-
.../iotdb/itbase/runtime/NodeConnection.java | 12 +-
.../iotdb/auth/it/IoTDBLoginLockManagerIT.java | 179 +++++++
.../commit/IoTDBRegionReconstructForIoTV1IT.java | 2 +-
.../iotdb/db/it/audit/IoTDBAuditLogBasicIT.java | 361 +++++++++++++-
.../apache/iotdb/db/it/auth/IoTDBUserRenameIT.java | 31 +-
.../scalar/IoTDBBitwiseFunctionTableIT.java | 36 +-
.../relational/it/schema/IoTDBDatabaseIT.java | 4 +-
.../iotdb/relational/it/schema/IoTDBDeviceIT.java | 4 +-
.../iotdb/session/it/IoTDBSessionCompressedIT.java | 10 +-
iotdb-core/ainode/pyproject.toml | 56 ++-
.../org/apache/iotdb/db/qp/sql/IdentifierParser.g4 | 4 +-
.../org/apache/iotdb/db/qp/sql/IoTDBSqlParser.g4 | 24 +-
.../antlr4/org/apache/iotdb/db/qp/sql/SqlLexer.g4 | 9 +
.../response/pipe/task/PipeTableResp.java | 3 +-
.../receiver/protocol/IoTDBConfigNodeReceiver.java | 2 +-
.../persistence/auth/AuthorPlanExecutor.java | 5 +-
.../pipe/consensuspipe/ConsensusPipeManager.java | 3 +-
.../org/apache/iotdb/db/audit/DNAuditLogger.java | 2 +
.../org/apache/iotdb/db/auth/AuthorityChecker.java | 3 +-
.../iotdb/db/auth/ClusterAuthorityFetcher.java | 47 +-
.../org/apache/iotdb/db/auth/LoginLockManager.java | 387 +++++++++++++++
.../java/org/apache/iotdb/db/conf/IoTDBConfig.java | 36 ++
.../iotdb/db/protocol/session/SessionManager.java | 65 ++-
.../protocol/thrift/impl/ClientRPCServiceImpl.java | 17 +
.../execution/executor/RegionWriteExecutor.java | 14 +-
.../config/executor/ClusterConfigTaskExecutor.java | 2 +-
.../db/queryengine/plan/parser/ASTVisitor.java | 48 +-
.../relational/analyzer/StatementAnalyzer.java | 31 +-
.../metadata/fetcher/SchemaPredicateUtil.java | 28 +-
.../plan/relational/planner/TranslationMap.java | 2 +-
.../relational/security/AccessControlImpl.java | 19 +-
.../relational/security/ITableAuthCheckerImpl.java | 2 +-
.../security/TreeAccessCheckVisitor.java | 16 +-
.../sql/ast/AbstractQueryDeviceWithCache.java | 3 +-
.../relational/sql/ast/AbstractTraverseDevice.java | 2 +-
.../plan/relational/sql/ast/DeleteDevice.java | 5 +-
.../sql/ast/RelationalAuthorStatement.java | 13 +
.../plan/relational/sql/parser/AstBuilder.java | 50 +-
.../plan/relational/type/AuthorRType.java | 1 +
.../db/queryengine/plan/statement/AuthorType.java | 5 +
.../queryengine/plan/statement/StatementType.java | 1 +
.../plan/statement/sys/AuthorStatement.java | 13 +
.../apache/iotdb/db/auth/LoginLockManagerTest.java | 538 +++++++++++++++++++++
.../auth/authorizer/LocalFileAuthorizerTest.java | 4 +-
.../plan/parser/StatementGeneratorTest.java | 5 +
.../apache/iotdb/commons/audit/AuditEventType.java | 1 +
.../apache/iotdb/commons/audit/AuditLogFields.java | 19 +
.../commons/auth/authorizer/BasicAuthorizer.java | 5 +-
.../auth/authorizer/LocalFileAuthorizer.java | 2 +-
.../iotdb/commons/auth/user/BasicUserManager.java | 25 +-
.../apache/iotdb/commons/conf/CommonConfig.java | 2 +-
.../apache/iotdb/commons/conf/IoTDBConstant.java | 2 +
.../db/relational/grammar/sql/RelationalSql.g4 | 45 +-
.../src/main/thrift/datanode.thrift | 1 +
57 files changed, 2021 insertions(+), 201 deletions(-)
create mode 100644
integration-test/src/test/java/org/apache/iotdb/auth/it/IoTDBLoginLockManagerIT.java
create mode 100644
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/auth/LoginLockManager.java
create mode 100644
iotdb-core/datanode/src/test/java/org/apache/iotdb/db/auth/LoginLockManagerTest.java