diff options
author | Sara Golemon <sara.golemon@mongodb.com> | 2021-02-28 23:33:34 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-04-23 14:03:27 +0000 |
commit | c1bfa707cdfbaeec7c6b05aaac787bfb354665ba (patch) | |
tree | cee71666ec52250d8cec471a23218aaa563d136d /src/mongo/db/auth | |
parent | bdf7ee008434d010d4fbb95390b22ff2d2271b37 (diff) | |
download | mongo-c1bfa707cdfbaeec7c6b05aaac787bfb354665ba.tar.gz |
SERVER-54972 Add ActionTypes, ErrorCodes, and OpObserver hook for Runtime Audit Config
Diffstat (limited to 'src/mongo/db/auth')
-rw-r--r-- | src/mongo/db/auth/action_type.idl | 1 | ||||
-rw-r--r-- | src/mongo/db/auth/builtin_roles.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/auth/action_type.idl b/src/mongo/db/auth/action_type.idl index 05876605f42..ab8effd2b09 100644 --- a/src/mongo/db/auth/action_type.idl +++ b/src/mongo/db/auth/action_type.idl @@ -45,6 +45,7 @@ enums: anyAction : "anyAction" # Special ActionType that represents *all* actions appendOplogNote : "appendOplogNote" applicationMessage : "applicationMessage" + auditConfigure : "auditConfigure" auditLogRotate : "auditLogRotate" # ID only authCheck : "authCheck" # ID only authenticate : "authenticate" # ID only diff --git a/src/mongo/db/auth/builtin_roles.cpp b/src/mongo/db/auth/builtin_roles.cpp index c7e52878c0b..3f53b990080 100644 --- a/src/mongo/db/auth/builtin_roles.cpp +++ b/src/mongo/db/auth/builtin_roles.cpp @@ -208,6 +208,7 @@ MONGO_INITIALIZER(AuthorizationBuiltinRoles)(InitializerContext* context) { // hostManager role actions that target the cluster resource hostManagerRoleClusterActions << ActionType::applicationMessage // clusterManager gets this also + << ActionType::auditConfigure << ActionType::connPoolSync << ActionType::dropConnections << ActionType::logRotate |