mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
* feat(eventbridge): add ApiDestination target support (#4702) - Add ApiDestination, ApiDestinationState, and HttpParameters models - Implement CRUD operations for API destinations in EventBridgeService - Add CreateApiDestination, DescribeApiDestination, UpdateApiDestination, DeleteApiDestination, ListApiDestinations actions in EventBridgeHandler - Support HttpParameters on targets in PutTargets and ListTargetsByRule - Implement HTTP delivery to API destinations in EventBridgeInvoker with connection auth and SSRF protection - Add CloudFormation provisioning for AWS::Events::ApiDestination in EventsCfnProvisioner - Update docs and tests * fix(eventbridge): harden ApiDestination delivery and CloudFormation lifecycle - Throw on delivery failure so TargetDispatcher retries 429/5xx and connection errors and dead-letters permanent failures - Enforce InvocationRateLimitPerSecond per destination - Run the OAuth client-credentials exchange for OAUTH_CLIENT_CREDENTIALS connections - Reject non-http(s) endpoints and wildcard hosts, encode path parameter values, keep the query before any fragment, and stop logging URLs that may carry secrets - Resolve destination and connection ARNs only when they match the stored ARN - Validate every UpdateApiDestination field before applying any of them - Paginate ListApiDestinations with Limit and NextToken - Keep HttpParameters on AWS::Events::Rule targets and roll back AWS::Events::ApiDestination updates from a snapshot * fix(eventbridge): keep connection credentials authoritative and require a valid endpoint host - Apply target headers and query parameters before the connection's so a target cannot override its credentials, and replace header names that differ only by case - Reject endpoints without a parsed host (for example https://:8080/path) - Sweep stale rate-limit windows once the map grows * fix(eventbridge): make the ApiDestination rate limit check atomic Count permits inside ConcurrentHashMap.compute on an immutable window so the stale-window sweep can no longer remove a window another delivery is using, which let concurrent deliveries exceed InvocationRateLimitPerSecond. * refactor(eventbridge): drop the in-service InMemoryStorage constructor and tidy tests - Remove the compatibility constructor that instantiated InMemoryStorage inside EventBridgeService; tests pass the ApiDestination store explicitly - Import classes instead of qualifying them inline in the ApiDestination integration test - Surface worker failures in the concurrent rate limit test by checking each Future * docs: correct the EventBridge and IAM operation counts in the service matrix