MCPcopy Create free account
hub / github.com/github/gh-aw / isEntryHTTPS

Function isEntryHTTPS

pkg/cli/firewall_policy.go:230–232  ·  view source on GitHub ↗

isEntryHTTPS determines if an audit log entry represents an HTTPS request. CONNECT method is the standard signal for HTTPS tunneling.

(entry AuditLogEntry)

Source from the content-addressed store, hash-verified

228// isEntryHTTPS determines if an audit log entry represents an HTTPS request.
229// CONNECT method is the standard signal for HTTPS tunneling.
230func isEntryHTTPS(entry AuditLogEntry) bool {
231 return strings.EqualFold(entry.Method, "CONNECT")
232}
233
234// isEntryAllowed determines the observed outcome of a request.
235// This mirrors the classification logic used by the firewall log parser.

Callers 2

TestIsEntryHTTPSFunction · 0.85
findMatchingRuleFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestIsEntryHTTPSFunction · 0.68