Skip to content

Filter out sensitive headers from logs #10

Description

@damo

In OkHttpClient.newCall, a HttpLoggingInterceptor is configured to filter out sensitive headers (Authorization and X-Api-Key) when logging. Should any other headers be filtered for Bedrock or Vertex? Should the list of headers to filter be pushed into each Backend implementation.

Vertex only add one header, which will already be filtered by the current scheme:

  • Authorization

Bedrock signatures add four headers (capitalized as shown):

  • Authorization
  • Host
  • x-amz-content-sha256
  • X-Amz-Date

Do any of these (other than the obvious Authorization) need to be filtered out?

Metadata

Metadata

Assignees

Labels

questionFurther information is requestedtaskSomething that needs to be done

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions