zalando-stups / senza

Deploy immutable application stacks and create and execute AWS CloudFormation templates in a sane way

Home Page:https://pypi.python.org/pypi/stups-senza

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Select the first valid SSL certificate when there are multiple matches

lmineiro opened this issue · comments

commented

When senza looks up SSL certificates for the LB listeners is picks the first one that matches the domain name.

This can return a certificate that is not valid.

The list of eligible certificates should only include valid certificates and, ideally, sort them like we did for https://github.com/zalando-incubator/kube-ingress-aws-controller/blob/master/certs/matching.go#L21