Skip to content

Rermission denied for table pg_authid (SQLSTATE 42501) on AWS RDS #70

Description

@wesselOC

Summary

Reconciling a Role against an AWS RDS PostgreSQL instance fails with:

SQL Error [42501]: ERROR: permission denied for table pg_authid

Cause

The operator reads role state directly from the pg_authid catalog. On AWS RDS,
SELECT on pg_authid is revoked from every role — including the master
user and rds_superuser. The very first read (roleExists) therefore fails
before any role can be created or updated, so the operator is unusable on RDS.

The same restriction applies to any non-superuser role on vanilla PostgreSQL,
since pg_authid is superuser-only by default.

Impact

  • Role resources never reconcile on RDS; they error out immediately.
  • Affects all role operations (existence, login/flags/membership checks, and
    password verification).

Expected behaviour

The operator should reconcile Role resources on RDS (and as any non-superuser)
without requiring SELECT on pg_authid.

Environment

  • PostgreSQL: AWS RDS
  • Operator: v0.6.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions