diff options
author | Jonathan Reams <jbreams@mongodb.com> | 2018-08-16 16:02:16 -0400 |
---|---|---|
committer | Jonathan Reams <jbreams@mongodb.com> | 2018-09-14 11:12:45 -0400 |
commit | 2ea069aa505c750cad6a7ba6ae6d4ac897f396d1 (patch) | |
tree | b8093da62175046189de9fbb876b5ef8b79181b1 /src/mongo/rpc/metadata/impersonated_user_metadata.idl | |
parent | 7087350d1d5c943520e9972ac1f8b85252c0eceb (diff) | |
download | mongo-2ea069aa505c750cad6a7ba6ae6d4ac897f396d1.tar.gz |
SERVER-5261 Include authentication information in currentOp output
Diffstat (limited to 'src/mongo/rpc/metadata/impersonated_user_metadata.idl')
-rw-r--r-- | src/mongo/rpc/metadata/impersonated_user_metadata.idl | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/mongo/rpc/metadata/impersonated_user_metadata.idl b/src/mongo/rpc/metadata/impersonated_user_metadata.idl new file mode 100644 index 00000000000..c2b15e325fc --- /dev/null +++ b/src/mongo/rpc/metadata/impersonated_user_metadata.idl @@ -0,0 +1,35 @@ +# Copyright (C) 2018 MongoDB Inc. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License, version 3, +# as published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# + +global: + cpp_namespace: "mongo::rpc" + +imports: + - "mongo/idl/basic_types.idl" + - "mongo/db/auth/auth_types.idl" + +structs: + # This is the IDL version of the old enterprise-only Audit metadata struct + ImpersonatedUserMetadata: + description: "A struct representing the impersonated users from a mongos" + strict: true + fields: + "$impersonatedUsers": + type: array<UserName> + cpp_name: "users" + "$impersonatedRoles": + type: array<RoleName> + cpp_name: "roles" + |