Files
tfm_ainventory/graphify-out/cache/34d46a762fe64f653fd1abc3ce905b71e0b4dbdf8e75e1ad198e06ccae34b379.json

1 line
12 KiB
JSON

{"nodes": [{"id": "backend_venv_lib_python3_12_site_packages_uvicorn_middleware_proxy_headers_py", "label": "proxy_headers.py", "file_type": "code", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L1"}, {"id": "proxy_headers_proxyheadersmiddleware", "label": "ProxyHeadersMiddleware", "file_type": "code", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L8"}, {"id": "proxy_headers_proxyheadersmiddleware_init", "label": ".__init__()", "file_type": "code", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L23"}, {"id": "proxy_headers_proxyheadersmiddleware_call", "label": ".__call__()", "file_type": "code", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L27"}, {"id": "proxy_headers_parse_raw_hosts", "label": "_parse_raw_hosts()", "file_type": "code", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L63"}, {"id": "proxy_headers_trustedhosts", "label": "_TrustedHosts", "file_type": "code", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L67"}, {"id": "proxy_headers_trustedhosts_init", "label": ".__init__()", "file_type": "code", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L70"}, {"id": "proxy_headers_trustedhosts_contains", "label": ".__contains__()", "file_type": "code", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L109"}, {"id": "proxy_headers_trustedhosts_get_trusted_client_host", "label": ".get_trusted_client_host()", "file_type": "code", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L125"}, {"id": "proxy_headers_rationale_9", "label": "Middleware for handling known proxy headers This middleware can be used whe", "file_type": "rationale", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L9"}, {"id": "proxy_headers_rationale_68", "label": "Container for trusted hosts and networks", "file_type": "rationale", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L68"}, {"id": "proxy_headers_rationale_126", "label": "Extract the client host from x_forwarded_for header In general this is", "file_type": "rationale", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L126"}], "edges": [{"source": "backend_venv_lib_python3_12_site_packages_uvicorn_middleware_proxy_headers_py", "target": "ipaddress", "relation": "imports", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L3", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_uvicorn_middleware_proxy_headers_py", "target": "uvicorn_types", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L5", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_uvicorn_middleware_proxy_headers_py", "target": "proxy_headers_proxyheadersmiddleware", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L8", "weight": 1.0}, {"source": "proxy_headers_proxyheadersmiddleware", "target": "proxy_headers_proxyheadersmiddleware_init", "relation": "method", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L23", "weight": 1.0}, {"source": "proxy_headers_proxyheadersmiddleware", "target": "proxy_headers_proxyheadersmiddleware_call", "relation": "method", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L27", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_uvicorn_middleware_proxy_headers_py", "target": "proxy_headers_parse_raw_hosts", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L63", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_uvicorn_middleware_proxy_headers_py", "target": "proxy_headers_trustedhosts", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L67", "weight": 1.0}, {"source": "proxy_headers_trustedhosts", "target": "proxy_headers_trustedhosts_init", "relation": "method", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L70", "weight": 1.0}, {"source": "proxy_headers_trustedhosts", "target": "proxy_headers_trustedhosts_contains", "relation": "method", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L109", "weight": 1.0}, {"source": "proxy_headers_trustedhosts", "target": "proxy_headers_trustedhosts_get_trusted_client_host", "relation": "method", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L125", "weight": 1.0}, {"source": "proxy_headers_proxyheadersmiddleware_init", "target": "proxy_headers_trustedhosts", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L25", "weight": 1.0}, {"source": "proxy_headers_proxyheadersmiddleware_call", "target": "proxy_headers_trustedhosts_get_trusted_client_host", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L48", "weight": 1.0}, {"source": "proxy_headers_trustedhosts_init", "target": "proxy_headers_parse_raw_hosts", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L88", "weight": 1.0}, {"source": "proxy_headers_trustedhosts_get_trusted_client_host", "target": "proxy_headers_parse_raw_hosts", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L130", "weight": 1.0}, {"source": "proxy_headers_rationale_9", "target": "proxy_headers_proxyheadersmiddleware", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L9", "weight": 1.0}, {"source": "proxy_headers_rationale_68", "target": "proxy_headers_trustedhosts", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L68", "weight": 1.0}, {"source": "proxy_headers_rationale_126", "target": "proxy_headers_trustedhosts_get_trusted_client_host", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L126", "weight": 1.0}], "raw_calls": [{"caller_nid": "proxy_headers_proxyheadersmiddleware_call", "callee": "app", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L29"}, {"caller_nid": "proxy_headers_proxyheadersmiddleware_call", "callee": "get", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L31"}, {"caller_nid": "proxy_headers_proxyheadersmiddleware_call", "callee": "dict", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L35"}, {"caller_nid": "proxy_headers_proxyheadersmiddleware_call", "callee": "strip", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L38"}, {"caller_nid": "proxy_headers_proxyheadersmiddleware_call", "callee": "decode", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L38"}, {"caller_nid": "proxy_headers_proxyheadersmiddleware_call", "callee": "replace", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L42"}, {"caller_nid": "proxy_headers_proxyheadersmiddleware_call", "callee": "decode", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L47"}, {"caller_nid": "proxy_headers_proxyheadersmiddleware_call", "callee": "app", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L60"}, {"caller_nid": "proxy_headers_parse_raw_hosts", "callee": "strip", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L64"}, {"caller_nid": "proxy_headers_parse_raw_hosts", "callee": "split", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L64"}, {"caller_nid": "proxy_headers_trustedhosts_init", "callee": "set", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L73"}, {"caller_nid": "proxy_headers_trustedhosts_init", "callee": "set", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L74"}, {"caller_nid": "proxy_headers_trustedhosts_init", "callee": "set", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L75"}, {"caller_nid": "proxy_headers_trustedhosts_init", "callee": "isinstance", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L87"}, {"caller_nid": "proxy_headers_trustedhosts_init", "callee": "add", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L98"}, {"caller_nid": "proxy_headers_trustedhosts_init", "callee": "ip_network", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L98"}, {"caller_nid": "proxy_headers_trustedhosts_init", "callee": "add", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L101"}, {"caller_nid": "proxy_headers_trustedhosts_init", "callee": "add", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L104"}, {"caller_nid": "proxy_headers_trustedhosts_init", "callee": "ip_address", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L104"}, {"caller_nid": "proxy_headers_trustedhosts_init", "callee": "add", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L107"}, {"caller_nid": "proxy_headers_trustedhosts_contains", "callee": "ip_address", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L117"}, {"caller_nid": "proxy_headers_trustedhosts_contains", "callee": "any", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L120"}, {"caller_nid": "proxy_headers_trustedhosts_get_trusted_client_host", "callee": "reversed", "source_file": "backend/venv/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", "source_location": "L136"}]}