Skip to content

PostgresConnectorIAM fails for cross-project IAM authentication #1389

@dipk-mish7

Description

@dipk-mish7

Bug Description

PostgreSQL IAM authentication works correctly when connecting to a Cloud SQL instance within the same GCP project, but fails with AttributeError: 'NoneType' object has no attribute 'decode' when connecting from a different GCP project.

Example code (or command)

Stacktrace

Steps to reproduce?

  1. ?
  2. ?
  3. ?
    ...

Environment

  • Cloud SQL PostgreSQL instance in project A
  • Connection attempt from project B using IAM authentication
  • Connection type: PSC (Private Service Connect)
  • Using Google Cloud SQL Python Connector with pg8000

Additional Details

No response

Metadata

Metadata

Assignees

Labels

type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions