@@ -82,8 +82,8 @@ void LogGrpcCallFinished(absl::string_view rpc_name,
8282 status.error_message ());
8383 if (LogIsDebugEnabled ()) {
8484 auto headers =
85- Datastore::GetWhitelistedHeadersAsString (call->GetResponseHeaders ());
86- LOG_DEBUG (" RPC %s returned headers (whitelisted ): %s" , rpc_name, headers);
85+ Datastore::GetAllowlistedHeadersAsString (call->GetResponseHeaders ());
86+ LOG_DEBUG (" RPC %s returned headers (allowlisted ): %s" , rpc_name, headers);
8787 }
8888}
8989
@@ -332,15 +332,15 @@ bool Datastore::IsPermanentWriteError(const Status& error) {
332332 return IsPermanentError (error) && !IsAbortedError (error);
333333}
334334
335- std::string Datastore::GetWhitelistedHeadersAsString (
335+ std::string Datastore::GetAllowlistedHeadersAsString (
336336 const GrpcCall::Metadata& headers) {
337- static std::unordered_set<std::string> whitelist = {
337+ static std::unordered_set<std::string> allowlist = {
338338 " date" , " x-google-backends" , " x-google-netmon-label" , " x-google-service" ,
339339 " x-google-gfe-request-trace" };
340340
341341 std::string result;
342342 for (const auto & kv : headers) {
343- if (whitelist .find (MakeString (kv.first )) != whitelist .end ()) {
343+ if (allowlist .find (MakeString (kv.first )) != allowlist .end ()) {
344344 absl::StrAppend (&result, MakeStringView (kv.first ), " : " ,
345345 MakeStringView (kv.second ), " \n " );
346346 }
0 commit comments