Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/branch-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: branch-validation

on:
pull_request:
branches:
- main

jobs:
branch-validation:
uses: nullplatform/actions-nullplatform/.github/workflows/branch-validation.yml@main
10 changes: 10 additions & 0 deletions .github/workflows/conventional-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: conventional-commit

on:
pull_request:
branches:
- main

jobs:
conventional-commit:
uses: nullplatform/actions-nullplatform/.github/workflows/conventional-commit.yml@main
15 changes: 15 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: release

on:
push:
branches:
- main

permissions:
contents: write
pull-requests: write

jobs:
release:
uses: nullplatform/actions-nullplatform/.github/workflows/release.yml@main
secrets: inherit
10 changes: 10 additions & 0 deletions .github/workflows/shellcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: shellcheck

on:
pull_request:
branches:
- main

jobs:
shellcheck:
uses: nullplatform/actions-nullplatform/.github/workflows/shellcheck.yml@main
14 changes: 14 additions & 0 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: trivy

on:
pull_request:
branches:
- main

permissions:
contents: read
security-events: write

jobs:
trivy:
uses: nullplatform/actions-nullplatform/.github/workflows/trivy-tofu-scan.yml@main
21 changes: 21 additions & 0 deletions aurora-postgres-server/deployment/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,26 @@ resource "aws_secretsmanager_secret_version" "master" {
})
}

# ---------------------------------------------------------------------------
# KMS key for Aurora storage encryption (customer managed, required by
# AVD-AWS-0079 — the default AWS-managed RDS key doesn't satisfy that check)
# ---------------------------------------------------------------------------

resource "aws_kms_key" "aurora" {
description = "Customer managed key for Aurora cluster storage encryption (${var.instance_name})"
enable_key_rotation = true

tags = {
"managed-by" = "nullplatform"
"service-id" = var.service_id
}
}

resource "aws_kms_alias" "aurora" {
name = "alias/nullplatform-aurora-${var.instance_name}"
target_key_id = aws_kms_key.aurora.key_id
}

# ---------------------------------------------------------------------------
# Aurora PostgreSQL cluster
# ---------------------------------------------------------------------------
Expand All @@ -85,6 +105,7 @@ resource "aws_rds_cluster" "main" {
vpc_security_group_ids = [aws_security_group.aurora.id]

storage_encrypted = true
kms_key_id = aws_kms_key.aurora.arn
port = 5432
skip_final_snapshot = true
deletion_protection = false
Expand Down