Skip to content

Commit 6e8cba3

Browse files
committed
[ELI-702] pulling in main
2 parents 547344d + 54d5ee7 commit 6e8cba3

8 files changed

Lines changed: 223 additions & 264 deletions

File tree

infrastructure/modules/lambda/outputs.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,7 @@ output "aws_lambda_invoke_arn" {
1616
output "lambda_cmk_arn" {
1717
value = aws_kms_key.lambda_cmk.arn
1818
}
19+
20+
output "lambda_signing_profile_name" {
21+
value = aws_signer_signing_profile.lambda_signing.name
22+
}

infrastructure/modules/lambda/signing.tf

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,3 @@ resource "aws_lambda_code_signing_config" "signing_config" {
2323

2424
description = "Only allow Lambda bundles signed by our trusted signer profile"
2525
}
26-
27-
output "lambda_signing_profile_name" {
28-
value = aws_signer_signing_profile.lambda_signing.name
29-
}

infrastructure/stacks/api-layer/lambda.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ module "eligibility_signposting_lambda_function" {
3535
api_domain_name = local.api_domain_name
3636
}
3737

38+
39+
# Needed by github workflows to sign the lambda artifacts
40+
output "signing_profile_name" {
41+
value = module.eligibility_signposting_lambda_function.lambda_signing_profile_name
42+
}
43+
3844
# -----------------------------------------------------------------------------
3945
# Secret rotation lambdas
4046
# -----------------------------------------------------------------------------

infrastructure/stacks/iams-developer-roles/github_actions_policies.tf

Lines changed: 149 additions & 200 deletions
Large diffs are not rendered by default.

infrastructure/stacks/iams-developer-roles/iams_permissions_boundary.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ data "aws_iam_policy_document" "permissions_boundary" {
9191

9292
# Kinesis Stream - audit log streaming
9393
"kinesis:*",
94+
# signing - code signing for Lambda functions
95+
"signer:*",
9496

9597
# CodeSigning
9698
"signer:*",
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
locals {
22
stack_name = "iams-developer-roles"
3+
lambda_signing_profile_name = "${terraform.workspace == "default" ? "" : "${terraform.workspace}"}EligibilityApiLambdaSigningProfile"
4+
lambda_signing_profile_arn = "arn:aws:signer:${var.default_aws_region}:${data.aws_caller_identity.current.account_id}:/signing-profiles/${local.lambda_signing_profile_name}"
35
}

poetry.lock

Lines changed: 59 additions & 59 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ pytest-docker = "^3.2.3"
5757
stamina = "^25.2.0"
5858
pytest-freezer = "^0.4.9"
5959
moto = "^5.1.19"
60-
requests = "^2.32.5"
60+
requests = "^2.33.0"
6161
jsonschema = "^4.25.1"
6262
behave = "^1.3.3"
6363
python-dotenv = "^1.2.1"

0 commit comments

Comments
 (0)