Hi Vishwas,
Bucket policy should let you access buckets in another tenant.
What exact command are you using?
Thanks,
Pritha
On Thursday, May 14, 2020, Vishwas Bm wrote:
> > Hi,
> >
> > I have two users both belong to different tenant.
> >
> > Can I give permission for the user in another tenan
Hi Pritha,
Thanks for the reply. Please find the user list, bucket list and also the
command which I have used.
[root@vishwas-test cluster]# radosgw-admin user list
[
"tenant2$Jerry",
"tenant1$Tom"
]
[root@vishwas-test cluster]# radosgw-admin bucket list
[
"tenant2/jerry-bucket"
]
[
When I tried as below also, similar error is coming:
[root@vishwas-test cluster]# s3cmd --access_key=GY40PHWVK40A2G4XQH2D
--secret_key=bKq36rs5t1nZEL3MedAtDY3JCfBoOs1DEou0xfOk ls
s3://tenant2/jerry-bucket
ERROR: Bucket 'tenant2' does not exist
ERROR: S3 error: 404 (NoSuchBucket)
[root@vishwas-te
Hi Vishwas,
In the following bucket policy:
Policy:{
"Version": "2012-10-17",
"Statement": [
{
"Principal": {"AWS": ["arn:aws:iam::tenant1:user/Tom"]},
"Action": ["s3:ListBucket"],
"Effect": "Allow",
"Resource": "s3://tenant2/jerry-bucket"
}
]
}
'Resource'
Hi Prita,
Thanks for the response. Yes, with boto package I was able to access the
bucket content.
*Thanks & Regards,*
*Vishwas *
On Thu, May 14, 2020 at 9:32 PM Pritha Srivastava
wrote:
> Hi Vishwas,
>
> In the following bucket policy:
> Policy:{
> "Version": "2012-10-17",
> "State