Skip to content

Proposal: Add optional Native Amazon Aurora DSQL Support #217

Open

Description

@praba2210

Summary

Hi, I’m a developer on the Amazon Aurora DSQL team. Aurora DSQL uses the PostgreSQL wire protocol with IAM authentication and TLS. psqlODBC users currently require external code or proxies to generate and manage IAM tokens, adding operational complexity.

Proposed Support

Add an optional Aurora DSQL connection mode that:

  • Uses the AWS credential chain.
  • Resolves the AWS Region from the DSQL endpoint.
  • Generates the appropriate IAM token for each new connection.
  • Supports standard and admin database roles.
  • Handles full-length tokens securely without persisting them.
  • Enforces TLS certificate and hostname validation.
  • Applies DSQL-compatible connection and session behavior.

The implementation would be isolated so existing PostgreSQL behavior remains unchanged. It may require an optional AWS authentication dependency, and I’m open to guidance on the preferred integration approach.

If this proposal is acceptable, I can prepare and submit a PR for upstream review. Looking forward to your feedback. Thanks!

Activity

  1. changed the title [-]Proposal: Add Native Amazon Aurora DSQL Support[/-] [+]Proposal: Add optional Native Amazon Aurora DSQL Support[/+] on Sep 24, 2026
  2. davecramer commented on Sep 29, 2026

    @davecramer
    Contributor
  3. praba2210 commented on Sep 29, 2026

    @praba2210
    Author

    Have you seen https://github.com/aws/aws-advanced-odbc-wrapper

    Thanks for the link, I'll check it out!

  4. praba2210 commented on Oct 13, 2026

    @praba2210
    Author

    Hi @davecramer , I looked at the wrapper. Its IAM plugin generates RDS IAM tokens, which Aurora DSQL
    doesn't accept because DSQL tokens are signed for a different service (dsql, with
    DbConnect/DbConnectAdmin). So today psqlODBC users have to generate the DSQL IAM token outside
    the driver and pass it as the password. Those tokens expire, so every new connection needs a fresh
    one, and native support would let psqlODBC generate one per connection instead of relying on
    external scripts or proxies.

    Please let me know what do you think of DSQL upstream? Thanks.

  5. davecramer commented on Oct 13, 2026

    @davecramer
    Contributor

    @praba2210 how much trouble would it be to change the wrapper version to use DSQL tokens ?

  6. praba2210 commented on Oct 13, 2026

    @praba2210
    Author

    @davecramer Not much trouble. The wrapper's auth flow is generic, only the token generation is RDS specific, so adding DSQL specific feature is straightforward.

    For long term, I'd still like to have native DSQL IAM auth in psqlODBC as an optional, so user don't need second driver?

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions