Repository navigation
feat(prod): enable verified TLS and the maintenance lock budget - #991
Conversation
terraform plan
Warning This plan DESTROYS resources in: prod. Merging applies it unattended. prod — 3 to add, 1 to change, 2 to DESTROYmodule.eks.data.aws_iam_policy_document.cluster_trust: Reading...
data.aws_iam_policy_document.efs_csi_trust: Reading...
data.aws_iam_openid_connect_provider.github: Reading...
data.aws_iam_policy_document.efs_csi_trust: Read complete after 0s [id=819195744]
module.network.data.aws_region.current: Reading...
module.ses.data.aws_region.current: Reading...
data.aws_caller_identity.current: Reading...
module.eks.data.aws_iam_policy_document.cluster_trust: Read complete after 0s [id=1029077455]
module.network.data.aws_region.current: Read complete after 0s [id=us-east-2]
module.ses.data.aws_region.current: Read complete after 0s [id=us-east-2]
data.aws_iam_policy_document.pod_trust: Reading...
module.eks.data.aws_iam_policy_document.node_trust: Reading...
data.aws_rds_engine_version.aurora_pg: Reading...
module.network.data.aws_availability_zones.available: Reading...
data.aws_iam_policy_document.pod_trust: Read complete after 0s [id=819195744]
module.eks.data.aws_iam_policy_document.node_trust: Read complete after 0s [id=2851119427]
data.aws_iam_policy_document.eso_trust: Reading...
data.aws_iam_policy_document.eso_trust: Read complete after 0s [id=819195744]
data.aws_caller_identity.current: Read complete after 0s [id=797781631727]
data.aws_iam_policy_document.openobserve: Reading...
data.aws_iam_policy_document.openobserve: Read complete after 0s [id=2652188337]
data.aws_iam_policy_document.otel_collector: Reading...
module.lake.data.aws_iam_policy_document.lake_tls_only: Reading...
data.aws_iam_policy_document.otel_collector: Read complete after 0s [id=1193716550]
module.lake.data.aws_iam_policy_document.lake_tls_only: Read complete after 0s [id=3960055703]
data.aws_iam_policy_document.fluent_bit: Reading...
data.aws_iam_policy_document.fluent_bit: Read complete after 0s [id=2978074842]
data.aws_iam_policy_document.eso: Reading...
data.aws_iam_policy_document.eso: Read complete after 0s [id=2178872705]
data.aws_iam_openid_connect_provider.github: Read complete after 0s [id=arn:aws:iam::797781631727:oidc-provider/token.actions.githubusercontent.com]
data.aws_iam_policy_document.lake_access: Reading...
data.aws_iam_policy_document.lake_access: Read complete after 0s [id=1033619361]
module.ses.data.aws_iam_policy_document.send: Reading...
module.ses.data.aws_iam_policy_document.send: Read complete after 0s [id=3767633194]
module.network.data.aws_availability_zones.available: Read complete after 0s [id=us-east-2]
data.aws_iam_policy_document.ci_deploy_prod_trust: Reading...
data.aws_iam_policy_document.ci_deploy_prod_trust: Read complete after 0s [id=4060172364]
data.aws_rds_engine_version.aurora_pg: Read complete after 0s [id=17.9]
data.aws_iam_policy_document.ci_deploy_prod: Reading...
data.aws_iam_policy_document.ci_deploy_prod: Read complete after 0s [id=2891227359]
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+ create
~ update in-place
-/+ destroy and then create replacement
Terraform will perform the following actions:
# aws_rds_cluster.prod will be updated in-place
~ resource "aws_rds_cluster" "prod" {
~ db_cluster_parameter_group_name = "default.aurora-postgresql17" -> "er-prod"
id = "er-prod"
tags = {}
# (62 unchanged attributes hidden)
# (1 unchanged block hidden)
}
# aws_rds_cluster_parameter_group.prod will be created
+ resource "aws_rds_cluster_parameter_group" "prod" {
+ arn = (known after apply)
+ description = "Prod Aurora parameters for DuckLake maintenance"
+ family = "aurora-postgresql17"
+ id = (known after apply)
+ name = "er-prod"
+ name_prefix = (known after apply)
+ region = "us-east-2"
+ tags_all = {
+ "Environment" = "prod"
+ "ManagedBy" = "terraform"
+ "Project" = "entity-resolution"
}
+ parameter {
+ apply_method = "pending-reboot"
+ name = "max_locks_per_transaction"
+ value = "1024"
}
}
# aws_secretsmanager_secret_version.db must be replaced
-/+ resource "aws_secretsmanager_secret_version" "db" {
~ arn = "arn:aws:secretsmanager:us-east-2:797781631727:secret:er/prod/shared/postgres-97WGM5" -> (known after apply)
+ has_secret_string_wo = (known after apply)
~ id = "arn:aws:secretsmanager:us-east-2:797781631727:secret:er/prod/shared/postgres-97WGM5|terraform-W97c8HtjP0m14x6LWqxm90VcMt" -> (known after apply)
~ secret_arn = "arn:aws:secretsmanager:us-east-2:797781631727:secret:er/prod/shared/postgres-97WGM5" -> (known after apply)
~ secret_string = (sensitive value) # forces replacement
~ version_id = "terraform-W97c8HtjP0m14x6LWqxm90VcMt" -> (known after apply)
~ version_stages = [
- "AWSCURRENT",
] -> (known after apply)
# (4 unchanged attributes hidden)
}
# aws_secretsmanager_secret_version.erserver must be replaced
-/+ resource "aws_secretsmanager_secret_version" "erserver" {
~ arn = "arn:aws:secretsmanager:us-east-2:797781631727:secret:er/prod/app/erserver-EtWotp" -> (known after apply)
+ has_secret_string_wo = (known after apply)
~ id = "arn:aws:secretsmanager:us-east-2:797781631727:secret:er/prod/app/erserver-EtWotp|terraform-ihKfdfWUGK7lOed6EnD1bv3j2i" -> (known after apply)
~ secret_arn = "arn:aws:secretsmanager:us-east-2:797781631727:secret:er/prod/app/erserver-EtWotp" -> (known after apply)
~ secret_string = (sensitive value) # forces replacement
~ version_id = "terraform-ihKfdfWUGK7lOed6EnD1bv3j2i" -> (known after apply)
~ version_stages = [
- "AWSCURRENT",
] -> (known after apply)
# (4 unchanged attributes hidden)
}
Plan: 3 to add, 1 to change, 2 to destroy.
|
f54cb2e to
8c9b261
Compare
8c9b261 to
799dd78
Compare
343d8c7 to
2525a59
Compare
2525a59 to
6907411
Compare
Dropping the reader (#1096, PR #1099) made two rows in these references false: prod Aurora is one Serverless v2 instance with no automatic failover. That matters here specifically, because this PR's static `max_locks_per_transaction` needs an instance reboot to activate — which on a single instance is an outage rather than a failover.
|
Rebased onto current Why it was rebased, and what that avoidedThe branch was six days stale and still carried the pre-#1099 form of count = 2 # writer + reader
identifier = "er-prod-${count.index + 1}"GitHub reported Confirmed against the fresh plan rather than inferred —
All 15 required contexts pass at that exact head. One thing has changed since this was writtenThe activation step — "restart the instances as required" — is no longer a I corrected two reference rows that #1096 had made false and that this PR What still blocks itUnchanged from the description, and all of it off-limits to an agent session:
Worth noting for whoever picks up (1): #1101 — ECR's "retain the last 30 And because this carries |
Closes #553
Require verified PostgreSQL TLS in production and configure the Aurora cluster lock budget for DuckLake maintenance. The shared and control-plane DSNs use
sslmode=verify-full&sslrootcert=/etc/ssl/rds/global-bundle.pem; the new cluster parameter group setsmax_locks_per_transaction=1024with pending-reboot activation.Merged as
ec16e8553689cb734d1b6317e60e29a78aa9f9d4on 2026-11-21 at 03:48:38 UTC; production cutover acceptance and the 30-minute post-merge watch are complete. On 2026-11-20 the operator updated the Terraform-ignored frontend secret, preserving unrelated fields, and authorized the production restart. The latest main is merged into this branch for refreshed validation and a new plan. Production web/API and dispatcher pods were observed Running and ready. The operator completed the persisted catalog DSN audit/update and verified both connections; parameter activation, workload reload, and isolated maintenance proof all passed; see the ledger.Production has a single Aurora instance: reboot activation causes a database outage. Terraform apply is CI-owned. Reviewed final PR plan run 44862733397: prod 3 add / 1 change / 2 immutable secret-version replacements; all other stacks unchanged. No database, instance, bucket or credential replacement. Squash subject explicitly includes
ALLOW-DESTROYfor those two secret-version replacements.The operator handles commands refused by the agent execution guard. Local preparation and historical evidence are in
.tools/prod-553/operator-steps.md; probe image references were refreshed from running pods and client dry-run passed; live execution succeeded and its isolated database was removed. TLS runtime capability shipped in #989 and #1005. The 14-day PITR decision is already recorded on #553.Rollback: restore the previous TLS query options and reload the workloads. No credential rotation is intended.
Post-merge ledger
Closed by: Codex · session
01a1fbe5-2539-76f2-8999-ac4007ac8460onbrians-MacBook-Pro· 2026-11-21T04:19:08Zmainis green with this change on it — mergeec16e8553689cb734d1b6317e60e29a78aa9f9d4; rust 44862998756, frontend 44862998496, infra 44862998450 and devcontainer 44862998372 succeeded. Production apply completed at 2026-11-21T03:53:29Z: 3 added / 1 changed / 2 old secret versions retired. Live acceptance passed and the post-merge watch completed after 04:18:38 UTC without new failures; later main head7426991falso has successful checks and production deploy 44864345806.images— n/a: this Terraform/reference-only change touches no image inputs; no image workflow was triggered.deployconverged — concurrent production deploy 44863604441 succeeded; operator captured serving APIer-server listeningat2026-11-21T03:57:30.146157Z. Dispatcher rollout succeeded after ESO refresh. Independently observed serving API/web 2/2 ready and dispatcher 1/1 ready, zero restarts after acceptance..tools/prod-553/operator-steps.md. ESO refresh precedes reload; catalog URL copies need their own transaction; single-instance reboot is an outage. No new product invariant was introduced.Specific to this change
be65fba0-9cb5-4eaf-805f-9433ea1bb9a3on 2026-11-20. Runtime verified-TLS connectivity passed in the isolated probe below.committed:truefor org01a1bf2f-f762-756e-8590-37e16fd0d096and dataset01a1bf2f-f79c-7105-9fb0-1fe632d5d141; bothtls:verify-full,connectivity:verified,otherFields:preserved. Evidence supplied in this session on 2026-11-21 UTC.er-prod-2; API readback available / group er-prod / in-sync, followed by probe SQL readbackmax_locks_per_transaction:1024.er maintainacceptance recorded on Prod environment — network, EKS, Aurora #553 — Jobapp/er-tls-probe-553independently observed Complete, 1/1 in 9 seconds. Operator logs show verified TLS, 1024 locks, successful isolated-catalog maintenance andisolated probe database removed. This proves the operation against Aurora, not performance on customer data.RetentionDays:14, clusteravailable, sole writerer-prod-2.Audit trail
Branch refresh merge commits created in this session:
2ac1a6d0,1bb0ad0f,a00847e3,0e7b3eee. Final squash merge:ec16e855. No follow-up PR was needed. Operator executed guarded AWS/Kubernetes writes and supplied the acceptance logs; Codex prepared and validated local helpers, landed the change, independently read projected-secret settings and pod/Job state, and completed the CI watch.