Skip to content

Allow sanitization of headers when logging requests/respones #1460

@NikolayMetchev

Description

@NikolayMetchev

Describe the feature

It would be good to add a feature similar to KtorClient:
https://ktor.io/docs/client-logging.html#7641443b_69
Which would allow sanitization of headers such as Authorization and X-Amz-Security-Token. This will apply when setting the LogMode to anything other than default.
In fact it would be good if the SDK did that by default

Is your feature request related to a problem?

Logging sensitive tokens is a security risk

Proposed Solution

No response

Describe alternative solutions or features you've considered

No response

Acknowledge

  • I may be able to implement this feature request

AWS SDK for Kotlin version

1.3.68

Platform (JVM/JS/Native)

jvm

Operating system and version

linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestA feature should be added or improved.p3This is a minor priority issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions