Claude 24f816b6a3
Consolidate 22 sibling repos into layered organism structure
Place useful parts of the surrounding repos into sica-fondt by layer, per the
body model (Ada = membrane; brain/endocrine/capabilities/knowledge non-Ada):

- brain/        LLM reasoning + providers (dapr, hermes, MoMoA)
- capabilities/ REPRAG sidecars: hermes tools/skills, dapr tools, parallel
                dispatch, A51 channels, and the OSINT cluster
- knowledge/    LORAG corpus: 754 cyber-skills, agency personas, secure-coding,
                MITRE ATT&CK data
- reference/    defensive threat-reference (C3, shhbruh doc) + AdaYaml parser

License handling: AGPL sources (worldosint, advanced_evolution, mercury,
Reticulum) and GPL DeTTECT are SPEC-only clean-room/port descriptions — no
copyleft code copied. MIT/Apache/data parts copied as working trees.

Safety: shhbruh escape/persistence material and C3 covert-C2 kept as reference
only, not wired into the running organism. See CONSOLIDATION.md.

https://claude.ai/code/session_01UehUqEXXJJCsHoA4voCU5c
2026-06-10 06:53:01 +00:00

1.6 KiB

API Reference: Implementing API Gateway Security Controls

AWS API Gateway (boto3)

import boto3
client = boto3.client("apigateway")
apis = client.get_rest_apis()["items"]
method = client.get_method(restApiId=api_id, resourceId=res_id, httpMethod="GET")
# Check: authorizationType, apiKeyRequired, requestValidatorId
stages = client.get_stages(restApiId=api_id)["item"]
# Check: accessLogSettings, methodSettings throttling

Kong Admin API

# List services and their plugins
curl http://localhost:8001/services
curl http://localhost:8001/services/{id}/plugins

# Enable rate limiting
curl -X POST http://localhost:8001/services/{id}/plugins \
  -d "name=rate-limiting" -d "config.minute=100"

# Enable JWT auth
curl -X POST http://localhost:8001/services/{id}/plugins \
  -d "name=jwt"

Security Controls Checklist

Control Gateway Severity if Missing
Authentication (JWT/OAuth) All CRITICAL
Rate Limiting All HIGH
Request Validation All MEDIUM
Access Logging All HIGH
TLS/mTLS All CRITICAL
CORS Policy All MEDIUM
IP Restriction All LOW

NGINX Gateway Security

location /api/ {
    limit_req zone=api burst=20 nodelay;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_pass http://backend;
    add_header X-Content-Type-Options nosniff;
    add_header X-Frame-Options DENY;
}

References