API / deployment

Redaction in AWS without a public bucket

A practical guide to redaction aws: the boundary, the controls and the failure modes that matter before the first document.

Redaction AWS: Deployment and Limits

Redaction in AWS without a public bucket. AWS gives you the building blocks, not the boundary. The redaction service can sit in a private subnet, read from an S3 bucket with no public access, and write to a separate bucket. The risks are the policies around those blocks, not the blocks themselves.

What changes in this environment

A container on ECS or EKS, or a VM in a private subnet, with a VPC endpoint to S3 and no NAT route for the workload. IAM roles are scoped to the input and output prefixes. Keys live in KMS; CloudTrail records the control-plane calls. The region is chosen, not defaulted.

Where the data hides

The visible page is only one layer. In this environment, check:

The redaction flow

  1. Upload to the ingest prefix with encryption and a tag.
  2. Assume a scoped role and submit the job.
  3. Write the output and the report to a separate prefix.
  4. Review the report; move the file to the release prefix.
  5. Expire the input and verify the object is gone.

Controls to verify

  • Block public access at the account and bucket level.
  • Deny `s3:*` outside the approved prefixes.
  • Require TLS and a VPC endpoint.
  • Enable CloudTrail and S3 server access logging.
  • Test the deletion path, including versions.

Retention and evidence

S3 versioning can keep a deleted object alive. If the policy says delete, the lifecycle rule must cover current and noncurrent versions, and the test must prove it. Reports and logs need their own retention decision.

Limits

AWS shared responsibility leaves identity, network policy, patching and review with you. Cross-region replication can move data without a new decision. OCR and language limits do not change because the region changes.

The VPC shape

In AWS the redaction tier belongs in its own subnets, private by construction: no public IPs on the processing instances, traffic to storage and identity flowing over endpoints rather than the internet. The application that calls the redaction service sits in a different subnet, and security groups default-deny between them. PrivateLink can carry the traffic to a managed service without a public path at all. The shape is standard; the discipline is keeping it standard when a debugging session tempts someone to open a rule 'temporarily'.

The AWS-specific controls

Identity through IAM roles with least-privilege policies — the redaction role reads its input bucket and writes its output bucket, and nothing else. Storage with bucket policies that block public access and default encryption; the block-public-access setting is the cheapest control in the console and the most often skipped. CloudTrail in all regions, because the audit question arrives years later and region-scoped trails forget. And KMS with key policies that separate who can use a key from who can administer it — the separation is what makes encryption a control rather than a slogan.

The S3 bucket checklist

The bucket holding the files is where the AWS story is won or lost: block public access on, default encryption with a managed or customer key, versioning for recoverability, and access logging to a separate account so the log itself survives a compromise of the workload account. Bucket policies name the roles that may read and write; anything broader is a finding. And the obvious rule bears repeating: no credentials on instances — the role exists precisely so that no key ever does.

How Veilbrook fits

Veilbrook can run in your AWS account with the same policy and report as the hosted service. Ask for the reference architecture and the IAM policy, then test it with your own bucket.

Before you release

Open the output in the same tool the recipient will use. Select each masked area and paste it into a text editor. Search for every value you removed, including the header, the attachment, the comment and the OCR layer. Compare the report with the file and keep both. If a value survives, the job is not done.

What to ask before you build

Questions

Does Veilbrook store documents in S3?

In a customer-cloud deployment, the objects stay in buckets you control. Ask for the retention and deletion design.

Can we use an S3 gateway endpoint?

Yes, if the architecture supports it. Test that the workload has no other egress path.

Is AWS responsible for the redaction?

No. AWS provides the infrastructure; the policy, the review and the evidence are yours.