paganotoni
paganotoni

Reputation: 90

Getting 302 redirects on any service that i redeploy

We're suddenly getting recursive 302 redirects in our Cloud Run services. Any service that we deploy now will get the same issue.

We run a small app of like 8 services with Cloud Run and recently one of those started being inaccessible due to 302 redirects. Any service we have re-deployed in the last 40 minutes has the same issue.

Upvotes: 2

Views: 1926

Answers (1)

Steren
Steren

Reputation: 7909

As of August 28th, Cloud Run now only accepts HTTPS requests in every region. HTTP requests receive a 302 redirect.

The following Mandatory Service Announcement was sent and contains more information:

Hello Google Cloud Run Customer,

We are writing to let you know that in order to make Cloud Run secured by default, Cloud Run services will only be accessible via HTTPS.

What do I need to know? Any HTTP requests to Cloud Run services will receive a 302 "Moved Temporarily" status code that redirects to the HTTPS location. Web browsers follow this redirection.

Requests to Cloud Run services invoked via HTTP from clients which do not follow 302 redirects will start failing. To avoid any service disruption, please ensure your Cloud Run services are invoked using HTTPS (URLs that start with ‘https://’). This applies to both *.run.app endpoints and endpoints using custom domains.

What do I need to do? If your Cloud Run service is invoked via HTTP from clients that do not follow redirects, please ensure the clients making the requests use HTTPS by August 19, 2019.

Upvotes: 4

Related Questions