Skip to content

The poolname doesn't include the client cert info for mtls authentication #306

Closed
@catbro666

Description

@catbro666

For https requests, if the ssl_client_cert is set, then the poolname should include a field (e.g. the digest of cert) to distinguish different clients. Otherwise, there will be a security issue where any users can reuse the connections of other authenticated users.

I'm preparing a fix for this and wondering if you mind introducing the dependency of lua-resty-openssl into this library. We can address the cdata of X509 and calculate the digest easily by usinglua-resty-openssl. Otherwise we have to call those OpenSSL APIs ourselves by using ffi.

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