Skip to content

Support AWS RDS IAM Authentication for PostgreSQL data soruce#7695

Open
winebarrel wants to merge 1 commit into
getredash:masterfrom
winebarrel:support-rds-iam-auth-for-data-source
Open

Support AWS RDS IAM Authentication for PostgreSQL data soruce#7695
winebarrel wants to merge 1 commit into
getredash:masterfrom
winebarrel:support-rds-iam-auth-for-data-source

Conversation

@winebarrel
Copy link
Copy Markdown
Contributor

What type of PR is this?

  • Refactor
  • Feature
  • Bug Fix
  • New Query Runner (Data Source)
  • New Alert Destination
  • Other

Description

Enable IAM authentication for connecting to AWS RDS in PostgreSQL data source.
see https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html

Using IAM authentication allows you to connect to the database more securely than with password authentication.

How is this tested?

  • Unit tests (pytest, jest)
  • E2E Tests (Cypress)
  • Manually
  • N/A

I added the following settings and confirmed that I could connect to the RDS for testing.

  • .env
# NOTE: It is not a required environment variable.
AWS_ACCESS_KEY_ID=...
AWS_SECRET_ACCESS_KEY=...
スクリーンショット 2026-04-18 12 09 02
postgres=> select * from pg_stat_activity where usename = 'iam_user';
-[ RECORD 1 ]----+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
datid            | 5
datname          | postgres
pid              | 1415
leader_pid       |
usesysid         | 16455
usename          | iam_user
application_name |
client_addr      | xxx.xxx.xxx.xxx
client_hostname  |
client_port      | 62581
backend_start    | 2026-04-18 02:40:21.920859+00
xact_start       | 2026-04-18 02:40:22.062642+00
query_start      | 2026-04-18 02:40:22.062642+00
state_change     | 2026-04-18 02:40:22.062644+00
wait_event_type  | Timeout
wait_event       | PgSleep
state            | active
backend_xid      |
backend_xmin     | 21736
query_id         | -2788934432199274759
query            | /* Username: admin@example.com, query_id: 1, Queue: queries, Job ID: a8dfe938-9655-4d8f-ae84-d44725de544e, Query Hash: 8f57b28d0702e12ca964e1136c4b5e0b, Scheduled: False */ select user, pg_sleep(30) LIMIT 1000
backend_type     | client backend

Related Tickets & Documents

Mobile & Desktop Screenshots/Recordings (if there are UI changes)

スクリーンショット 2026-04-18 11 59 08

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 3 files

@winebarrel winebarrel changed the title Support AWS RDS IAM Authentication for PostgreSQK data soruce Support AWS RDS IAM Authentication for PostgreSQL data soruce Apr 18, 2026
@winebarrel winebarrel force-pushed the support-rds-iam-auth-for-data-source branch from 9a6df85 to 581975f Compare April 18, 2026 03:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant