Skip to content

Conversation

@aidenvaines-cgi
Copy link
Contributor

Description

Migrating the quarantine S3 bucket up and out to the acct component

Context

Type of changes

  • Refactoring (non-breaking change)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would change existing functionality)
  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I am familiar with the contributing guidelines
  • I have followed the code style of the project
  • I have added tests to cover my changes
  • I have updated the documentation accordingly
  • This PR is a result of pair or mob programming

Sensitive Information Declaration

To ensure the utmost confidentiality and protect your and others privacy, we kindly ask you to NOT including PII (Personal Identifiable Information) / PID (Personal Identifiable Data) or any other sensitive data in this PR (Pull Request) and the codebase changes. We will remove any PR that do contain any sensitive information. We really appreciate your cooperation in this matter.

  • I confirm that neither PII/PID nor sensitive data are included in this PR and the codebase changes.

@aidenvaines-cgi aidenvaines-cgi requested review from a team as code owners October 1, 2025 19:37
bucket_name = module.s3bucket_quarantine.id
object_prefixes = ["pdf-template/", "test-data/", "proofs/"]
bucket_name = data.aws_s3_bucket.quarantine.id
object_prefixes = ["${local.csi}/pdf-template/", "${local.csi}/test-data/", "${local.csi}/proofs/"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be part of the acct level component and be independent of the csi?

]

resources = ["${module.s3bucket_quarantine.arn}/*"]
resources = ["${data.aws_s3_bucket.quarantine.arn}/*"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we restrict access to csi scoped objects?

e.g. something like "${data.aws_s3_bucket.quarantine.arn}/${local.csi}/*"

]

resources = ["${module.s3bucket_quarantine.arn}/*"]
resources = ["${data.aws_s3_bucket.quarantine.arn}/*"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we restrict access to csi scoped objects?

e.g. something like "${data.aws_s3_bucket.quarantine.arn}/${local.csi}/*"

]

resources = ["${module.s3bucket_quarantine.arn}/*"]
resources = ["${data.aws_s3_bucket.quarantine.arn}/*"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we restrict access to csi scoped objects?

e.g. something like "${data.aws_s3_bucket.quarantine.arn}/${local.csi}/*"

]

resources = ["${module.s3bucket_quarantine.arn}/*"]
resources = ["${data.aws_s3_bucket.quarantine.arn}/*"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we restrict access to csi scoped objects?

e.g. something like "${data.aws_s3_bucket.quarantine.arn}/${local.csi}/*"

resources = [
"${module.s3bucket_quarantine.arn}/test-data/*",
"${module.s3bucket_quarantine.arn}/pdf-template/*",
"${data.aws_s3_bucket.quarantine.arn}/test-data/*",
Copy link
Contributor

@mark-r-bjss mark-r-bjss Oct 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we restrict access to csi scoped objects?

e.g. something like "${data.aws_s3_bucket.quarantine.arn}/${local.csi}/test-data/*"

@mark-r-bjss
Copy link
Contributor

This should leave the existing bucket in place to allow a migration over of the aws_cloudwatch_event_rules that trigger processed based on scan results - or update them as well.

Copy link
Contributor

@mark-r-bjss mark-r-bjss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not safe to get rid of the quarantine bucket without updating the aws_cloudwatch_event_rules

Copy link
Contributor

@mark-r-bjss mark-r-bjss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not safe to get rid of the quarantine bucket without updating the aws_cloudwatch_event_rules

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.

4 participants