Repository navigation
feat(echo): the adapter lifecycle surface - #28
Merged
Merged
Conversation
Ports the fastapi-guard middleware lifecycle ops the FEATURE_MATRIX_GO adapter row left PARTIAL/MISSING (guard/middleware.py): mark_initialized (:131), get_initialization_status (:705), reset (:685), agent_stats (:256) and refresh_cloud_ip_ranges (:661), as explicit functions over the engine handle (the same seam as GuardWebSocket and AddStatusRoute; the reference ops are methods on SecurityMiddleware because the Python middleware owns its machinery, while this adapter's machinery is the engine New receives). The engine side (Initialize/Close, MarkInitialized, AgentStats with the AgentStatsProvider seam) landed in guard-core-go #66; the agent-side get_stats dict view in guard-agent-go #26. - MarkInitialized: a warmed engine makes Initialize a no-op. - GetInitializationStatus: the payload AddStatusRoute serves. - Reset: the rate limiter's windows (redis and in-memory). - AgentStats: enabled/degraded merged with the wired handler's stats. - RefreshCloudIPRanges: the redis-backed refresh at the configured TTL (the reference cloud_handler.refresh_async) or the in-memory refresh (the reference cloud_handler.refresh); no blocked providers is the reference's no-op early return.
rennf93
added a commit
that referenced
this pull request
Oct 9, 2026
… lifecycle surface - floor guard-core-go v4.3.2 (#30) The family 1.4.0 wave on Echo: GuardWebSocket plus WebSocketHTTPStatus (#26), AddStatusRoute (#27), the adapter lifecycle surface (MarkInitialized, GetInitializationStatus, Reset, AgentStats, RefreshCloudIPRanges, #28). Raises the engine floor to v4.3.2, pins golang.org/x/net v0.60.0 for the five 2026 http2 GO advisories reachable through the cloud-refresh lifecycle, and carries the post-transfer Guard-Core metadata sweep. Co-authored-by: Renn F <rennf93@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Ports the fastapi-guard middleware lifecycle ops the FEATURE_MATRIX_GO adapter row left PARTIAL/MISSING (guard/middleware.py: mark_initialized :131, get_initialization_status :705, reset :685, agent_stats :256, refresh_cloud_ip_ranges :661) as explicit functions over the engine handle, the same seam as GuardWebSocket and AddStatusRoute (the reference ops are methods on SecurityMiddleware because the Python middleware owns its machinery internally; this adapter's machinery is the engine New receives).
Floors guard-core-go at the #66 engine surface.
Test plan