A secret stored with a trailing newline/whitespace (Windows echo/Out-File
footgun) corrupts the auth header and surfaces as a generic 'Connection
error.' Strip keys defensively at every point of use, and unwrap the
Anthropic SDK's masked __cause__ in /health so the detail is actionable.
Improve Anthropic health check: raw DNS/TCP test before SDK call for clearer error diagnosis
New AIAnalyzer covers 9 security/cost checks for AI stacks: LLM key
management, vector DB auth, training data encryption, model endpoint
exposure, GPU spot usage, semantic caching, and SageMaker rightsizing.
Adds workload-pattern detection (RAG, fine-tuning, real-time inference,
batch inference, MLOps pipeline, managed AI) with tailored findings per
workload type. Wired into both /analyze and /analyze-interactive endpoints.
Adds a hybrid rule-based recommender (archlens/recommender.py) that maps
a short questionnaire (project type, scale, cloud, cost/security
priorities, database/AI needs, must-have components) to a complete,
cost-optimized and secure stack drawn from the 217-service catalog,
with optional LLM-written summary (Gemini/Anthropic) on top.
Wires a new /recommend endpoint into the FastAPI app and adds a 4th
"Recommend My Stack" builder tab in the frontend, with a results panel
(recommended services, cost tips, security tips) and a "Use This Stack"
handoff into the existing builder for further tweaking and analysis.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Fix Cloud Run hang: force Gemini REST transport, run LLM parses in threadpool
Findings already carried a references field with AWS doc links, but
console, markdown, JSON reporters and the web UI silently dropped it.
Now wire it through to all outputs and add missing references for the
remaining security, cost, and AI-stack checks.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
chore: use K.N.Narin handle in copyright, contact via GitHub
- web/app.py: wire KubernetesSecurityAnalyzer into both /analyze and
/analyze-interactive endpoints — K8s checks were previously silently
skipped in the web UI despite the analyzer existing
- index.html: update hero stat from "5+" to "77+" security checks and
"7+" to "8+" input formats
- index.html: update Security Analysis feature card to mention 77+ checks
and Kubernetes coverage
- index.html: update Multi-Format Input card to list Kubernetes YAML
- index.html: add Kubernetes YAML chip to supported inputs section
- index.html: update file upload hint text to list Kubernetes YAML
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Harden error handling and input validation for external testing
- Parsers: wrap ET.parse, json.loads, LLM calls in try/except with readable messages
- text.py: Gemini falls back to Anthropic on any exception; empty input rejected early;
invalid ComponentType safely mapped to OTHER; malformed component entries skipped
- cloudformation.py: both YAML+JSON paths guarded; non-dict result rejected cleanly
- aws_config.py / gcp_asset.py: per-item try/except so one bad record doesn't crash all
- app.py: 5MB file size limit; ValueError returned as HTTP 422 with user message;
unexpected exceptions log server-side and return generic message (no key leakage);
/analyze-interactive rejects empty component list with 400; text input validated non-empty
- app.py: components_found added to response payload
- UI: 'X components detected' shown in architecture summary card;
yellow warning banner appears when 0 components detected (file not parsed correctly)
Add interactive architecture builder with live suggestions
- New 'Build Diagram' tab with 2-step wizard:
Step 1: searchable service picker (55+ services across AWS/GCP/Azure/CI-CD/Security)
with category filters and live suggestion panel that updates as you select services
Step 2: drag-and-drop canvas with connect mode to draw arrows between services;
live analysis sidebar shows connection-aware suggestions (isolated nodes, unmonitored compute, etc.)
- 11 pure-JS suggestion rules fire in real time — no backend call until Analyze is clicked
- New /analyze-interactive POST endpoint accepts JSON components+connections -> runs all analyzers
- Stat counter updated to 7+ input formats; Interactive Builder chip added to landing page
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Load ANTHROPIC_API_KEY from env and show clear error when missing