I am trying to get Grafana stood up in a ECS Fargate stack. The stack is comprise of the following:
- An Application Load Balancer with an ACM cert applied listening on port 443
- The ALB's target group is forwarding traffic port 3000 on my Grafana container. SSL is terminated at the ALB so the traffic coming into the container is non-SSL.
- I have an A record created in Route53 that points to the ALB.
- The container is using ephemeral storage that Fargate provides to the container.
What's wrong?
- When I try to access Grafana from my A-record I get to the home page fine.
- But when I'm prompted to enter the user name and password it fails with an unauthorized exception. On my very first attempt, when asked to change the password. I get a "password was changed successfully" followed by an "unauthorized" message at the same time.
However, if try to go directly to the the container's private IP address everything works fine.
Is this a CORS issue or is there a setting I need to pass into the container to tell is to accept traffic from the ALB as the origin (e.g. whitelisting).
Thanks!