← All updates

Security / Field note

A private S3 bucket still needs an access boundary

Five fictional review records separate public-exposure safeguards, partner permissions, object ownership and the evidence needed to check document access.

By Zyel · Published · 4 min read

A private S3 bucket can still give a named integration partner more documents than the business intended. Blocking public exposure is essential, but the next question is more specific: can this identity perform this action on this object? A green public-access check has a fairly narrow job description. [3]

This field note reviews established AWS behavior on November 25, 2026. Imagine a fictional wholesaler whose partner needs product exports while customer invoices stay with the application. The five original JSON records below are illustrative review inputs. They are neither deployable AWS policies nor CloudTrail logs, and they report no executed tests or real customer exposure.

1. Write down the business permission

Start with the useful work. A partner must retrieve an approved export, while a different document class stays outside that agreement. This first record gives the review a target that a business owner can understand. The invented paths identify categories of data; writing them in a checklist creates no enforcement.

1. Define a fictional integration’s intended scope · JSON
{
  "fictional_review_input": true,
  "identity": "named partner integration role",
  "access_path": "direct request from partner account",
  "business_rules": [
    {
      "action": "s3:GetObject",
      "object_prefix": "exports/",
      "expected": "allow"
    },
    {
      "action": "s3:GetObject",
      "object_prefix": "private/",
      "expected": "deny"
    },
    {
      "action": "s3:PutObject",
      "object_prefix": "exports/",
      "expected": "deny"
    }
  ],
  "scope_approved_in_real_account": false
}

AWS explains that a bucket policy limited to fixed principals can qualify as non-public. Such a policy can still grant cross-account access with RestrictPublicBuckets enabled. If the policy instead qualifies as public, that setting can also block its cross-account grants. Review the entire policy and effective safeguards before drawing a conclusion from one setting. [3]

2. Check both sides of a direct request

For direct cross-account access, AWS evaluates the requesting account and the resource-owning account. The requester needs an applicable identity permission, and the resource side must permit the request; both account evaluations must allow it. Assuming a role inside the resource owner’s account is a different access path, so identify the principal that actually makes the S3 request. [1]

2. State the assumptions behind an approved export read · JSON
{
  "fictional_review_input": true,
  "request": {
    "actor_account": "partner",
    "resource_account": "wholesaler",
    "action": "s3:GetObject",
    "key": "exports/catalog.csv"
  },
  "account_evaluations": {
    "requester": "allow",
    "resource_owner": "allow"
  },
  "remaining_required_controls": "assumed to permit this example",
  "expected": "allow",
  "execution_evidence_recorded": false
}

The example deliberately states its remaining assumptions. Permissions boundaries and applicable organization controls can change a real decision. Our recommendation is to record the request identity and the complete applicable policy context, rather than promoting two selected allow statements into proof of effective access. [1]

3. Look for the unintended successful read

Now keep the same named partner but widen the allowed object range. If the relevant evaluations permit a private invoice, the integration has crossed the fictional business boundary even though the bucket policy is non-public. That is a permissions-scope problem involving an authenticated identity. [1] [3]

3. Describe an overly broad fictional grant · JSON
{
  "fictional_review_input": true,
  "request": {
    "actor": "named partner role",
    "action": "s3:GetObject",
    "key": "private/example-invoice.txt"
  },
  "bucket_policy_classification": "non-public",
  "requester_account_evaluation": "allow",
  "resource_account_evaluation": "allow",
  "other_required_controls": "assumed to permit this example",
  "hypothetical_authorization": "allow",
  "business_expected": "deny",
  "review_finding": "object scope exceeds the integration agreement"
}

This is why we would review principals, actions and object scope together. A recognizable partner name is not a reason to grant every file operation. Preserve the approved export path while checking that private-document reads and unexpected writes are outside the effective permission set.

4. Keep successful work in the retest

AWS distinguishes an implicit denial, where no applicable allow exists, from an explicit denial in an applicable policy. An explicit deny wins over an allow. The next record keeps three different expectations visible: useful access, a missing permission and an overriding denial. These are proposed acceptance cases, not observations from an AWS account. [2]

4. Review a corrected scope and an explicit-deny case · JSON
{
  "fictional_review_input": true,
  "other_required_controls": "assumed to permit each case",
  "direct_cross_account_cases": [
    {
      "key": "exports/catalog.csv",
      "requester_allow": true,
      "bucket_allow": true,
      "explicit_deny": false,
      "expected": "allow"
    },
    {
      "key": "private/example-invoice.txt",
      "requester_allow": true,
      "bucket_allow": false,
      "explicit_deny": false,
      "expected": "implicit deny"
    },
    {
      "key": "exports/embargoed.csv",
      "requester_allow": true,
      "bucket_allow": true,
      "explicit_deny": true,
      "expected": "explicit deny"
    }
  ],
  "alternate_allow_routes": "absent in this illustration",
  "observations_recorded": false
}

Object ownership deserves its own check. AWS recommends Bucket owner enforced for most modern S3 uses: ACLs are disabled, the bucket owner owns the objects, and policies govern access. That simplifies the review, but it does not choose the partner’s business permissions for you. Existing upload workflows also need compatibility review before ownership settings change. [4]

5. Require evidence of object activity

A permission review also needs an evidence plan. AWS classifies object reads and writes as CloudTrail data events. They are not logged by default, do not appear in CloudTrail Event history, and incur additional charges when recorded. Seeing bucket-management events therefore does not establish that a particular document read will be available for investigation. [5]

5. Specify a fictional audit-and-detection acceptance input · JSON
{
  "fictional_review_input": true,
  "resource_type": "AWS::S3::Object",
  "required_read_scope": [
    "exports/",
    "private/"
  ],
  "required_operation": "GetObject",
  "correlation": "unique marker from an approved synthetic request",
  "detection_expectations": {
    "unexpected_private_read_success": "alert for review",
    "expected_permission_denial": "retain without calling it a successful bypass",
    "approved_export_read": "retain without a bypass alert"
  },
  "evidence_required": [
    "object event",
    "matching detection result",
    "notification routing result"
  ],
  "observations_recorded": false
}

Our recommendation is to follow an approved synthetic request through the selected object event, the detection rule and the assigned response route. Keep expected denials separate from successful unauthorized access. Check an approved export too: a control that blocks every integration can protect data while quietly stopping the business.

IAM Access Analyzer policy validation can identify grammar issues and best-practice findings. AWS also calls for thorough testing before production use. Combine those checks with the actual request context and evidence you need for acceptance. A validation result, a permissions decision and a delivered notification each answer a different question. [6]

The practical outcome is a review that names the partner, the operation, the documents and the evidence. Public-access safeguards, ownership controls and logging remain valuable parts of that review. Give each control a specific job, then verify that the complete arrangement permits the agreed work and protects the rest.

Sources + further reading

Source dates describe the original material. Publication above is the date this Zyel article went live.

  1. Cross-account policy evaluation logicAmazon Web Services · Checked Nov 25, 2026
  2. The difference between explicit and implicit deniesAmazon Web Services · Checked Nov 25, 2026
  3. Blocking public access to Amazon S3 storageAmazon Web Services · Checked Nov 25, 2026
  4. Object ownership and disabling ACLsAmazon Web Services · Checked Nov 25, 2026
  5. Amazon S3 CloudTrail eventsAmazon Web Services · Checked Nov 25, 2026
  6. Validate policies with IAM Access AnalyzerAmazon Web Services · Checked Nov 25, 2026

Reader discussion

What would you ask next?

Questions, useful corrections and thoughtful disagreement are welcome. Comments are reviewed before they appear.

No reader comments yet.

10–2,000 characters. Plain text. Leave out passwords, private project data and personal contact details. A blank display name appears as Anonymous.

Complete the CAPTCHA before sending. Verification runs on your device.