Aurora Data API support

未关闭
#2,506 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
冷清
技术栈
aws, mysql, postgresql, swift
领域
database

调研方向

Start by reading the DynamoDB plugin paths mentioned in the issue to understand how profile and role authentication are handled. Then investigate the MySQL and PostgreSQL connection forms and the Aurora Data API operations listed here; the issue does not name specific files or tests. Done means supporting the requested connection fields, IAM auth, query and transaction operations, and clearly stating the API limits in the form.

由索引模型根据 Issue 内容生成。

描述

enhancement platform-macos
Problem

An Aurora cluster in a private VPC with no public endpoint cannot be reached without a bastion. The RDS Data API exists exactly for that case, over HTTPS with IAM auth and no network path to the database, and TablePro cannot use it.

TablePro already signs AWS requests and resolves AWS profiles: AWSSigV4 and AWSCredentialResolver in apple/Plugins/TableProPluginKit/AWS/ serve RDS IAM authentication (connections/aws-iam.mdx), the DynamoDB plugin and Import from AWS (#2852). Nothing calls rds-data.

Proposed solution
  • A Data API transport option on the MySQL and PostgreSQL connection forms, taking a cluster ARN, a Secrets Manager secret ARN and a database name instead of a host and port.
  • AWS credentials through the same profile resolution IAM authentication uses: named profiles, IAM Identity Center, role_arn chains and credential_process (connections/aws-iam.mdx, Profiles).
  • ExecuteStatement for queries, and BeginTransaction, CommitTransaction and RollbackTransaction for transactions.
  • State the API's limits in the form rather than letting the user find them: no streaming, a cap on the result size, and no cursor. A result over the cap fails with that reason, and table tabs page within it.
  • Import from AWS offers Data API for a cluster that has it enabled.

Done means a connection to an Aurora PostgreSQL cluster with no route from the Mac lists its tables and runs a query, with only an AWS profile and the two ARNs.

Alternatives considered

A bastion host and an SSH tunnel.

Platform

macOS

Related database type

PostgreSQL

主要语言
Swift
星标
6.2k
派生
412
平均合并
3 小时 56 分钟
30 天内合并 PR
669

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

TableProApp/TablePro 的其他 Issue

查看 TableProApp/TablePro 的全部 Issue

相似的 Issue

更多 Swift Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。