Skip to content

Preview: File Explorer for AWS S3

This feature is a preview.

Contact Privacera Support to request enabling this feature.

With the File Explorer for AWS S3 you can browse S3 buckets and their files and folders. You can upload and retrieve the data to and from the bucket. With resource policies you associate with the bucket, you can control access by granting or revoking permissions for users, groups, or roles.

Prerequisite#

Be sure you have added the Dataserver data resource.

Add S3 Service#

To access an AWS S3, add the S3 service. For more information, see the AWS S3 section in Add Service.

Modify Resource Policy#

After the S3 service is added, for the S3 service, modify the default policy to add an Allow Condition as follows: metadata read permission for the public group for bucket name * and object path *.

For more information on creating a policy, see the AWS S3 section in the Creating Resource Based Policies.

File Explorer#

To view the list of files and folders of a S3 bucket, do the following:

  1. Navigate to Data Inventory > File Explorer.

    Since the policy is enabled, all the S3 buckets are displayed on the File Explorer page.

  2. On the File Explorer page, you can do the following actions:

    Action Description
    Refresh Refreshes the S3 buckets
    Search Allows to search for a particular bucket
    Filter Hides or shows columns
    Create Folder Allows to create a folder
    Upload Allows to upload a file. You can upload all those files formats that are supported by AWS S3.
    Delete Allows to delete file(s) or folder(s)
    Calculate Calculates folder size
    Copy to Clipboard Copies the object path

Use Case#

By managing the permissions in the policy, you can provide access control on the S3 bucket. In this use case, you will see how you can allow/restrict a user from uploading files to a S3 bucket, and view the activity in an audit log.

  1. Create a policy with Read and Write permissions.

  2. Upload a file by performing the following steps:

    1. Navigate to Data Inventory > File Explorer.

    2. Go to the S3 bucket where you want to upload the file.

    3. Click Upload.

      Add File popup is displayed.

    4. Choose the file to upload and click Upload button.

      The file is uploaded with a success message and seen in the listing.

    5. Navigate to Access Manager > Audits to view the audit log for the upload action.

  3. Edit the policy and remove the Write permission.

  4. Upload a file by performing the following steps:

    1. Navigate to Data Inventory > File Explorer.

    2. Go to the S3 bucket where you want to upload the file.

    3. Click Upload, Add File popup is displayed.

    4. Choose the file to upload and click Upload button.

      "Access Denied" error message is displayed.

    5. Navigate to Access Manager > Audits to view the audit log for the denied upload action.


Last update: September 9, 2021