cockroachdb / cockroach

CockroachDB - the open source, cloud-native distributed SQL database.
https://www.cockroachlabs.com
Other
29.52k stars 3.7k forks source link

Feature: remove requirement to specify cluster's internal IAM role name #126672

Open ecordell opened 4 days ago

ecordell commented 4 days ago

Is your feature request related to a problem? Please describe. When using workload identity to backup a database to s3, you have to specify two roles: the Cockroach-managed role and the customer-controlled role to assume:

From docs here: https://www.cockroachlabs.com/docs/v24.1/cloud-storage-authentication#run-the-operation-from-a-cockroachdb-dedicated-cluster:

BACKUP DATABASE {database} INTO 's3://{bucket name}/{path}?AUTH=implicit&ASSUME_ROLE=arn:aws:iam::{AWS account ID}:role/crl-dr-store-user-{cluster ID suffix},arn:aws:iam::{account ID}:role/{operation role name}' AS OF SYSTEM TIME '-10s';

Describe the solution you'd like I'd like to omit the cockroach-controlled role and just specify:

BACKUP DATABASE {database} INTO 's3://{bucket name}/{path}?AUTH=implicit&ASSUME_ROLE=arn:aws:iam::{account ID}:role/{operation role name}' AS OF SYSTEM TIME '-10s';

so that I don't have to query the cockroach cloud API and manually construct a role name.

Jira issue: CRDB-40057

blathers-crl[bot] commented 4 days ago

Hello, I am Blathers. I am here to help you get the issue triaged.

I have CC'd a few people who may be able to assist you:

If we have not gotten back to your issue within a few business days, you can try the following:

:owl: Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

blathers-crl[bot] commented 4 days ago

cc @cockroachdb/disaster-recovery