Bật inspection tường minh
Ordinary HTTP service không tự trở thành inspection target. Package/API ngôn ngữ phải enable authenticated read surface trước startup.
Companion product · Local development
CoAkka HTTP Runtime Inspect là ứng dụng browser độc lập cho máy development tin cậy. Nó kết nối tới inspection endpoint mà service chủ động bật, đọc effective route/schema snapshot, chiếu OpenAPI 3.0.3 và cho developer gửi Route Try thật.
01 · Hai process, hai owner
application + CoAkka HTTP Runtime
└─ explicitly enabled inspection endpoint · numeric loopback
↓ authenticated bounded snapshot
coakka-http-runtime-inspect
├─ local browser view
├─ bounded cached snapshot
├─ OpenAPI 3.0.3 projection
└─ Route Try client → real application request
Sở hữu effective route identity, structural generation, binding revision, application-supplied schema metadata và bounded authenticated read surface.
Sở hữu browser listener local, target connection, bearer-file use, cached view, OpenAPI projection và Route Try client.
Sở hữu validation, authorization, business effect và việc metadata mô tả đúng handler thật sự làm.
Sở hữu secret file, target selection, việc kiểm tra snapshot freshness và quyết định có gửi một request thay đổi state hay không.
Không phải CoAkka Runtime Inspect. CoAkka HTTP Runtime Inspect quan sát HTTP routes/schema và chiếu OpenAPI. CoAkka Runtime Inspect quan sát target/message runtime. Hai companion product không dùng thay nhau chỉ vì cùng có chữ Inspect.
02 · Local workflow
Ordinary HTTP service không tự trở thành inspection target. Package/API ngôn ngữ phải enable authenticated read surface trước startup.
Dùng ordinary file 32–4096 bytes, không trailing newline, không symlink; hạn chế permission và không commit hoặc log nội dung.
Inspect bind browser listener trên numeric loopback và nhận đường dẫn tuyệt đối tới bearer file. Không cần cài SDK riêng cho standalone archive.
Nhập numeric loopback host và inspection port của target. Container loopback chỉ thấy chính namespace của nó.
Refresh fail không phải snapshot mới thành công. Kiểm tra connection state, target identity, generation và stale marker trước khi dựa vào view.
coakka-http-runtime-inspect serve \
--bearer-file /absolute/path/to/inspection-token \
--listen-host 127.0.0.1 --listen-port 8080 \
--timeout-ms 3000
--bearer-file--listen-host--listen-port/openapi.json; không phải serving port của target.--timeout-ms03 · Route truth + application metadata
Core-issued snapshot trả route identity, method/path, generation và
binding revision. Application gắn summary, parameter, request body,
response, schema, example và security requirement bằng API tường minh.
Inspect join hai nguồn rồi chiếu OpenAPI 3.0.3.
Inspect giữ method/path thật và chiếu description/schema mà application đã khai báo.
Vẫn hiện là routable nhưng được đánh dấu undocumented. Inspect không nhìn handler class hoặc traffic để bịa schema.
x-coakka-* giữ identity, generation và stale-state facts không vừa khít OpenAPI chuẩn.
Metadata mô tả intent; nó không enforce authorization và không đưa inspection bearer vào API spec.
Inspect phục vụ GET /openapi.json từ cache local sau khi
có model dùng được. Trước đó endpoint có thể trả 503;
không diễn giải nó thành một API rỗng hợp lệ.
04 · Real request
Dùng metadata và input của developer để gửi HTTP request thật tới application route đã chọn.
Không bypass authorization, không rollback, không dry-run database và không tạo exactly-once execution.
Không tự retry một state-changing operation. Handler hoặc downstream có thể đã nhận hoặc hoàn thành work.
Chỉ tải lại snapshot/cache; không hot-swap route, upload OpenAPI hay reconfigure target.
05 · Exact companion package
Tải Inspect 2.3.0 cho macOS ARM64 hoặc Linux ARM64 từ kho CoAkka Publish.
| Nền tảng | Gói tải | Đã kiểm thử |
|---|---|---|
| macOS ARM64 | coakka-http-runtime-inspect-2.3.0-macos-aarch64.tar.gz | Kiểm thử với dịch vụ Core 2.3 trên macOS ARM64 |
| Linux ARM64 | coakka-http-runtime-inspect-2.3.0-linux-aarch64.tar.gz | Raspberry Pi 5 và môi trường glibc 2.28 |
| Windows hoặc x86-64 | Ngoài phạm vi bản Inspect này | Gói SDK HTTP có danh sách nền tảng riêng |
Mỗi gói có sẵn Core 2.3 và giao diện trình duyệt. Tệp chạy trên
macOS dùng chữ ký ad hoc. Đặt tệp checksum cạnh gói vừa tải, rồi
kiểm tra và giải nén. Trên Linux ARM64, đặt
platform=linux-aarch64.
platform=macos-aarch64
archive="coakka-http-runtime-inspect-2.3.0-$platform.tar.gz"
grep " $archive\$" SHA256SUMS | shasum -a 256 -c &&
mkdir http-inspect &&
tar -xzf "$archive" -C http-inspect &&
./http-inspect/bin/coakka-http-runtime-inspect --version
Tệp chạy sau khi cài in ra coakka-http-runtime-inspect 2.3.0 assets=3.
06 · Boundary checklist
Portal giữ workflow và boundary chính. Dùng GitHub để tải exact archive, checksum hoặc xem walkthrough đầy đủ.