Skip to content

[Bounty $5k] fix(storage): validate bucket encryption, public access, versioning, and lifecycle on provision#3435

Open
Karry2019web wants to merge 1 commit into
orchestration-agent:mainfrom
Karry2019web:fix/bucket-encryption-validation-3434
Open

[Bounty $5k] fix(storage): validate bucket encryption, public access, versioning, and lifecycle on provision#3435
Karry2019web wants to merge 1 commit into
orchestration-agent:mainfrom
Karry2019web:fix/bucket-encryption-validation-3434

Conversation

@Karry2019web
Copy link
Copy Markdown

Summary

Add infrastructure policy tests for bucket security baseline validation.
New buckets now fail provisioning checks when encryption, public access blocks,
versioning, or lifecycle settings deviate from the security baseline.

Changes

  • New src/infrastructure/bucket.py: BucketValidator class with baseline
    checks for encryption (AES256), public access block (all 4 settings),
    versioning (enabled), and lifecycle rules (expiration + abort uploads).
  • New src/infrastructure/__init__.py: Module exports.
  • New tests/test_infrastructure_bucket.py: Comprehensive tests covering
    compliant configs, missing encryption, partial public access blocks,
    disabled versioning, missing lifecycle rules, custom baselines, and
    migration plan generation.

Acceptance Criteria

  • New buckets fail provisioning checks when baseline settings are missing
  • Storage baseline requirements are documented in code (BaselinePolicy dataclass)
  • Existing buckets have a migration plan for detected drift (generate_migration_plan())

Fixes #3434

…and lifecycle on provision

Add infrastructure policy tests and validation logic for storage bucket
security baseline. New buckets must pass encryption, public access block,
versioning, and lifecycle checks before provisioning.

Fixes orchestration-agent#3434
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ Bounty $5k ] [ Storage ] Validate encryption settings on new buckets — infrastructure provisioning

1 participant