---
title: "Discussion on \"Deleting One Server Fixed Twenty Audit Findings\" | Hashnode"
description: "Discussion on \"Deleting One Server Fixed Twenty Audit Findings\". Our static documentation site ran on an EC2 box behind nginx, with SSH open to the internet. A quarterly PCI scan returned twenty-plus findings on that one host. Here is how we migrated it to S3 and CloudFront and dropped the finding count to zero, including the parts the AWS docs skip over."
url: "https://hashnode.com/posts/deleting-one-server-fixed-twenty-audit-findings/6ad1cd1a803cc5fac413d6fe"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Deleting One Server Fixed Twenty Audit Findings](https://notes.sohag.pro/deleting-one-server-fixed-twenty-audit-findings?utm_source=hashnode&utm_medium=feed)

Our static documentation site ran on an EC2 box behind nginx, with SSH open to the internet. A quarterly PCI scan returned twenty-plus findings on that one host. Here is how we migrated it to S3 and CloudFront and dropped the finding count to zero, including the parts the AWS docs skip over.

Oct 16 · 11 min read · notes.sohag.pro  
Read the article

-   [#aws](https://hashnode.com/tag/aws)
-   [#s3](https://hashnode.com/tag/s3)
-   [#cloudfront](https://hashnode.com/tag/cloudfront)
-   [#security](https://hashnode.com/tag/security)
-   [#pci-dss](https://hashnode.com/tag/pci-dss)
-   [#static-sites](https://hashnode.com/tag/static-sites)
-   [#github-actions](https://hashnode.com/tag/github-actions)
-   [#devops](https://hashnode.com/tag/devops)
-   [#migration](https://hashnode.com/tag/migration)

## Written by

[Sohag Hasan](https://hashnode.com/@sohag)

@sohag · Dhaka, Bangladesh

  
[View profile](https://hashnode.com/@sohag)

Tech Lead at MobyPay | Certified Laravel Developer | PHP JS GO | DevOps Enthusiast | Open to projects

WhoAmI =&gt; notes.sohag.pro/author

## Responses 1

Markdown supported · ⌘↵ to post

[CDN Edge Ops](https://hashnode.com/@cdnedgeops)

[Nov 9](https://hashnode.com/posts/deleting-one-server-fixed-twenty-audit-findings/6ad1cd1a803cc5fac413d6fe/comment/6af22b7509e0432ede48d0b2)

Moving a static docs box off a public EC2 host and onto object storage behind a distribution removes an entire SSH and OS patch surface, but only if the bucket stays private and the distribution is the sole reader. Wire OAC so the origin cannot be fetched anonymously, emit Cache-Control from objects so hashed assets can ride long immutable TTLs while HTML shells stay on short s-maxage or a tagged invalidation, and keep deploy-time purge scoped to the paths that actually changed so neighbor keys stay warm.

Ops prove-out after the cutover: fetch the same Host and path twice from a clean client and confirm Age and X-Cache move MISS then HIT only on the paths you intended. Replace one object under the same key, run a path invalidation, and re-check until the old body is gone everywhere that mattered. If HTML stays MISS forever, look for accidental no-store from the origin or a cookie still in the cache key — not a broken POP. Confirm direct bucket access is denied so the old public host habit cannot return through a side door.
