Skip to content

Releases

v1.3.3

Choose a tag to compare

@github-actions github-actions released this 25 Nov 07:36

Changes

  • Exit codes: a run with analysis warnings now exits 1 when --fail-on finds something at its threshold or a budget is breached. Exit 2 is now only for warnings when no gate fails. Before, warnings always won with 2. CI that branches on exit 2 for such runs now gets 1 (#132)
  • GitHub Action: no-synth defaults to "true". cdk synth runs the scanned repo's own CDK app, so with synth on, scanning a fork's pull request runs untrusted code. Set no-synth: "false" only for a repo whose code you trust. The CLI default is unchanged. REFERENCE has a new "CDK synth runs repo code" section (#131)

Fixes

  • CF-S3-001 and CF-RDS-004 now read string booleans: a PubliclyAccessible: "true" RDS instance was missed, and a block written with "true" values was reported as missing (#131)
  • The file walk and template discovery skip symlinked directories, and any symlink that points outside the scanned tree (#131)
  • Templates, Terraform files and plans, baselines, and the Python rg fallback are read with a size cap. Only regular files are read, so a FIFO or /dev/zero cannot hang or exhaust the scan. An oversize file becomes a warning or error, not a parse (#131)
  • V2 --templates checks only real CloudFormation templates, as V1 does, so workflow YAML next to them gets no CF findings (#131)
  • V2 reports an unreadable repo root as a warning instead of crashing (#131)
  • The Terraform price region keeps looking past a provider block whose region it cannot read (#131)
  • An unknown severity threshold raises an error instead of turning the filter off (#131)
  • The LLM verdict cache is keyed by repo and capped at 256 batches (#131)
  • CI actions are pinned to commit SHAs (#131)

v1.3.2

Choose a tag to compare

@github-actions github-actions released this 24 Nov 09:54

Changes

  • The HTML report has three tabs: Summary (opens first), Findings and Well-Architected answers. Summary draws the findings as charts: a severity ring, Well-Architected questions met per pillar, findings per pillar and per theme as bars split by severity, and the top fixes and quick wins as cards. Every view stays reachable without script (#129)

v1.3.1

Choose a tag to compare

@github-actions github-actions released this 24 Nov 08:54

Fixes

  • Price List bulk API: the offer CSV is served as application/octet-stream, so every bulk fetch failed with can't concat str to bytes and no price was estimated. It is now read as UTF-8 (#127)
  • Ollama: prompts are sized to the model's trained context, read from /api/show, instead of OLLAMA_NUM_CTX alone. Ollama runs llama3:8b at 8192 tokens whatever num_ctx asks and cut longer prompts from the middle, so verdict replies were not JSON. Verdicts now go in smaller batches on a short context; hypotheses are skipped with a reason when the rule catalog alone does not fit. Long-context models are unchanged (#127)

v1.3.0

Choose a tag to compare

@github-actions github-actions released this 23 Nov 19:32

Changes

  • Stack cost without a usage file: usage-billed resources (Lambda, S3, on-demand DynamoDB, log groups, APIs, queues, topics) are priced at a documented low-traffic profile and shown as an illustration, not a bill. It raises the headline (headline_monthly_usd, illustrated_monthly_usd) but never total_monthly_usd, budgets or --compare-cost. A usage file replaces it (#125)
  • Flat prices for CloudWatch alarms ($0.10, high resolution $0.30), dashboards after the three free ones ($3) and WAFv2 web ACLs ($5 + $1 per rule). API Gateway authorizers, gateway responses and uncached stages, CloudFront OAC, WAFv2 logging, standard SSM parameters, the first two budgets and Cognito app clients count as free. One line names what has no cost model yet; prices_unavailable says when no price could be used instead of showing $0 (#125)
  • Ollama: calls take turns, Reviewing <pillar> prints when that call starts, LLM_TIMEOUT_S (default 300), JSON replies requested. In V2 the pillars that answered keep their verdicts when another fails (llm.status partial); hypotheses run only when every pillar answered (#125)
  • Progress prints one line per phase; rules report Checking rules (n/total, lang) (#125)
  • The HTML report opens with the summary and shows one card per rule and severity, with locations collapsed (#125)

v1.2.0

Choose a tag to compare

@github-actions github-actions released this 23 Nov 12:20

Changes

  • New template checks for CloudFormation and Terraform, all Low: CF-SUST-004..007 (accelerators with no utilization alarm or schedule, instance store with no durable store, EBS volumes with no shared store, backups of cache or temp data), CF-TAG-002 (created-by and owner tags; CDK app tags and Terraform default_tags count), CF-OBS-001..003 (dependency alarms, workload-metric alarms, tracing), CF-ALARM-004 (an alarm that starts automation), and CF-DEMAND-001/002 (an API or a directly invoked Lambda with no throttle or buffer, reported for cost and for sustainability). CF-VPC-002/003 also answer COST08-BP02 (#123)
  • --live-account reads, all read-only: RDS Reserved Instances, ElastiCache reserved nodes and Savings Plans (COST-005/009/016) when the scan has that compute; the account-level FSBP controls S3.1, EC2.7 and IAM.7 as new findings ACCT-001..003; Macie (SEC-065) and Storage Lens (COST-018); and, behind the rules.org gate, a Cost and Usage Report or Data Exports export (ACCT-004). A denied read is a warning, never a finding (#123)
  • The usage file can state usage signals (read_write_ratio, avg_cpu_percent, get_parameter_tps, and a workload: block with traffic_pattern, user_regions, upload_regions). REL-011, OPS-023, SUST-002, SUST-003, PERF-011 and PERF-014 now report only when it does; before, they fired on a CDK construct alone. SUST-004 and SUST-005 answer from a repo note that names the batch path or the self-managed components and says why (#123)
  • --live-account without rules.org no longer turns REPO-069 on; ACCT-004 replaces that read behind the same gate. CF-APIGW-005 no longer judges MethodSettings given as an intrinsic (#123)
  • No rule is advice-only any more; docs/COVERAGE.md gives the answer for every rule (#123)

v1.1.0

Choose a tag to compare

@github-actions github-actions released this 22 Nov 20:43

Changes

  • A scan prints each step as it runs: detecting the source, reading files, every rule (SEC-001 (12/174, typescript)), each CloudFormation template, each Terraform module, CDK synth, and any LLM call. A step still running after 15 seconds is printed again, so a long scan does not look stalled. The report file and exit codes are unchanged
  • The README is shorter

v1.0.0

Choose a tag to compare

@github-actions github-actions released this 22 Nov 17:56

Breaking

  • A plain aws-arch-agent --repo <path> now writes an HTML report to report.html (was Markdown in report.md). Without --format, the --out suffix (.md, .json, .sarif, .html) picks the format, so --out report.md still writes Markdown. The GitHub Action passes these flags and is unaffected (#119)
  • --mode defaults to auto: V2 for a CDK app (a cdk.json at the repo root) when the v2 extra and Node.js are installed, or with --templates; V1 otherwise, with a console note when a CDK repo stays on V1. --mode v1 restores the old default (#119)
  • The bundled offline price snapshot (prices.json.gz) and scripts/refresh_prices.py are removed; prices are fetched live (#117)

Changes

  • Live AWS pricing for any region: the Price List Query API when boto3 and credentials are available (pip install 'aws-arch-agent[aws]'), else the public bulk API, with a 24-hour SQLite cache and an expired-cache fallback. A scan never fails because pricing failed. New flags --pricing-source auto|api|bulk|off, --price-cache-ttl, --refresh-prices; config pricing.* (#117)
  • The stack cost covers load balancers, EKS, Fargate services, ElastiCache, OpenSearch, Redshift, interface endpoints, KMS keys, Secrets Manager, Kinesis, RDS storage, EBS IOPS and throughput, and Auto Scaling groups. A Terraform literal count = N multiplies a resource's cost; Terraform adapters keep the cost attributes these need (#117)
  • Optional usage profile (.aws-arch-agent-usage.yaml, --usage-file, config usage_file) prices usage-billed resources, reported apart from fixed cost and tagged "usage assumed" (#117)
  • --compare-cost diffs the cost against a baseline cost_snapshot (now written by --update-baseline) or an earlier JSON report; --max-monthly-cost and --max-cost-increase (USD or %), or config budget.*, exit 1 on a breach. CDK source in V1 gets a hint to use V2 for cost (#117)
  • Reports: an HTML cost tab and monthly-cost card; Markdown budget, price source, fixed vs usage and cost-change lines; context.notes.cost and context.notes.prices gain new fields in the JSON schema (#117)
  • After a scan the terminal prints the severity counts, up to five top fixes and the report path; the report file and exit codes are unchanged. The "Wrote report to" line no longer breaks on paths with brackets (#118)
  • With no LLM environment variables set, a local Ollama on localhost:11434 is used when it answers (llama3:8b if pulled, else the first chat model); otherwise the LLM is skipped with a note (#119)

v0.5.0

Choose a tag to compare

@github-actions github-actions released this 22 Nov 13:55

Changes

  • Walk files in a fixed order (sorted per directory), so the same repo gives the same files on every run and OS. A walk that hits --max-files prints a console note, adds a note to the Markdown metadata, and records files_truncated and max_files in context.notes; the exit code does not change (#114)
  • CloudFormation findings from YAML and JSON templates carry the 1-based line of the resource's logical ID (#114)
  • Suppress a finding inline with # aws-arch-agent: ignore <RULE_ID>[, ...] [reason="..."] [expires=YYYY-MM-DD] (or //) on its line or the line above, or with Metadata: {aws-arch-agent: {ignore: [...]}} on a template resource. Suppressed findings stay in the report, labelled, and do not count for --fail-on; an expired one is a warning and counts again. New config key rules.exclude_paths skips rule IDs in files matching a path glob (#114)
  • SARIF sets tool.driver.version and informationUri, a helpUri per rule, partialFingerprints (awsArchAgent/v1), and suppressions: inSource for inline and Metadata suppressions, external for baseline-accepted findings (which keep properties.baselined) (#114)
  • --tf-plan fills planned values in local child modules at any depth, each module call with its own values, and ties split S3 and ECR settings resources to count and for_each instances (#114)
  • A CDK source scan without synth turns on the AI lenses when Bedrock, SageMaker, or AgentCore constructs appear in TypeScript or Python source outside tests; lenses.ai still overrides (#114)
  • New AI lens checks: Bedrock guardrails, keys, aliases, prompt versions and token limits (CF-BEDROCK-005 to CF-BEDROCK-012), AgentCore runtime, gateway and memory (CF-AGENTCORE-001 to CF-AGENTCORE-003), SageMaker notebooks, Studio domains, data capture, endpoint scaling, feature groups and the model registry (CF-SAGE-007 to CF-SAGE-013), and repo checks for Bedrock calls, evaluation steps, model cards, bias evaluation and human escalation (REPO-199 to REPO-204) (#114)
  • GitHub Action: new inputs tf-plan, live-account (also installs the account extra), region, theme, group-by, config, templates, and job-summary, which appends the Markdown report to the job summary even when fail-on fails the scan (#114)
  • Docs and --help describe V2 Terraform scans and the CDK, CloudFormation, Terraform, live account and AI lens scope (#114)
  • rules.exclude_paths rule IDs match without regard to case (#115)
  • Line numbers count \n only, so a form feed in source or a \u2028 in a quoted YAML value no longer shifts a finding's line or a suppression (#115)
  • A finding in a Terraform child module called more than once names the module calls it came from (#115)
  • REPO-199 and REPO-200 follow local imports: a guardrail or token limit in a module the call file imports, or in a file that imports it, counts (#115)
  • Replace 10 AWS documentation links whose pages moved, and check every linked page in a new Doc links workflow: on changes to the link map, weekly, and by hand (#114, #115)

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 21 Nov 17:54

Changes

  • Read resources for six best practices that only a repo rule answered: user experience telemetry (CF-SYN-001), log analysis (CF-LOGS-001), cost anomaly alerts (CF-CE-001), unattached EBS volumes (CF-EBS-003), RDS storage autoscaling (CF-RDS-015) and noncurrent S3 versions (CF-S3-013). docs/COVERAGE.md lists the practices that stay on a repo rule (#112)
  • Close the seven partial CDK/template pairs. CF-NACL-001 also reports a VPC with no custom network ACL, CF-RDS-003 an Aurora cluster with one DB instance, and new CF-ECS-013 an ECS service nothing scales. CF-PERF-002 reads ALBs, API caches and DAX. PERF-008 reads RDS only and SUST-001 reads fleets only. All seven are now covered in V2 (#112)
  • Check Java Lambda functions for SnapStart (CF-LAM-010) and functions outside a VPC that reach a private RDS or ElastiCache store (CF-LAM-011); they replace PERF-015 and REL-010 in V2 (#112)
  • Remove 15 advice rules that read no property: REL-023, REL-025, COST-004, COST-017, OPS-004, OPS-022, PERF-003, PERF-005, PERF-009, PERF-010, PERF-012, PERF-016, PERF-017, PERF-018, PERF-019. Their IDs in rules.include or rules.exclude are ignored (#112)
  • CF-PERF-002 no longer fires on a template with Lambda and no API or load balancer (#112)
  • A CDK scan without cdk synth output now reports OPS06-BP03 as not checked (#112)
  • Install from PyPI (pip or pipx) in the README

v0.3.1

Choose a tag to compare

@github-actions github-actions released this 18 Nov 11:53

Changes

  • Mention the AI lenses and their checks in the README
  • First release published to PyPI from the release workflow with trusted publishing