Skip to content

Undefined routes leaking random certs. #411

@vicary

Description

@vicary

Current behavior

When visiting the proxy with an undefined domain, in my case the domain is directed with a wildcard A record, while having at least one valid upstream container with LETSENCRYPT_HOST defined, the current nginx conf generated will serve the first cert available in the conf file.

This is essentially leaking one of the upstream domains in an unpredictable way.

Expected behavior

It should fallback to http and shows 503, the same behavior as if nginx-proxy working without letsencrypt-nginx-proxy-companion.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions