As a preface, I feel like I might be misunderstanding what GCP is indicating with its "App Engine authorization" being scoped to any app in the project, because despite entering in a proper postgres connection URL (postgresql://username:secret@SQL_PUBLIC_IP_ADDRESS:5432/DB_NAME), my GKE nodes are unable to connect.
I'm initiating the connection as such in my API;
knex({
client: 'pg',
connection: process.env.POSTGRES_URL.slice(0, -process.env.DATABASE_NAME.length),
pool: { min: 0, max: 100 }
});
I've read quite a few medium posts and articles out there about connecting a Cloud SQL instance to a GKE cluster, but they all mention creating a VPC and connecting via Private IP on the Cloud SQL instance which seems to have been required prior to GCP defaulting authorization to any app in the project (??). This last point is where I feel like I might be mistaken, but most of these articles/questions seem to be from 1 year+ ago so it leads me to believe this might've been required previously, but not anymore.
Regardless, if I'm misunderstood on this presumption please let me know, otherwise, if you have any idea why I'm encountering this error any help would be greatly appreciated.