Skip to content

Feature/infrastructure security#153

Merged
abi-muller merged 13 commits into
release/web-securityfrom
feature/infrastructure-security
Feb 4, 2026
Merged

Feature/infrastructure security#153
abi-muller merged 13 commits into
release/web-securityfrom
feature/infrastructure-security

Conversation

@abi-muller

@abi-muller abi-muller commented Jan 27, 2026

Copy link
Copy Markdown
Contributor

review of the infrastructure/terraform code

  • removing unused terraform code
  • Overly permissive IAM permission (reducing permissions on IAM role)
    • PassRole ((infrastructure/modules/aws-core/iam-resources/iam.tf)
      • this was overly permissive which provides a precursor for potential privilege escalation
      • explicitly stated which resources its allowed access to
  • ECR Scanning (infrastructure/blocks/ecr/main.tf) (adding s3 encryption policies)
    - the version of ECR scanning we were using was about to be deprecated so opted for a new version
  • IAM inline policies in use (removing iam inline policies in use)
    • inline policies apply only to the resources to which they are attached which is discouraged as does not allow for a central management of permissions
    • moved to being separate managed policy resources that are attached
  • added encryption policies to unencrypted s3 buckets (adding s3 encryption policies)

not_resources = [
aws_iam_role.user_access_role.arn,
aws_iam_role.admin_access_role.arn
resources = [

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This seems more permissive?

@MotwaniM MotwaniM left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

question on why we're encrypting buckets the way we are

Comment thread infrastructure/blocks/s3/main.tf
@abi-muller
abi-muller merged commit c87037c into release/web-security Feb 4, 2026
7 checks passed
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.

3 participants