summaryrefslogtreecommitdiff
path: root/src/mongo/db/auth/access_checks.idl
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2021-03-21 22:46:19 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-03-22 03:34:46 +0000
commit68dbfa5edbb55fec190e508607cf2276367f4f93 (patch)
treee1999ab678707adde4dd7f436dd07c8292cc4970 /src/mongo/db/auth/access_checks.idl
parent393fe9da6a544af2aaea88eda037cfa3eea0da6d (diff)
downloadmongo-68dbfa5edbb55fec190e508607cf2276367f4f93.tar.gz
SERVER-54524 Extend Authorization Session to record all access checks and privilege checks.
Diffstat (limited to 'src/mongo/db/auth/access_checks.idl')
-rw-r--r--src/mongo/db/auth/access_checks.idl25
1 files changed, 22 insertions, 3 deletions
diff --git a/src/mongo/db/auth/access_checks.idl b/src/mongo/db/auth/access_checks.idl
index cc5b6955cc2..99ded87fd03 100644
--- a/src/mongo/db/auth/access_checks.idl
+++ b/src/mongo/db/auth/access_checks.idl
@@ -33,6 +33,25 @@ enums:
description: "List of supported access checks in AuthorizationSession"
type: string
values:
- kIsAuthenticated : "is_authenticated"
- kIsCoAuthorized : "is_coauthorized"
- kIsAuthorizedToParseNamespaceElement : "is_authorized_to_parse_namespace_element"
+ kCheckAuthorizedToListCollections : "check_authorized_to_list_collections"
+ kCheckCursorSessionPrivilege : "check_cursor_session_privilege"
+ kClearImpersonatedUserData : "clear_impersonated_user_data"
+ kGetAuthenticatedRoleNames : "get_authenticated_role_names"
+ kGetAuthenticatedUserNames : "get_authenticated_user_names"
+ kGetImpersonatedRoleNames : "get_impersonated_role_names"
+ kGetImpersonatedUserNames : "get_impersonated_user_names"
+ kGetSingleUser : "get_single_user"
+ kIsAuthenticated : "is_authenticated"
+ kIsAuthenticatedAsUserWithRole : "is_authenticated_as_user_with_role"
+ kIsAuthorizedForAnyActionOnAnyResourceInDB : "is_authorized_for_any_action_on_any_resource_in_db"
+ kIsAuthorizedForAnyActionOnResource : "is_authorized_for_any_action_on_resource"
+ kIsAuthorizedToChangeAsUser : "is_authorized_to_change_as_user"
+ kIsAuthorizedToCreateRole : "is_authorized_to_create_role"
+ kIsAuthorizedToParseNamespaceElement : "is_authorized_to_parse_namespace_element"
+ kIsCoAuthorized : "is_coauthorized"
+ kIsCoauthorizedWith : "is_coauthorized_with"
+ kIsCoauthorizedWithClient : "is_coauthorized_with_client"
+ kIsImpersonating : "is_impersonating"
+ kLookupUser : "lookup_user"
+ kShouldIgnoreAuthChecks : "should_ignore_auth_checks"
+ kIsUsingLocalhostBypass : "is_using_localhost_bypass" # Called in common code in commands.cpp dispatch \ No newline at end of file