Skip to content

How do we handle getting/trusting the remote IP address? #187

@rsyring

Description

@rsyring

We use Flask's Request.remote_addr which is from Werkzeug:

https://github.com/pallets/werkzeug/blob/504a8c4fbda9b8b2fd09e817544ffd228f23458e/src/werkzeug/wrappers/request.py#L127

That pulls it from the environment which is set by what? Should we be doing more in the library and/or docs for IP forwarding?

I didn't realize getting the "real" ip address of the client was so involved and potentially risky:

See also: https://flask-security.readthedocs.io/en/stable/quickstart.html#proxy-configuration

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions