Skip to content

Warp-TLS API change on "OnInsecure" #1033

@liamzee

Description

@liamzee

I just closed my pull request on Warp-TLS: #1032

There is very limited functionality responding to OnInsecure requests; while standard procedure seems to be to run Warp behind a reverse proxy, with the reverse proxy handling TLS connections, some more security-minded people might wish to have Warp-TLS running behind the proxy and some convenience-oriented people might wish to have Warp-TLS standing on its own.

I do think another option in OnInsecure that can provide a broader response than simply returning a hard-coded response header with a custom message might be good, but what would be a good interface for that? Would a Request -> Response interface from WAI be better? How about Request -> IO Response if there's a desire to call to the filesystem, load up a file in IORef / MVar / TVar, or to log an action?

If the maintainers feel this is a good idea, what kind of interface would they suggest?

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