<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: restrict access to S3 bucket base on aws_access_key_id=ACCESS_KEY in Object Storage</title>
    <link>https://community.netapp.com/t5/Object-Storage/restrict-access-to-S3-bucket-base-on-aws-access-key-id-ACCESS-KEY/m-p/158538#M95</link>
    <description>&lt;P&gt;Create 4 tenant users and security policies for each bucket that allow only one user to r/w and deny certain actions for the rest.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.netapp.com/sgws-110/topic/com.netapp.doc.sg-s3/GUID-53596498-9334-44DB-A4CE-DFEC28CF21FF.html?cp=5_0_5_1" target="_blank"&gt;https://docs.netapp.com/sgws-110/topic/com.netapp.doc.sg-s3/GUID-53596498-9334-44DB-A4CE-DFEC28CF21FF.html?cp=5_0_5_1&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Create a key for each tenant user&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.netapp.com/sgws-110/index.jsp?topic=%2Fcom.netapp.doc.sg-tenant-admin%2FGUID-042C8C01-E479-4696-AFA2-A9212C10E723.html" target="_blank"&gt;https://docs.netapp.com/sgws-110/index.jsp?topic=%2Fcom.netapp.doc.sg-tenant-admin%2FGUID-87FC9E42-0113-429B-BB77-F078E12AEDC4.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Aug 2020 05:33:11 GMT</pubDate>
    <dc:creator>elementx</dc:creator>
    <dc:date>2020-08-12T05:33:11Z</dc:date>
    <item>
      <title>restrict access to S3 bucket base on aws_access_key_id=ACCESS_KEY</title>
      <link>https://community.netapp.com/t5/Object-Storage/restrict-access-to-S3-bucket-base-on-aws-access-key-id-ACCESS-KEY/m-p/158281#M94</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have four S3 buckets&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;bucket1, bucket2, bucket3, bucket4&lt;/CODE&gt;&lt;SPAN&gt;. I would like to create a new Access/secret key that only has access to ONE of these four buckets. at least deny list all bucket.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Since it’s the client that is going to write data to S3 Bucket. I don’t want to go the IAM way.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;I am keen to explore the access based on access-key? &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I want to use bucket policy to grant access to bucket based on access-key and deny access for the remaining buckets in the tenant.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Am also open to any other means to achieve&amp;nbsp;the desired results.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 10:58:29 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Object-Storage/restrict-access-to-S3-bucket-base-on-aws-access-key-id-ACCESS-KEY/m-p/158281#M94</guid>
      <dc:creator>manistorage</dc:creator>
      <dc:date>2025-06-04T10:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: restrict access to S3 bucket base on aws_access_key_id=ACCESS_KEY</title>
      <link>https://community.netapp.com/t5/Object-Storage/restrict-access-to-S3-bucket-base-on-aws-access-key-id-ACCESS-KEY/m-p/158538#M95</link>
      <description>&lt;P&gt;Create 4 tenant users and security policies for each bucket that allow only one user to r/w and deny certain actions for the rest.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.netapp.com/sgws-110/topic/com.netapp.doc.sg-s3/GUID-53596498-9334-44DB-A4CE-DFEC28CF21FF.html?cp=5_0_5_1" target="_blank"&gt;https://docs.netapp.com/sgws-110/topic/com.netapp.doc.sg-s3/GUID-53596498-9334-44DB-A4CE-DFEC28CF21FF.html?cp=5_0_5_1&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Create a key for each tenant user&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.netapp.com/sgws-110/index.jsp?topic=%2Fcom.netapp.doc.sg-tenant-admin%2FGUID-042C8C01-E479-4696-AFA2-A9212C10E723.html" target="_blank"&gt;https://docs.netapp.com/sgws-110/index.jsp?topic=%2Fcom.netapp.doc.sg-tenant-admin%2FGUID-87FC9E42-0113-429B-BB77-F078E12AEDC4.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2020 05:33:11 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Object-Storage/restrict-access-to-S3-bucket-base-on-aws-access-key-id-ACCESS-KEY/m-p/158538#M95</guid>
      <dc:creator>elementx</dc:creator>
      <dc:date>2020-08-12T05:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: restrict access to S3 bucket base on aws_access_key_id=ACCESS_KEY</title>
      <link>https://community.netapp.com/t5/Object-Storage/restrict-access-to-S3-bucket-base-on-aws-access-key-id-ACCESS-KEY/m-p/158551#M96</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;we mount the s3 bucket to a UNIX server for application access. the s3 buckets are mounted using tenant credentials, not using IAM credentials.&lt;/P&gt;
&lt;P&gt;I am trying to restrict list bucket access to specific&amp;nbsp;&amp;nbsp;ws_access_key_id=ACCESS_KEY&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Mani&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2020 10:19:08 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Object-Storage/restrict-access-to-S3-bucket-base-on-aws-access-key-id-ACCESS-KEY/m-p/158551#M96</guid>
      <dc:creator>manistorage</dc:creator>
      <dc:date>2020-08-12T10:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: restrict access to S3 bucket base on aws_access_key_id=ACCESS_KEY</title>
      <link>https://community.netapp.com/t5/Object-Storage/restrict-access-to-S3-bucket-base-on-aws-access-key-id-ACCESS-KEY/m-p/158555#M97</link>
      <description>&lt;P&gt;How do you mount the buckets? With s3fs? Or through SG NAS Bridge?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/s3fs-fuse/s3fs-fuse#examples" target="_blank"&gt;https://github.com/s3fs-fuse/s3fs-fuse#examples&lt;/A&gt; shows how s3fs uses S3 keys and not account name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't want the app to use S3 keys, you can still pre-populate the s3fs credentials for the user's $HOME, and each app can use a separate UID/GID ($HOME) or user profile to access S3 bucket.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If each user (app) has own .passwd-s3fs, they don't need to be specifically aware of it. For example, /home/user1/.s3pass, /home/user2/.s3pass, etc. You just need to maintain and push these .s3pass config files to the apps' home directories or environment variables/profiles.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2020 11:13:23 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Object-Storage/restrict-access-to-S3-bucket-base-on-aws-access-key-id-ACCESS-KEY/m-p/158555#M97</guid>
      <dc:creator>elementx</dc:creator>
      <dc:date>2020-08-12T11:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: restrict access to S3 bucket base on aws_access_key_id=ACCESS_KEY</title>
      <link>https://community.netapp.com/t5/Object-Storage/restrict-access-to-S3-bucket-base-on-aws-access-key-id-ACCESS-KEY/m-p/158608#M98</link>
      <description>&lt;P&gt;Indeed, we use s3fs to mount the bucket with a credential file.&amp;nbsp; now on storage grid how do I restrict&amp;nbsp; access to a bucket with aws_access_key. I have a tenant&amp;nbsp; with 4 S3 buckets &amp;amp; its respective keys-&lt;/P&gt;
&lt;P&gt;tenant_A&lt;/P&gt;
&lt;P&gt;&amp;nbsp; - S3 buckets. Bucket_1,Bucket_2,Bucket_3,Bucket_4&lt;/P&gt;
&lt;P&gt;I generate 4 separate access_key&amp;amp; secret key&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;how do we tie a bucket to a key with out a IAM user?&lt;/P&gt;
&lt;P&gt;how to restrict bucket list access on&amp;nbsp;Bucket_2 to&amp;nbsp;access_key_01,access_key03,access_key04.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;        {
            "Effect": "Deny",
            "Action": [
                "s3:GetObject",
                "s3:PutObject",
                "s3:GetObjectAcl",
                "s3:PutObjectAcl",
                "s3:ListBucket",
                "s3:GetBucketAcl",
                "s3:PutBucketAcl",
                "s3:GetBucketLocation"&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE&gt;    ],
            "Resource": "arn:aws:s3:::Bucket_2/*",
            "Condition": {}
        },&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Mani&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 03:26:48 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Object-Storage/restrict-access-to-S3-bucket-base-on-aws-access-key-id-ACCESS-KEY/m-p/158608#M98</guid>
      <dc:creator>manistorage</dc:creator>
      <dc:date>2020-08-13T03:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: restrict access to S3 bucket base on aws_access_key_id=ACCESS_KEY</title>
      <link>https://community.netapp.com/t5/Object-Storage/restrict-access-to-S3-bucket-base-on-aws-access-key-id-ACCESS-KEY/m-p/158618#M99</link>
      <description>&lt;P&gt;If you can create "directories" such as&lt;/P&gt;
&lt;P&gt;s3/bucket_1/app1&lt;/P&gt;
&lt;P&gt;s3/bucket_1/app2&lt;/P&gt;
&lt;P&gt;s3/bucket_1/app3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then create a group ("app1") and in it have 4 accounts with 1 key each.&amp;nbsp; Then you could do ACLs according by account (group1/app1, group1/app2, etc.). If you could containerize the apps, each could mount the bucket and there'd be no overlap.&lt;/P&gt;
&lt;P&gt;s3:prefix (bucket_1/app1, for example) would let you do per "directory" ACLs.&lt;/P&gt;
&lt;P&gt;But this would necesitate the creation of a group and separate accounts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you could route the apps through different IP addresses (hard to enforce, but if you could), you could use aws:SourceIp.&lt;/P&gt;
&lt;P&gt;This could be "enforced" by having a TLS terminating proxy that would ensure each app is accessing via the correct IP.&lt;/P&gt;
&lt;P&gt;aws:NotIpAddress would be use to ban the other 3 apps from performing certain operations on certain s3:prefix or object names/extensions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems there's no easy way to do this.&amp;nbsp; I don't know what other ways are possible and what are the limitations (can't create more accounts, can containerize, etc.) in this environment. Hopefully some other community members can provide additional ideas.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 07:47:03 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Object-Storage/restrict-access-to-S3-bucket-base-on-aws-access-key-id-ACCESS-KEY/m-p/158618#M99</guid>
      <dc:creator>elementx</dc:creator>
      <dc:date>2020-08-13T07:47:03Z</dc:date>
    </item>
  </channel>
</rss>

