Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tdrd 339 automated or semi automated workflow for blocking i ps with malicious activity #579

Conversation

ian-hoyle
Copy link
Contributor

No description provided.

@ian-hoyle ian-hoyle marked this pull request as ready for review January 17, 2025 15:56
Copy link
Contributor

@TomJKing TomJKing left a comment

Choose a reason for hiding this comment

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

Looks good. Just one comment.

Once this is deployed should document the process for blocking an IP address. Should go into the: https://github.com/nationalarchives/tdr-dev-documentation-internal/tree/main/manual repo; and link to it from the BAU documentation

root_locals.tf Outdated
@@ -60,6 +60,8 @@ locals {

ip_allowlist = concat(local.developer_ip_list, local.trusted_ip_list)

ip_blocked_list = ""
Copy link
Contributor

Choose a reason for hiding this comment

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

Will the intention be to hardcode the ip address into the Terraform? Given this is a public repo, I'm not sure what the privacy implications are about this. The other IP addresses are stored in the tdr-configurations repo which is private.

I'd check with probably Kurtis about hardcoding an IP address into a public Github reop.

Copy link
Contributor

@TomJKing TomJKing left a comment

Choose a reason for hiding this comment

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

Just one query. Thanks.

@@ -60,6 +60,8 @@ locals {

ip_allowlist = concat(local.developer_ip_list, local.trusted_ip_list)

ip_blocked_list = module.tdr_configuration.terraform_config["ip_blocked_list"]
Copy link
Contributor

Choose a reason for hiding this comment

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

Bit confused. From this PR: https://github.com/nationalarchives/da-terraform-configurations/pull/47 these are in the da-terraform_configurations not the tdr_configuration.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The source for tdr_configuration is da-terraform-configurations

module "tdr_configuration" {
  source  = "./da-terraform-configurations"
  project = "tdr"
}

Copy link
Contributor

Choose a reason for hiding this comment

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

Didn't notice that.

Copy link
Contributor

@TomJKing TomJKing left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks

@ian-hoyle ian-hoyle merged commit f67ab04 into master Jan 22, 2025
2 checks passed
@ian-hoyle ian-hoyle deleted the TDRD-339-Automated-or-semi-automated-workflow-for-blocking-IPs-with-malicious-activity branch January 22, 2025 12:30
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.

2 participants