Colin-b / httpx_auth

Authentication classes to be used with httpx

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question: Why define headers to sign

FlorianLudwig opened this issue · comments

From reading the code of botocore it seems that they sign all headers except those in a blacklist:

SIGNED_HEADERS_BLACKLIST = [
    'expect',
    'user-agent',
    'x-amzn-trace-id',
]

httpx_auth on the other hand works with a include list approach.

Why?

Hi @FlorianLudwig,

Could you tell me what the issue is with this behavior?

ie: you need to exclude some header because of a specific issue?

Hi @Colin-b ,

I don't have an issue or specific use case. I was just comparing what boto does with what your code does. And wondered why they behave differently.

Hi @FlorianLudwig , latest version now behaves as documented by AWS. You can specify "*" in the headers to include if you want all of them.