Skip to content

AWS

Self-Hosted Only

NetBlueprint Forge on Amazon Web Services

Copyright (c) 1998-2026 DigitalPrez, LLC. All rights reserved.

How to run NetBlueprint Forge’s containers in an AWS account: on Amazon EKS with the Helm chart, the main route, or on Amazon ECS with AWS Fargate, the lighter one. The same steps serve a customer in its own account and DigitalPrez, LLC in its own (../README.md, “The three modes”). Read ../README.md first: it holds what the application needs from any cloud, the defaults chosen, the settings and the placeholders. Written 2026-11-22.

Status

The images this guide uses run in production on DigitalPrez’s own Kubernetes cluster since 2026-11-27 (../digitalprez/RELEASES.md), and under Docker Compose (../compose/README.md, Status). The modules in kubernetes/ and serverless/ pass tofu validate with OpenTofu 1.13.9, which checks every argument against the provider’s schema; the chart was rendered with Helm 4.3.2 (../README.md, Status). Services and versions were checked against AWS’s documentation on 2026-11-22 (Sources). Steps that could not be checked carry Verify and a row in Open items.

The first real runs are walked step by step in VALIDATE.md, beside this guide: each step proves one thing this guide could only describe, and names the open item below that a pass closes.

What Runs Where

Part Cluster Route (kubernetes/) Serverless Route (serverless/)
API and worker Amazon EKS 1.37, Auto Mode, the chart in ../helm/netblueprint-forge Amazon ECS services on AWS Fargate, platform version 1.4.0
Load balancer and TLS Application Load Balancer made by EKS Auto Mode from the chart’s Ingress; certificate from AWS Certificate Manager Application Load Balancer made by the module; certificate from AWS Certificate Manager
How the API finds the worker The Kubernetes service forge-worker AWS Cloud Map private DNS, worker.<instance>.forge.internal
PostgreSQL Amazon RDS for PostgreSQL 18.6, one server per instance The same
Cache Amazon ElastiCache for Valkey 9.0, nodes, cluster mode off, TLS and an AUTH token The same
Folder of keys Amazon EFS, a file system per instance with an access point owned by user 1654, through the EFS CSI driver The same file system and access point, as an ECS volume mounted with the API task’s IAM role
Key-encryption key AWS KMS, a symmetric key per instance used through EKS Pod Identity (“The key service”) The same key, used through the API task role
Secrets AWS Secrets Manager, one secret per instance, copied into a Kubernetes secret at install AWS Secrets Manager, read by ECS into the containers’ environment
Registry Amazon ECR, scan on push, tags that cannot be overwritten The same
Logs Amazon CloudWatch Logs, through the CloudWatch Observability add-on with only its container logs switched on: one log group for the cluster, /aws/containerinsights/<name>/application, every instance together (Verify, Open item R6) CloudWatch Logs through the awslogs driver, a log group per instance
Network A VPC across three zones: public subnets for the load balancer, private subnets with a NAT gateway for the API, isolated subnets with no route out for the databases The same, and the worker in the isolated subnets

How It Fits Together

Browser ──HTTPS──► Application Load Balancer (public subnets)
sticky cookie, idle timeout 3600 s, /api/health
│
▼
API (private subnets) ── NAT ──► AI vendor, identity providers
│ │ │ │
│ │ │ └──► EFS access point: the folder of keys
│ │ └──────────► ElastiCache for Valkey (isolated subnets)
│ └──────────────────► RDS for PostgreSQL 18 (isolated subnets)
▼
Worker, port 5081: reached by the API only; no route out

Before You Start

# What Why
P1 An AWS account, and the right to create a VPC, EKS or ECS, RDS, ElastiCache, EFS, ECR, Secrets Manager, KMS keys, ACM certificates, load balancers, CloudWatch log groups, AWS Backup vaults, IAM roles and, on the serverless route, Cloud Map namespaces in it The modules create all of them
P2 OpenTofu 1.10 or later (or Terraform 1.10 or later), the AWS CLI v2, jq, Docker with buildx, and for the cluster route kubectl and Helm 3.19 or later (Helm 4 is current) The steps below use them
P3 Two DNS names for each instance, the workspace’s and the console’s (ops.<domain> unless console_host says otherwise), and the right to add records to their zone The certificate names both and is validated by DNS, and both names point at the load balancer (../README.md, “The platform console”)
P4 A place to keep the modules’ state: an S3 bucket with versioning, or OpenTofu’s state encryption with a KMS key The state holds every generated password. Never keep it on a laptop alone. The roots name no backend, so until you add one the state is a file in the route’s folder (deploy/.gitignore keeps it out of the repository). To add one, put a backend block in a file of your own named backend_override.tf, which is ignored too
P5 The engine archive named in worker/engine.lock.json, in .local/ The worker image will not build without it (../compose/README.md)

Build and Push the Images

Copy example.tfvars to my.tfvars in deploy/aws/kubernetes or deploy/aws/serverless and set region. The module’s name (default forge) is up to 10 lowercase letters and digits, and each instance’s key up to 16, which keeps the load balancers’ names within AWS’s 32 characters. The first apply makes the network and the registry only (instances = {}); the EKS cluster, or on the serverless route the VPC endpoints, come with the first instance:

Terminal window
tofu init
tofu apply -var-file=my.tfvars -var 'instances={}'
REGISTRY=$(tofu output -raw registry)
aws ecr get-login-password --region "$(tofu output -raw region)" | docker login --username AWS --password-stdin "$REGISTRY"

Then from the repository root, for the release being installed:

Terminal window
TAG=0.1.0
docker buildx build --platform linux/amd64 -f deploy/compose/Dockerfile.api -t "$REGISTRY/forge/api:$TAG" --push .
docker buildx build --platform linux/amd64 -f deploy/compose/Dockerfile.worker -t "$REGISTRY/forge/worker:$TAG" --push .

Write each image’s digest into the tfvars file (api_image, worker_image, as <registry>/forge/api@sha256:...): an instance runs a digest, never a tag. The repositories scan every image on push; read the findings before going on (aws ecr describe-image-scan-findings). Signing with AWS Signer is described in ECR’s documentation and is not set up by the modules (Open item 10).

The Cluster Route: Amazon EKS

1. Apply the Platform and the Instances

Copy kubernetes/example.tfvars, set region, and list the instances: one for a customer’s own account or the shared service, one per customer for dedicated instances. Each names its domain.

Terminal window
cd deploy/aws/kubernetes
tofu apply -var-file=my.tfvars

It makes the EKS cluster in Auto Mode, the EFS CSI driver as an EKS add-on (with EKS Pod Identity), and per instance: an RDS for PostgreSQL 18 server, an ElastiCache for Valkey replication group, an EFS file system and access point, an ACM certificate waiting for its DNS record, and a Secrets Manager secret that holds the instance’s settings. The passwords and keys are generated by the module and are in the state and the secret only. Whoever applies is made the cluster’s administrator; if someone else applies later, that access moves to them.

Add the certificate’s validation records to the zone (tofu output certificate_validation): one for the domain and, when the instance has a console, one for the console’s host, which the certificate names too. It is issued within minutes of the records appearing.

2. Connect to the Cluster, Once

Terminal window
aws eks update-kubeconfig --region "$(tofu output -raw region)" --name "$(tofu output -raw cluster_name)"
kubectl apply -f ingressclass.yaml -f network-policy.yaml
kubectl get nodes

ingressclass.yaml makes the IngressClass alb the chart’s Ingress names. network-policy.yaml switches on Auto Mode’s enforcement of NetworkPolicy, which is off until the amazon-vpc-cni ConfigMap in kube-system asks for it (EKS user guide, “auto-net-pol”, read). Both are Kubernetes objects, not EKS settings, which is why they are applied here and not by the modules. Auto Mode starts nodes when the first pods need them, so an empty list of nodes is normal at first.

3. Install an Instance With the Chart

For an instance called acme (the key in instances):

Terminal window
I=acme
kubectl create namespace "forge-$I"
# The settings go from Secrets Manager into the cluster without being printed or written to disk.
aws secretsmanager get-secret-value --secret-id "$(tofu output -json instance_secret_arns | jq -r --arg i "$I" '.[$i]')" \
--query SecretString --output text \
| jq --arg n "forge-settings" '{apiVersion:"v1", kind:"Secret", metadata:{name:$n}, stringData:.}' \
| kubectl -n "forge-$I" create -f -
# The authorities that sign RDS's certificates, for VerifyFull.
curl -fsS https://truststore.pki.rds.amazonaws.com/global/global-bundle.pem \
| jq -Rs --arg n "forge-db-ca" '{apiVersion:"v1", kind:"ConfigMap", metadata:{name:$n}, data:{"db-ca.pem":.}}' \
| kubectl -n "forge-$I" create -f -
tofu output -json helm_values | jq -r --arg i "$I" '.[$i]' > "$I.values.yaml"
helm upgrade --install forge ../../helm/netblueprint-forge -n "forge-$I" -f ../../helm/netblueprint-forge/values-aws.yaml -f "$I.values.yaml"

Verify: the address of RDS’s certificate bundle; it is the one AWS documents for commercial regions and differs in GovCloud (Open item 4).

The chart starts one API replica. When kubectl -n forge-$I get pods shows it ready, the database releases have run and the key file exists; raise api.replicas to 2 in the values file and run the helm upgrade again.

4. Point the Name At the Load Balancer

Terminal window
kubectl -n "forge-$I" get ingress forge -o jsonpath='{.status.loadBalancer.ingress[0].hostname}'

Add a CNAME (or a Route 53 alias) from the instance’s domain to that name, and another from its console host.

5. Check It

# Check Passes When
V1 curl -s https://<domain>/api/health "status":"ok" with the engine release of worker/engine.lock.json
V2 curl -sI https://<domain>/ content-security-policy and x-frame-options are present, and a AWSALB cookie is set
V3 kubectl -n forge-$I exec deploy/forge-worker -- node -e "fetch('https://example.com').then(()=>process.exit(1),()=>process.exit(0))" It exits 0: the worker cannot reach out
V4 Sign in, open a model, leave the page open for two minutes while someone else changes the model The change appears: the live channel works across both API replicas
V5 Start an assistant draft that runs for more than a minute The answer streams to the end
V6 Delete one API pod The page reconnects and nobody is signed out

The Serverless Route: Amazon ECS on AWS Fargate

1. Apply the Platform and the Instances

In my.tfvars, set the image digests and the instances. An HTTPS listener cannot use a certificate that is still waiting, so the certificates come first:

Terminal window
cd deploy/aws/serverless
tofu apply -var-file=my.tfvars -target=module.certificate
tofu output certificate_validation
# Add those records to the zone, then:
tofu apply -var-file=my.tfvars

The second apply waits for each certificate to be issued (up to 75 minutes), then makes, per instance, the same RDS server, cache, EFS file system and access point, and secret as the cluster route, and: ECS services on Fargate for the API and the worker; a Cloud Map namespace in which the worker is worker.<instance>.forge.internal; and an Application Load Balancer whose HTTPS listener uses AWS’s recommended policy ELBSecurityPolicy-TLS13-1-2-Res-PQ-2025-09, redirects HTTP, and sends to a target group that is sticky by cookie, idles out after 3600 seconds and checks /api/health.

The task definitions keep the design: readonlyRootFilesystem, every capability dropped, /tmp on a task volume, and the secrets read from Secrets Manager into the environment at start. Fargate makes task volumes owned by root with mode 0755 (ECS documentation, read), so each task starts with a short prepare container, the worker image run as root with every capability dropped, which opens /tmp to the task’s user and, in the API’s task, writes the RDS certificate bundle to /etc/forge/db/db-ca.pem. The bundle is the region’s (about 4.5 KB), read when the module is applied and carried in the task definition, so nothing is fetched at run time and a new bundle redeploys the tasks (Verify, Open item 5). The EFS volume is mounted with the API task’s IAM role; the worker has no task role at all. Fargate sizes start at 0.5 vCPU and 1 GiB for the API and 0.5 vCPU and 2 GiB for the worker, not measured.

The API service starts with one task (api_count = 1). Once /api/health answers, set api_count = 2 and apply again.

2. Point the Name At the Load Balancer, and Check It

Add a CNAME from the instance’s domain, and another from its console host, to its load balancer, tofu output load_balancer_dns_names. The listener sends every host to the API, which tells the console’s from the workspace’s itself. Checks V1, V2, V4 and V5 above apply as they are. For V3, ECS Exec is not enabled on the worker (it would need an agent with a way out); the worker’s security group has no egress rule but HTTPS to the VPC endpoints, and its subnets have no route out, which aws ec2 describe-route-tables shows. For V6, stop one API task.

What Fargate Cannot Do

  • It cannot add SYS_ADMIN, set a seccomp profile or size /dev/shm (ECS API reference, read). The layout check therefore says “not checked” on this route, whatever is decided on default F.
  • Image pulls, logs, secrets and EFS go through the task’s own network interface (read). The worker’s isolated subnets reach ECR, S3 and CloudWatch Logs through VPC endpoints, which the module makes.

How the Application’s Needs Are Met Here

Need (../README.md) On AWS
1. PostgreSQL 18 and a login with CREATEROLE RDS’s master user is NOSUPERUSER INHERIT CREATEDB CREATEROLE, a member of rds_superuser, without BYPASSRLS (read). Release 0004 can make forge_app and grant it to that login. Verify on 18.6 at the first install: select rolbypassrls from pg_roles where rolname = current_user answers f
2. Releases at start The chart’s start-up probe waits up to ten minutes; the ECS service’s health check grace period is 600 seconds
3. Shared folder of keys EFS with an access point that forces user and group 1654 and makes the root directory with mode 700; TLS on the mount
4. Sticky sessions, WebSockets, long requests ALB: WebSockets native; duration-based stickiness (AWSALB cookie); idle timeout 3600 s (the most is 4000) (read). No Service Connect: its default request timeout of 15 seconds would cut a stream (read)
5. Cache over TLS with a password ElastiCache for Valkey with in-transit encryption and an AUTH token; Amazon’s certificates are trusted by the image’s own store
6. Worker with no way out Cluster route: a NetworkPolicy that allows no egress, enforced once network-policy.yaml is applied (step 2; check V3 proves it). Serverless route: no egress rule but HTTPS to the VPC endpoints, subnets with no route out, and an S3 endpoint that allows only reads of ECR’s layer bucket. The four interface endpoints keep AWS’s allow-all policy (Open item R16)
7. Forwarded headers The ALB appends the caller’s address to X-Forwarded-For (read) and connects from its own addresses in the public subnets: Proxy__KnownNetworks__0..2 are the three public subnets, Proxy__ForwardLimit is 1
8. Health route The target group checks /api/health; the chart’s liveness probe only checks that the port is open

The Three Modes on AWS

  • Self-hosted: the customer applies either route in its own account with one instance. DigitalPrez supplies the images and the modules; the customer holds the state and every secret.
  • Managed, shared: DigitalPrez applies the cluster route in its own account with one instance, shared, whose organizations are its customers.
  • Managed, dedicated: DigitalPrez adds one instance per customer to the same cluster: its own namespace, database server, cache, EFS file system and secret. A customer that needs its own cluster or account gets a separate apply of the same module.

Backups, Logs and Patching

  • Database: automated backups kept 35 days (the most; read) with point-in-time restore, which always makes a new server. Restore one before real data goes in.
  • Folder of keys: an AWS Backup plan for the EFS file system, kept apart from the database’s backups (AWS Backup covers EFS; read). Losing it loses every sealed value.
  • Logs: CloudWatch Logs, kept 90 days. On the cluster route the add-on’s metrics, Application Signals and node logs are switched off: Auto Mode ships no container logs by itself, and the add-on by default collects far more than logs.
  • Patching: the images on the patch clock (brief 8.2); RDS minor versions with automatic minor upgrades in the maintenance window (after AWS upgrades a server, raise engine_version in modules/database to match, or the next plan tries to go back); ElastiCache engine updates in its window; Auto Mode replaces nodes within 21 days (read); EKS 1.37 is in standard support (read), and the cluster must be upgraded before its standard support ends.

Taking an Instance, or Everything, Down

The modules guard what must not be lost by accident, so a tofu destroy, or an instance taken out of instances, stops until each guard is lifted by hand. VALIDATE.md, step E20, has the commands.

  • The database has deletion protection on. Set deletion_protection = false and apply first. The destroy then takes a final snapshot, <name>-<instance>-final, which stays, and is billed, until you delete it.
  • The repositories cannot be removed while they hold images. Delete the images first.
  • The backup vault of the folder of keys cannot be removed while it holds recovery points. Delete them first: after that, the keys of that instance exist nowhere.
  • The KMS key is only scheduled for deletion, 30 days on (“The key service”).
  • On the cluster route uninstall the chart first, so that Auto Mode removes the load balancer it made from the Ingress; the modules do not know of it.

AWS GovCloud (US)

  • AWS Marketplace in GovCloud lists no container products (docs/NOTES.md, “Hosting and delivery”). A government customer applies these modules itself, or uses the single-server route.
  • Aurora PostgreSQL 18 is in GovCloud (read). RDS for PostgreSQL 18 in GovCloud is shown only indirectly (Open item 7); check with aws rds describe-db-engine-versions --engine postgres --region us-gov-west-1.
  • ElastiCache for Valkey and KMS are in both GovCloud regions (read). Use the FIPS endpoints there (AWS_USE_FIPS_ENDPOINT=true).
  • Whether EKS Auto Mode is in GovCloud was not checked (Open item 8). Without it, use EKS with managed node groups.

The Platform Console

What is the same on every cloud is in ../README.md, “The platform console and the first operator”. On AWS:

  • Mode. Set platform_mode = "managed" on DigitalPrez’s own accounts; it is self-hosted by default, for a customer’s.

  • The console’s host. Each instance’s console is at ops.<domain> unless its console_host names another ("" for none). The instance’s ACM certificate names it too, so adding or removing a console replaces the certificate; its CNAME points at the same load balancer as the workspace’s.

  • The first operator’s password, on the cluster route. Switch on the chart’s keys reader for a few minutes: a pod that only sleeps, with the folder of keys mounted, as the one user that may read the file. Read the file through kubectl exec, whose output does not reach the container logs CloudWatch collects:

    Terminal window
    helm upgrade forge ../../helm/netblueprint-forge -n "forge-$I" --reuse-values --set keysReader.enabled=true
    kubectl -n "forge-$I" wait --for=condition=Ready pod/forge-keys-reader --timeout=5m
    kubectl -n "forge-$I" exec forge-keys-reader -- cat /keys/first-operator-password.txt
    # Sign in at https://ops.<domain>: the console asks for a password of your own and an authenticator app. Then:
    kubectl -n "forge-$I" exec forge-keys-reader -- rm /keys/first-operator-password.txt
    helm upgrade forge ../../helm/netblueprint-forge -n "forge-$I" --reuse-values --set keysReader.enabled=false
  • The first operator’s password, on the serverless route. Fargate has no way into the API’s container, so each instance has a keys reader task: the worker’s image, the folder of keys mounted at /keys, no log configuration at all, and a life of 15 minutes. The cluster keeps no record of an exec session. You need AWS CLI 2.3.6 or later, the Session Manager plugin, and ecs:RunTask, iam:PassRole, ecs:ExecuteCommand and ecs:DescribeTasks:

    Terminal window
    C="<name>-$I"
    NET=$(tofu output -json run_task_network | jq -r --arg i "$I" '.[$i]')
    TASK=$(aws ecs run-task --cluster "$C" --launch-type FARGATE --enable-execute-command \
    --task-definition "$(tofu output -json keys_reader_task_definitions | jq -r --arg i "$I" '.[$i]')" \
    --network-configuration "$NET" --query 'tasks[0].taskArn' --output text)
    # Wait until the task's ExecuteCommandAgent is RUNNING (aws ecs describe-tasks), then:
    aws ecs execute-command --cluster "$C" --task "$TASK" --container reader --interactive --command "cat /keys/first-operator-password.txt"
    # Sign in at https://ops.<domain>, then:
    aws ecs execute-command --cluster "$C" --task "$TASK" --container reader --interactive --command "rm /keys/first-operator-password.txt"
    aws ecs stop-task --cluster "$C" --task "$TASK"

    The reader’s root file system is writable, alone of this route’s containers, because ECS documents a read-only root as not supported with ECS Exec (read). Verify (Open item R15): that the exec agent runs with every capability dropped, reaches Session Manager through the NAT gateway, and that cat reads the file through the access point.

  • The way back in. When every operator is locked out, run operator reset, then read the new first password as above. Cluster route: kubectl -n "forge-$I" exec deploy/forge-api -c api -- dotnet NetBlueprint.Registry.Api.dll operator reset <username>, which needs no shell. Serverless route, a one-off run of the API’s own task with its command replaced; the entry point (dotnet NetBlueprint.Registry.Api.dll) stays:

    Terminal window
    aws ecs run-task --cluster "$C" --launch-type FARGATE \
    --task-definition "$(tofu output -json api_task_definitions | jq -r --arg i "$I" '.[$i]')" \
    --network-configuration "$NET" \
    --overrides '{"containerOverrides":[{"name":"api","command":["operator","reset","<username>"]}]}'

    check-engine, after the engine pin moves, runs the same way with "command":["check-engine"].

The Key Service

The key that wraps every organization’s data key (the KEK) is in AWS KMS (docs/architecture/key-management.md, “AWS KMS”; DECISIONS.md O-23).

  • One key per instance. It is symmetric (SYMMETRIC_DEFAULT), for encrypt and decrypt, with automatic rotation on, which keeps its ARN. Its alias is alias/<name>/<instance>, for people. The API is given the key’s ARN (tofu output kms_keys), never the alias: an alias can be pointed at another key, and the API refuses one at start.
  • The API may use it and nothing more: kms:Encrypt and kms:Decrypt on that key, only with the encryption context purpose = forge-dek. Administrators and users of the key are kept apart by IAM; the key policy is AWS’s default, and a stricter one is the owner’s choice.
  • Cluster route: EKS Pod Identity gives the role to the service account forge-api in forge-<instance>; Auto Mode carries its agent (read). Apply the modules before helm install or helm upgrade: a pod gets its credentials only when it is made. kubectl describe pod on an API pod shows the eks-pod-identity-token volume (Verify, Open item R13).
  • Serverless route: the permission is on the API task role, which the operator reset and check-engine runs share. KMS is reached through the NAT gateway.
  • Settings: Encryption__Kek=aws-kms and Encryption__KmsKey=<ARN>, in helm_values and the task definition. In GovCloud set kms_fips_endpoint = true, which adds Encryption__AwsUseFipsEndpoint=true.
  • A key in KMS is not deleted at once. A destroy, or an instance taken out of instances, only schedules the key’s deletion after 30 days, which can be cancelled until then. While it waits the key works for nothing, and once it is gone every sealed value is lost for good. Never set key_service = false on an instance that has used its key.
  • An instance that used the key file before. Move it with one API replica (api_count = 1, or api.replicas: 1 on the cluster route): during a rollout, a replica still on the file cannot open a data key a new one wrapped under KMS. Apply, then helm upgrade on the cluster route; on the serverless route the new task definition rolls out by itself. The API keeps forge-kek.key as an earlier KEK until the background re-encryption has rewrapped every data key under the KMS key (minutes; its log says how many). Only then move the file out of the folder of keys; the EFS backups still hold it until they expire.
  • A customer’s own key for one organization (O-26) is a setting an operator adds afterwards (Encryption__CustomerKeys, docs/architecture/key-management.md, AWS step 8). The modules do not make it.

Placeholders

These sections are written when the work lands in develop (../README.md, “Placeholders”).

  • K1, the key-encryption key in AWS KMS. Written: “The key service” above.
  • K2, sign-in methods. Passwords, passkeys, the authenticator app and each organization’s own single sign-on (OpenID Connect or SAML 2.0) need no setting.
    • Passkeys are bound to the instance’s host name: moving an instance to another host name leaves its people’s passkeys behind.

    • Microsoft, Google and Apple accounts, self sign-up, and the operators’ single sign-on and breach check are optional, and are variables of the modules on both routes: sign_in, operator_sign_on and breach_check on the instance, and the secrets in instance_secrets, from a secrets.tfvars of your own, copied from secrets.tfvars.example. ../README.md, “Sign-in registrations and the operators’ single sign-on”, describes them; tofu output registration_addresses gives the addresses to register with each provider. A plan refuses half a registration, self sign-up on a self-hosted platform, and an entry of instance_secrets that names no instance.

    • Where the secrets are. Keys of the instance’s own secret in Secrets Manager (instance_secret_arns), beside the four it always has, each there only when it is set: SignIn__Microsoft__ClientSecret, SignIn__Google__ClientSecret, SignIn__Apple__PrivateKey and Platform__SingleSignOn__ClientSecret. A secret’s value may be 65,536 bytes (Secrets Manager quotas, read); with all eight keys this one is under 2,000.

    • After a change, on the cluster route. A pod reads its settings when it starts, so the secret goes into the cluster again and the release is upgraded with the new values:

      Terminal window
      tofu apply -var-file=my.tfvars -var-file=secrets.tfvars
      aws secretsmanager get-secret-value --secret-id "$(tofu output -json instance_secret_arns | jq -r --arg i "$I" '.[$i]')" \
      --query SecretString --output text \
      | jq --arg n "forge-settings" '{apiVersion:"v1", kind:"Secret", metadata:{name:$n}, stringData:.}' \
      | kubectl -n "forge-$I" replace -f -
      tofu output -json helm_values | jq -r --arg i "$I" '.[$i]' > "$I.values.yaml"
      # Add --set api.replicas=2 if you had raised it by hand: the file is written afresh.
      helm upgrade forge ../../helm/netblueprint-forge -n "forge-$I" -f ../../helm/netblueprint-forge/values-aws.yaml -f "$I.values.yaml"
      # When only a secret changed, nothing in the release did, and the pods must be told:
      kubectl -n "forge-$I" rollout restart deploy/forge-api
    • After a change, on the serverless route. The apply does it: a new id, or a secret set for the first time, makes a new revision of the API’s task definition, which the service rolls out. A new value under a key the task already reads, such as a renewed client secret, changes no task definition; start the tasks again with aws ecs update-service --cluster "<name>-$I" --service api --force-new-deployment. The one-off runs of the API’s task (operator reset, check-engine, set-up) see the same settings. The task definition now waits for the secret’s value, so a first apply makes it after the database and the cache; there is nothing to do about that.

    • Apple’s key is several lines. On the cluster route it travels as it is. On the serverless route ECS reads it from a JSON key of the secret into the environment, and its documentation does not say that line breaks survive that (Verify, Open item R17). If they do not, give the key in secrets.tfvars on one line with each line break written as \\n, which the API reads too.

  • K3, platform operators. Written: “The platform console” above. The operators’ single sign-on and breach check are settings of K2.
  • K4, AI vendors. Placeholder. Expected: the settings of the instance’s own AI account, and the addresses the API must reach through the NAT gateway.

Open Items and Risks

# Item Status Where
R1 Nothing has been applied or run Open Everything
R2 The first administrator when sample data is off: the API’s set-up command makes the organization and prints the administrator’s invitation link (help, Deploying, Settings). It ran in a container under Compose on 2026-11-23 (../compose/README.md), not yet on this route Verify After step 3 of either route
R3 EKS Auto Mode enforces NetworkPolicy once the amazon-vpc-cni ConfigMap asks for it (read); network-policy.yaml does that, and check V3 proves it Verify Step 2, need 6
R4 The RDS certificate bundle’s address, and GovCloud’s own bundle (rds-ca-rsa4096-g1 is named for GovCloud; read) Verify Step 3
R5 The prepare container: that both task volumes start owned by root, and that the API can then write /tmp and read the bundle Verify Serverless step 1
R6 Auto Mode ships no container logs by itself (read). The modules add the CloudWatch Observability add-on, which AWS lists as supported on Auto Mode, with everything but container logs switched off. To see on a cluster: that its Fluent Bit runs on Auto Mode’s nodes, that the lines arrive in the one group, and that no pod is instrumented (VALIDATE.md, E17) Verify What runs where
R7 RDS for PostgreSQL 18 in GovCloud Verify GovCloud
R8 EKS Auto Mode in GovCloud Verify GovCloud
R9 The ALB annotations EKS Auto Mode honours: its list of unsupported annotations names none the chart uses (read), which is not the same as seeing them work Verify ../helm/netblueprint-forge/values-aws.yaml
R15 The keys reader on Fargate: that ECS Exec’s agent starts with every capability dropped and reaches Session Manager through the NAT gateway, and that cat and rm work on the file through the access point Verify serverless/keys-reader.tf
R14 The # Verify: lines in the modules: the node class’s security group, an access entry for a role with a path, the EFS CSI driver mounting without IAM, ElastiCache’s primary endpoint for Valkey, the add-on’s version taking the settings that switch its extras off (8.0.0 or later), that RDS’s own backups do not need the isolated subnets’ way to S3, and the layer bucket’s name in GovCloud Verify kubernetes/cluster.tf, modules/keys, modules/cache, serverless/main.tf
R16 On the serverless route the interface endpoints (ECR, CloudWatch Logs, Secrets Manager) keep AWS’s allow-all policy: a worker that held credentials from outside could reach another account’s logs, secrets or repositories through them. The worker has no credentials of its own. Endpoint policies that name this account would close it Open Need 6
R17 That ECS gives a container a JSON key’s value with its line breaks, as Apple’s key has. “Pass Secrets Manager secrets through Amazon ECS environment variables” does not say (read). VALIDATE.md, S2 on the serverless route, shows it: Apple is listed only when the API has the key, and S4 proves the key is whole Verify Placeholders, K2
R10 Image signing with AWS Signer is not set up Open Build and push
R11 Fargate likely refuses unprivileged user namespaces (third-party reports only; search) Accepted: default F Serverless route
R12 The application’s script was not compressed on the first load (default A) Closed 2026-11-22: the API sends the Brotli or gzip copy the build writes; the workspace’s first load is about 187 KB and the console’s 153 KB, against 219 KB and 178 KB behind nginx ../README.md, default A
R13 That EKS still gives a pod its Pod Identity credentials when its service account and the pod set automountServiceAccountToken: false, as the chart does Verify The key service

Sources

Read on 2026-11-22. “Read” means the page itself was fetched and read; “search” means seen only in search results.

Source What It Gives How It Was Read
docs.aws.amazon.com/AmazonRDS/latest/PostgreSQLReleaseNotes/postgresql-release-calendar.html RDS for PostgreSQL 18: released 2025-11-14, minors to 18.6 (2026-08-25) Read
docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Appendix.PostgreSQL.CommonDBATasks.Roles.rds_superuser.html and …Roles.View.html The master user’s attributes; only rdsadmin bypasses RLS Read
aws.amazon.com/about-aws/whats-new/2026/06/amazon-aurora-postgresql-major-version-18/ Aurora PostgreSQL 18 in commercial and GovCloud regions Read
docs.aws.amazon.com/govcloud-us/latest/UserGuide/govcloud-rds.html Engine versions vary by region; GovCloud’s certificate authority Read
docs.aws.amazon.com/AmazonElastiCache/latest/dg/supported-engine-versions.html, SupportedCommands.html, in-transit-encryption.html Valkey 7.2 to 9.1; commands; TLS 1.2 minimum Read
docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ContainerDefinition.html, API_KernelCapabilities.html, API_LinuxParameters.html Read-only root, capabilities, no seccomp or /dev/shm on Fargate Read
docs.aws.amazon.com/AmazonECS/latest/developerguide/fargate-task-networking.html Pulls, logs, secrets and EFS through the task’s interface Read
docs.aws.amazon.com/AmazonECS/latest/developerguide/efs-volumes.html EFS on Fargate, transit encryption, access points Read
docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect-concepts-deploy.html Service Connect’s 15-second default request timeout Read
docs.aws.amazon.com/elasticloadbalancing/latest/application/sticky-sessions.html, edit-load-balancer-attributes.html, x-forwarded-headers.html Stickiness, idle timeout 1 to 4000 s, X-Forwarded-For appended Read
docs.aws.amazon.com/eks/latest/userguide/kubernetes-versions.html, automode.html EKS 1.34 to 1.37 in standard support; Auto Mode Read
docs.aws.amazon.com/apprunner/latest/dg/apprunner-availability-change.html App Runner closed to new customers, so not a route here Read
docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithAutomatedBackups.BackupRetention.html, aws-backup/latest/devguide/backup-feature-availability.html Backup retention to 35 days; AWS Backup for EFS Read
docs.aws.amazon.com/AmazonECR/latest/userguide/image-scanning.html, image-signing.html Scanning and signing Read
docs.aws.amazon.com/eks/latest/userguide/pod-identities.html and the Auto Mode pages EKS Pod Identity; its agent built into Auto Mode Read
AWS KMS developer guide (rotation, deleting keys, encryption context conditions) Rotation keeps the ARN; a deleted key waits out its window (the modules set 30 days); kms:EncryptionContext: conditions Read by the module writer on 2026-11-22; the pages were not recorded one by one
github.com/hermes-agent issue 151657 and finnor-ai PR 129 unshare(CLONE_NEWUSER) refused on Fargate Search
AWS Secrets Manager quotas; Amazon ECS, “Pass Secrets Manager secrets through Amazon ECS environment variables” A secret’s value may be 65,536 bytes. ECS reads one JSON key with <arn>:<key>::, at container start only, so a new value under a key already read needs a new deployment. Nothing on line breaks in a value (Open item R17) Read by the module writer on 2026-11-22, as the fetch tool extracted the page; the addresses were not recorded