You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Part of #361. Build the four frontend audits as baseline policy rules, populating the frontend block of gowdk-security.json and producing findings.
Scope
Secret/data-leak (audit_bundle_secret): scan embedded asset selection + literal build-time data for secret-shaped values. Reuse runtime/app/redact.go's redactionRules and the appgen embed-skip predicate; flag .env, source maps, private files.
Client route-guard coverage (audit_client_route_unguarded): confirm every SPA/static route's default-deny is reflected in the generated deny registry, so static hosting can't serve a guardless page.
Part of #361. Build the four frontend audits as baseline policy rules, populating the
frontendblock ofgowdk-security.jsonand producing findings.Scope
audit_bundle_secret): scan embedded asset selection + literal build-time data for secret-shaped values. Reuseruntime/app/redact.go'sredactionRulesand the appgen embed-skip predicate; flag.env, source maps, private files.audit_client_route_unguarded): confirm every SPA/static route's default-deny is reflected in the generated deny registry, so static hosting can't serve a guardless page.audit_headers_missing): policy canrequire header; static side here, runtime verification lands in Phase 4 ([Audit] Phase 4 — integration-test runner (testkit, --emit-tests/--run) + runtime/app security headers #364).audit_raw_html_sink): addview.RawHTMLSinksbesideview.ViewDependencies; flagg:html/ raw sinks unless allowlisted.The diagnostic codes are already registered (PR #360). This issue wires the detectors that emit them.
Acceptance criteria
gowdk-security.jsonfrontendblock is populated (bundleSecrets, unguardedRoutes already done, rawHtmlSinks, configuredHeaders).gowdk auditemits each finding with afile:lineand remediation.Out of scope
Full data-flow/taint analysis of raw-HTML sinks (flag sites only).
Related: #361, #119 (fail-closed secret).