Skip to content

[HOTE-840] feat: add network firewall rules#91

Open
mikeeq wants to merge 48 commits intomainfrom
feature/hote-840/Enable-Network-firewall
Open

[HOTE-840] feat: add network firewall rules#91
mikeeq wants to merge 48 commits intomainfrom
feature/hote-840/Enable-Network-firewall

Conversation

@mikeeq
Copy link
Copy Markdown
Collaborator

@mikeeq mikeeq commented Apr 2, 2026

Description

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.

Copilot AI review requested due to automatic review settings April 2, 2026 09:31
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR currently removes environment-specific Terragrunt overrides for the dev/hometest-app/staging deployment (notably the custom domain/certificate overrides and the “hello-world” lambda override). As submitted, the changes don’t align with the stated goal of adding network firewall rules.

Changes:

  • Removed the staging environment’s “hello-world” lambda override from terragrunt.hcl.
  • Deleted domain.hcl, which previously overrode staging domains and enabled per-environment certificates.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
infrastructure/environments/dev/hometest-app/staging/terragrunt.hcl Removes the staging-specific lambda override; leaves an empty inputs map.
infrastructure/environments/dev/hometest-app/staging/domain.hcl Deletes domain/certificate overrides that app.hcl uses to configure env/api domains and cert creation.
Comments suppressed due to low confidence (1)

infrastructure/environments/dev/hometest-app/staging/domain.hcl:1

  • domain.hcl is read by infrastructure/environments/_envcommon/app.hcl to override env_domain/api_domain and to enable per-environment ACM certificates. Removing this file will revert staging to the default domain pattern (and disable create_cloudfront_certificate/create_api_certificate). If you still need staging.hometest.service.nhs.uk / api.staging.hometest.service.nhs.uk with dedicated certs, keep this file (or migrate these settings to the new location/mechanism).

Comment on lines 27 to 28
inputs = {
# Hello World Lambda - simple health check (dev environment only)
lambdas = {
"hello-world-lambda" = {
description = "Hello World Lambda - Health Check"
api_path_prefix = "hello-world"
handler = "index.handler"
timeout = 30
memory_size = 256
environment = {
NODE_OPTIONS = "--enable-source-maps"
ENVIRONMENT = basename(get_terragrunt_dir())
}
}
}
}
Copy link

Copilot AI Apr 2, 2026

Choose a reason for hiding this comment

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

This PR removes domain.hcl and the hello-world lambda override, but the PR title/description indicate “Add network firewall rules”. Either update the PR metadata to match what’s actually changing here, or include the missing network firewall rule changes so reviewers can assess the full intended impact.

Copilot uses AI. Check for mistakes.
Comment on lines 27 to 28
inputs = {
# Hello World Lambda - simple health check (dev environment only)
lambdas = {
"hello-world-lambda" = {
description = "Hello World Lambda - Health Check"
api_path_prefix = "hello-world"
handler = "index.handler"
timeout = 30
memory_size = 256
environment = {
NODE_OPTIONS = "--enable-source-maps"
ENVIRONMENT = basename(get_terragrunt_dir())
}
}
}
}
Copy link

Copilot AI Apr 2, 2026

Choose a reason for hiding this comment

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

inputs is now an empty map. If this environment no longer has any overrides, consider removing the inputs block entirely to reduce noise.

Also, this file’s header comments currently point to “./domain.hcl” and describe this as the “dev” environment, but domain.hcl is deleted in this PR and env.hcl sets environment="staging"; please update the comments (or restore domain.hcl) so the configuration is self-consistent.

Copilot uses AI. Check for mistakes.
@sonarqubecloud
Copy link
Copy Markdown

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