Documentation
¶
Overview ¶
Package httpsecurity provides a provider-neutral, read-only audit of the public HTTP transport and response-header boundary for CloudRING surfaces.
Index ¶
Constants ¶
const ( // CanaryMaxAgeSeconds is the exact HSTS lifetime installed while a hostname // is still in its reversible canary phase. CanaryMaxAgeSeconds uint64 = 300 // SteadyMinAgeSeconds is the minimum HSTS lifetime after steady promotion. SteadyMinAgeSeconds uint64 = 31_536_000 )
Variables ¶
var ErrInvalidConfiguration = errors.New("invalid HTTP security audit configuration")
ErrInvalidConfiguration is intentionally opaque so an invalid URL or target identifier cannot be reflected into logs.
Functions ¶
This section is empty.
Types ¶
type Report ¶
type Report struct {
SchemaVersion string `json:"schema_version"`
TargetID string `json:"target_id"`
Mode Mode `json:"mode"`
Surface Surface `json:"surface"`
Passed bool `json:"passed"`
Rules []RuleResult `json:"rules"`
}
Report is safe to persist or print. TargetID is restricted to a small safe identifier alphabet before any network request is made.
type RuleResult ¶
RuleResult exposes only a stable rule identifier and its result. It never contains a URL, response value, body, or transport error.