Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replacing cert doesn't work #173

Closed
greenboxal opened this issue Jun 8, 2018 · 1 comment
Closed

Replacing cert doesn't work #173

greenboxal opened this issue Jun 8, 2018 · 1 comment

Comments

@greenboxal
Copy link
Contributor

I'm having a very weird issue when adding a new ingress.

I have an ALB which had two certificates on it:

  • *.domain1.com
  • api.domain2.com

After I created a new ingress on domain3.com, I happened to have a certificate in ACM that could handle *.domain1.com, *.domain2.com and *.domain3.com. Here comes the weird part:

The new ingress for something.domain3.com doesn't have a valid wildcard certificate associated with the ALB, making it return a certificate error. It seems that new certificate wasn't applied to the listeners on the ALB:

screen shot 2018-06-08 at 11 51 09 am

But in the tags in the cloudformation stack, I have the following:

screen shot 2018-06-08 at 11 48 28 am

Even weirder, the CF stack itself points to only two of theses:

        "HTTPSListenerCertificate": {
            "Type": "AWS::ElasticLoadBalancingV2::ListenerCertificate",
            "Properties": {
                "Certificates": [
                    {
                        "CertificateArn": "arn:aws:acm:us-west-2:088757392028:certificate/252e51e6-65ac-4a72-b619-bcfabbb7678f"
                    },
                    {
                        "CertificateArn": "arn:aws:acm:us-west-2:088757392028:certificate/c67cb815-a741-42ac-9785-d4bbc60dbc76"
                    }
                ],
                "ListenerArn": {
                    "Ref": "HTTPSListener"
                }
            }
        },

The issue itself is that arn:aws:acm:us-west-2:088757392028:certificate/c67cb815-a741-42ac-9785-d4bbc60dbc76 (the big wildcard certificate) wasn't applied to the ALB.

Has anyone seems something like this? It seems like the ingress controller did the right thing (except for not updating the tags maybe), and CF didn't update the ALB. Any lights here?

@greenboxal
Copy link
Contributor Author

Just correlated this with #162, seems like that was the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant