warp-tech / warpgate

Smart SSH, HTTPS and MySQL bastion that requires no additional client-side software
Apache License 2.0
3.92k stars 122 forks source link

Feature Request: Multiple SSL certificate support for HTTP endpoints #1104

Open Thunderbottom opened 3 weeks ago

Thunderbottom commented 3 weeks ago

Currently, SSL for HTTP endpoints on warpgate only works in these two cases with externally mapped domains:

  1. The externally mapped domain (eg. git.domain.com) is on the same domain as warpgate (eg. warpgate.domain.com) and warpgate uses a wildcard certificate. Or in case where warpgate runs on a domain wg.domain.com and the services are git.wg.domain.com with a wildcard for *.wg.domain.com.
  2. Warpgate is running behind a load balancer, which handles SSL termination with multiple certificates.

We have a use case where we'd like to have multiple such SSL certificates handled by warpgate itself, instead of the load balancer for simpler deployments. This would allow us to run services on multiple domains (.net, .com, .io, etc) and put them behind warpgate. This is particularly useful in cases where there's multiple organizational domains, each for a particular group of users.

Let me know what you think of this.