Whats my Cloud Code Modules Static IP?

I have a Cloud Code module that uses an external DB.
I need to get the IP of the Cloud Code Module to add to the DBs IP white list.

I didn’t see anything in the documentation about the Cloud Code Modules IP.
I’ve managed to get it by creating a method on the module that calls ipify.org API to get its IP.

But I have no guarantee that this is a static ip.

Does anyone from the devs of the API / here have any peace of information about this?

We can’t guarantee the IP range won’t change, if you want to authenticate external requests then we do provide a JWS endpoint for validating the cloud code service tokens https://cloud-code.services.api.unity.com/.well-known/jwks.json so external requests can be authenticated using the service token as the bearer token that you can validate on your side.

2 Likes