Skip to content
Back to skills

Cloud Sql Psc Ports

ASecurity

Cloud SQL PSC port mapping — MySQL vs PostgreSQL, direct connection vs Auth Proxy. Captures that Auth Proxy for PostgreSQL uses port 3307, not 5432.

  • 2 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 7, 2026
databasesgosqldebuggingdatabase

Security analysis

A100/100

Scanned November 7, 2026

npx -y skills add aibangjuxin/knowledge --skill cloud-sql-psc-ports --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cloud Sql Psc Ports?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cloud Sql Psc Ports
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aibangjuxin-cloud-sql-psc-ports/badge)](https://www.skillsdirectory.com/skills/aibangjuxin-cloud-sql-psc-ports)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cloud-sql-psc-ports
description: Cloud SQL PSC port mapping — MySQL vs PostgreSQL, direct connection vs Auth Proxy. Captures that Auth Proxy for PostgreSQL uses port 3307, not 5432.
---

# Cloud SQL PSC Port Reference

## Overview

Domain knowledge about Cloud SQL Private Service Connect (PSC) port mapping for MySQL and PostgreSQL. Captures the non-obvious insight that Cloud SQL Auth Proxy uses different ports than the database default.

## MySQL PSC Ports

| Port | Purpose |
|------|---------|
| 3306 | Direct connection / Managed Connection Pooling |
| 3307 | Cloud SQL Auth Proxy |

## PostgreSQL PSC Ports

| Port | Purpose |
|------|---------|
| 5432 | Direct connection |
| 6432 | PgBouncer (Managed Connection Pooling) |
| 3307 | Cloud SQL Auth Proxy (NOT 5432) |

## Key Insight

**Auth Proxy for PostgreSQL uses port 3307 for outbound connections**, not PostgreSQL's default 5432.

Traffic path:
```
Pod → Auth Proxy (local:5432) → PSC Endpoint (:3307) → Cloud SQL (:5432)
```

If NetworkPolicy only allows 5432, Auth Proxy outbound connections will be blocked even though the local proxy listens on 5432.

## Sources

- https://cloud.google.com/sql/docs/postgres/about-private-service-connect
- https://cloud.google.com/sql/docs/mysql/about-private-service-connect

## Trigger

Use when:
- Designing PSC-based Cloud SQL connectivity from GKE
- Debugging NetworkPolicy issues with Cloud SQL connections
- Investigating why only opening the database port (e.g., 5432) doesn't work with Auth Proxy

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in databases →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.