Skip to content

MACs mismatch when behind ssl proxy server #48

@rawbeans

Description

@rawbeans

A common server setup is to have a proxy (such as nginx) in front of the web server that accepts http requests over ssl and proxy passes them to a webserver as http requests.

However, with mohawk, the macs will not match because the port is used to calculate the mac. On the sender end, the port is interpreted as 443 because the request is over https. On the receiving end, behind the proxy, the port is 80 because the request is now over plain http.

My current workaround is to fork mohawk and force port 433 for all url schemes.

Is there a cleaner workaround this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions