Skip to content

fix(terraform/platform/dev): interpolate var.environment in QuanvNN bucket name + add SSE-KMS TODO#40

Merged
JackMaarek merged 1 commit into
mainfrom
fix/quanvnn-bucket-env-interpolation
Apr 26, 2026
Merged

fix(terraform/platform/dev): interpolate var.environment in QuanvNN bucket name + add SSE-KMS TODO#40
JackMaarek merged 1 commit into
mainfrom
fix/quanvnn-bucket-env-interpolation

Conversation

@JackMaarek

Copy link
Copy Markdown
Collaborator

Summary

Small follow-up to PR #39 addressing the two non-blocking 🟡 nits from PR_39_REVIEW.md:

  • Topic G — interpolate ${var.environment} into the QuanvNN bucket name instead of the hardcoded "dev" literal. Avoids a copy-paste hazard when this file is templated for staging/prod (a leaked "dev" literal in a non-dev bucket would be silent until apply-time).
  • Topic D / KMS hardening — add a TODO flagging that AES256 (SSE-S3) is dev-only baseline; staging/prod under compliance_profile = "soc2" should switch to SSE-KMS with a customer-managed key.

Safety

Both changes are no-ops on dev:

  • var.environment defaults to "dev" and the dev terraform.tfvars sets environment = "dev", so "podyourlife-quanvnn-datasets-${var.environment}" evaluates to the exact same byte string as the prior literal. Terraform will not replace the bucket.
  • The TODO is a comment only.

Test plan

  • terraform fmt -check -diff s3.tf clean
  • terraform validate succeeds
  • After hydrate on dev branch: terraform plan shows zero changes for aws_s3_bucket.quanvnn_datasets
  • No new resource replacements anywhere in the plan

…ucket name + add SSE-KMS TODO

The bucket name was hardcoded to "podyourlife-quanvnn-datasets-dev". Interpolating
${var.environment} avoids a copy-paste hazard when this file is templated for staging/prod
(literal "dev" leaking into a non-dev bucket would be silent until apply-time).

Also flags the AES256/SSE-S3 baseline as dev-only — staging/prod under compliance_profile
"soc2" should switch to SSE-KMS with a customer-managed key.

Both changes are no-ops on dev: var.environment evaluates to "dev" so the bucket name
is byte-identical and Terraform will not replace the resource.
@JackMaarek
JackMaarek merged commit fc0d276 into main Apr 26, 2026
4 of 6 checks passed
@JackMaarek
JackMaarek deleted the fix/quanvnn-bucket-env-interpolation branch April 26, 2026 11:54
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.

1 participant