WAF
Parity grade: A · SDK aws-sdk-go-v2/service/waf@v1.38.3 · last audited 2026-10-10 (1ecd57d33)
Category: Security · View PARITY.md on GitHub · All Services
Parity & Coverage
| Metric | Value |
|---|---|
| PARITY entries audited | 4 (4 ok) |
| Feature families | 16 (16 ok) |
| Known gaps | none |
| Structural gaps (can't be emulated) | 3 |
| Deferred items | 0 |
| Resource leaks | clean |
Structural Gaps
These do not block an A grade — no implementation could produce real data here because the underlying data source cannot exist in an emulator.
- ListSubscribedRuleGroups ignores Limit/NextMarker: the marketplace-subscription list is always empty, so paging is unobservable. GetRateBasedRuleManagedKeys.NextMarker is documented by the SDK as not currently used.
- GetSampledRequests always returns an empty SampledRequests list: real AWS randomly samples from actual HTTP requests evaluated against the WebACL's rules. Gopherstack has no request-proxying subsystem -- it never sees or evaluates real client traffic through WAF rules, so there is no request data to sample from, ever. Producing non-empty samples would mean fabricating fictitious HTTP requests, exactly the failure mode this parity campaign exists to remove. (WebAclId existence validation IS buildable from real state and was added this pass; the sample content is not.) (bd: gopherstack-smld)
- GetRateBasedRuleManagedKeys always returns an empty ManagedKeys list: real AWS derives it from live request-rate tracking against the rule's RateLimit over a trailing 5-minute window, which requires the same real-traffic evaluation GetSampledRequests lacks. Nothing in InMemoryBackend's state (RateBasedRule config, WebACL associations) encodes request rates, so there is no rate to threshold against. (RuleId existence validation IS buildable and already present.) (bd: gopherstack-smld)
Audited Operations
4 audited operations
| Operation | Wire | Errors | State | Persist |
|---|---|---|---|---|
GetChangeToken | ok | ok | ok | ok |
GetChangeTokenStatus | ok | ok | ok | ok |
GetSampledRequests | ok | ok | ok | n/a |
GetRateBasedRuleManagedKeys | ok | ok | ok | n/a |
Audited Feature Families
| Feature Family | Status |
|---|---|
WebACL | ok |
Rule | ok |
RateBasedRule | ok |
IPSet | ok |
ByteMatchSet | ok |
SizeConstraintSet | ok |
SqlInjectionMatchSet | ok |
XssMatchSet | ok |
GeoMatchSet | ok |
RegexPatternSet | ok |
RegexMatchSet | ok |
RuleGroup | ok |
Tags | ok |
Logging | ok |
PermissionPolicy | ok |
Migration | ok |
