Skip to content

[BUG] request_signer inconsistent body serialization #311

@szechyjs

Description

@szechyjs

What is the bug?

The body that is being used by the request signer is not the same as the one being sent on the wire. This results in a invalid signature 403 error.

How can one reproduce the bug?

Use the latest beta versions of the gems.

What is the expected behavior?

The body used in the signature generation should be the same as the one actually sent to server.

Do you have any additional context?

This was originally fixed in opensearch-project/opensearch-ruby-aws-sigv4#24 However, the new rewrite of this functionality has caused a regression. The request_signer is calling body.to_json on the body, however the transports are using __convert_to_json(body).

Original issue #141

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions