Repository navigation
feat(events): the four reference event emitters - cloud_blocked, country_blocked, geo_lookup_failed, security_headers_applied - and the send_cloud_detection_events bus port - #58
Merged
Conversation
…try_blocked, geo_lookup_failed, security_headers_applied - and the send_cloud_detection_events bus port cloud_blocked flows through the bus's send_cloud_detection_events port (the cloud handler verdict with provider and network metadata, handler cloud, request_blocked or logged_only in passive mode) plus the route block_clouds decorator_violation from the cloud_provider check. country_blocked and geo_lookup_failed emit from the ip_security check's country stage (handler ipinfo, the reference reasons and rule_type metadata; a failing resolver reports the lookup failure and a miss, never a raise). security_headers_applied emits behind the reference security-headers TTL cache (TTLCache(1000, 300) semantics: one event per config+path per window, empty paths gated, oldest-first trim) at the pipeline pass and the blocked response paths.
…r's name lists The sensitive-log config fields are array<string, true> membership maps and the redactor walks list<string> names (the LogActivity convention is array_keys): every event emission carrying a non-empty sensitive set fataled with strtolower(true). The three pre-existing bus sites carried the same latent bug behind empty sets; all four sites convert now, with a regression case in the events suite (a non-empty sensitive set still emits the headers event with the redacted path).
3 tasks done
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
Closes GAP-P4 (four event constants without emitters) and V3 (the missing send_cloud_detection_events bus method) from the PHP-family feature matrix.
Tests
Gates