matrixone icon indicating copy to clipboard operation
matrixone copied to clipboard

[Bug]:Load data from aliyun with arn can only success with authority 'AliyunOSSFullAccess' and bucket configuration is * .

Open Ariznawlll opened this issue 1 year ago • 7 comments

Is there an existing issue for the same bug?

  • [X] I have checked the existing issues.

Branch Name

mo-cloud dev环境

Commit ID

8.0.30-MatrixOne-v1.1.0

Other Environment Information

- Hardware parameters:
- OS type:
- Others:
连接串:mysql -h freetier-01.cn-hangzhou.cluster.cn-dev.matrixone.tech -P 6001 -u 76ea92e3_0493_4117_a266_1134f2ec2bc1:admin:accountadmin  -p

Actual Behavior

描述:当前通过load data with arn的方式必须同时将权限设置成AliyunOSSFullAccess并且bucket的权限设置为*才能load成功. 失败的场景: 情景一:权限配置成下面的场景(以下均为非AliyunOSSFullAccess权限) 企业微信截图_e4174e44-5455-4821-9be1-3021d97c5771 企业微信截图_623a2b49-1b5c-4ade-add8-d814d75b7e71

企业微信截图_101fc58d-86d4-46ed-b541-369b76522220 企业微信截图_2b0f6f37-56f8-4066-abfb-dd3719294cf0 企业微信截图_2b6687c4-7d8f-4a40-8c81-033e82418051 企业微信截图_16a83ea8-5f5a-4392-92fa-16bd52893299

情景二:桶的路径成非* load 不成功(配置成*存在安全性问题,需要能指定单独的桶的路径) image 企业微信截图_021a81e9-9a21-40d8-9b86-3ad5d69e1d94

Expected Behavior

No response

Steps to Reproduce

1. 创建角色;
2. 创建权限策略;
3. 为角色授权;
4. mysql客户端连接数据库创建数据库和表:
   mysql -h freetier-01.cn-hangzhou.cluster.cn-dev.matrixone.tech -P 6001 -u 76ea92e3_0493_4117_a266_1134f2ec2bc1:admin:accountadmin  -p
create database test;
use test;
create table test01(col1 char,col2 char);
5. load数据
load data url s3option {"endpoint"='oss-cn-hangzhou.aliyuncs.com',"bucket"='testarn',"filepath"='test.csv',"role_arn"='acs:ram::1011981963396790:role/testarn',"region"='cn-hangzhou',"compression"='auto',"external_id"='abcd1234'} into table test01 fields terminated by ',';

Additional information

No response

Ariznawlll avatar Feb 02 '24 05:02 Ariznawlll

not working on this

reusee avatar Feb 07 '24 10:02 reusee

not working on this

reusee avatar Feb 21 '24 13:02 reusee

not working on this

reusee avatar Feb 26 '24 10:02 reusee

not working on this

reusee avatar Feb 29 '24 11:02 reusee

not working on this

reusee avatar Mar 05 '24 15:03 reusee

working on other issues

reusee avatar Mar 08 '24 13:03 reusee

working on other issues.

reusee avatar Mar 13 '24 14:03 reusee

working on other issues.

reusee avatar Mar 18 '24 14:03 reusee

working on other issues.

reusee avatar Mar 21 '24 15:03 reusee

working on other issues.

reusee avatar Mar 26 '24 14:03 reusee

working on other issues.

reusee avatar Mar 29 '24 14:03 reusee

working on other issues.

reusee avatar Apr 03 '24 14:04 reusee

working on other issues.

reusee avatar Apr 08 '24 10:04 reusee

not working on this issue.

reusee avatar Apr 11 '24 14:04 reusee

working on other issues.

reusee avatar Apr 16 '24 14:04 reusee

working on other issues.

reusee avatar Apr 19 '24 11:04 reusee

working on other issues.

reusee avatar Apr 24 '24 15:04 reusee

working on other issues.

reusee avatar Apr 29 '24 11:04 reusee

working on other issues.

reusee avatar May 02 '24 10:05 reusee

working on other issues.

reusee avatar May 07 '24 10:05 reusee

working on other issues.

reusee avatar May 10 '24 10:05 reusee

working on other issues.

reusee avatar May 16 '24 10:05 reusee

working on other issues.

reusee avatar May 21 '24 11:05 reusee

working on other issues

reusee avatar May 24 '24 12:05 reusee

working on other issues

reusee avatar May 29 '24 15:05 reusee

working on other issues

reusee avatar Jun 03 '24 10:06 reusee

working on other issues

reusee avatar Jun 06 '24 10:06 reusee

无进展

reusee avatar Jun 11 '24 14:06 reusee

working on other issues

reusee avatar Jun 14 '24 10:06 reusee

working on other issues.

reusee avatar Jun 19 '24 12:06 reusee