Directories
¶
Path | Synopsis |
---|---|
cmd
|
|
bancheck
Package main contains the CLI used for detecting risky APIs.
|
Package main contains the CLI used for detecting risky APIs. |
bancheck/bannedapi
Package bannedapi provides the tools for doing static analysis and checking for usage of banned APIs.
|
Package bannedapi provides the tools for doing static analysis and checking for usage of banned APIs. |
examples
|
|
echo
echo implements a simple echo server which listents on localhost:8080.
|
echo implements a simple echo server which listents on localhost:8080. |
echo/security/web
Package web is an example package maintained by security experts in a development team.
|
Package web is an example package maintained by security experts in a development team. |
sample-application/secure
Package secure TODO(clap|kele): describe the assumptions we are under, e.g.
|
Package secure TODO(clap|kele): describe the assumptions we are under, e.g. |
sample-application/server
Package server implements the application server.
|
Package server implements the application server. |
trustedtypes
Implements a simple server presenting DOM XSS protection with Trusted Types.
|
Implements a simple server presenting DOM XSS protection with Trusted Types. |
internal
|
|
requesttesting
Package requesttesting provides a harness and other test utilities for verifying the behaviour of the net/http package in Go's standard library.
|
Package requesttesting provides a harness and other test utilities for verifying the behaviour of the net/http package in Go's standard library. |
requesttesting/headers
Package headers contains tests to verify the request parsing behavior of net/http in Go's standard library.
|
Package headers contains tests to verify the request parsing behavior of net/http in Go's standard library. |
Package safehttp provides a framework for building secure-by-default web applications.
|
Package safehttp provides a framework for building secure-by-default web applications. |
defaults
Package defaults provides ready to use, safe, pre-configured instances of safehttp types.
|
Package defaults provides ready to use, safe, pre-configured instances of safehttp types. |
internal
Package internal contains internal APIs.
|
Package internal contains internal APIs. |
plugins/collector
Package collector provides a function for creating violation report handlers.
|
Package collector provides a function for creating violation report handlers. |
plugins/coop
Package coop provides Cross-Origin-Opener-Policy protection.
|
Package coop provides Cross-Origin-Opener-Policy protection. |
plugins/cors
Package cors provides a safehttp.Interceptor that handles CORS requests.
|
Package cors provides a safehttp.Interceptor that handles CORS requests. |
plugins/csp
Package csp provides a safehttp.Interceptor which applies Content-Security Policies to responses.
|
Package csp provides a safehttp.Interceptor which applies Content-Security Policies to responses. |
plugins/csp/internalunsafecsp
Package internalunsafecsp is used internally to override CSP.
|
Package internalunsafecsp is used internally to override CSP. |
plugins/csp/internalunsafecsp/unsafecspfortests
Package unsafecspfortests can be used to disable CSP on specific handler registration in tests.
|
Package unsafecspfortests can be used to disable CSP on specific handler registration in tests. |
plugins/csp/internalunsafecsp/unsafestrictcsp
Package unsafestrictcsp can be used to disable Strict CSP protections on specific handler registration.
|
Package unsafestrictcsp can be used to disable Strict CSP protections on specific handler registration. |
plugins/csp/internalunsafecsp/unsafetrustedtypes
Package unsafetrustedtypes can be used to disable Trusted Types protections on specific handler registration.
|
Package unsafetrustedtypes can be used to disable Trusted Types protections on specific handler registration. |
plugins/fetchmetadata
Package fetchmetadata provides Fetch-Metadata based protections.
|
Package fetchmetadata provides Fetch-Metadata based protections. |
plugins/fetchmetadata/internalunsafefetchmetadata
Package internalunsafefetchmetadata is used internally to override FM policies.
|
Package internalunsafefetchmetadata is used internally to override FM policies. |
plugins/fetchmetadata/internalunsafefetchmetadata/unsafefetchmetadatafortests
Package unsafefetchmetadatafortests can be used to disable Fetch Metadata protections on specific handler registration in tests.
|
Package unsafefetchmetadatafortests can be used to disable Fetch Metadata protections on specific handler registration in tests. |
plugins/fetchmetadata/internalunsafefetchmetadata/unsaferesourcepolicy
Package unsaferesourcepolicy can be used to disable Fetch Metadata protections on specific handler registration.
|
Package unsaferesourcepolicy can be used to disable Fetch Metadata protections on specific handler registration. |
plugins/framing
Package framing provides utilities to install a comprehensive framing protection.
|
Package framing provides utilities to install a comprehensive framing protection. |
plugins/framing/internalunsafeframing
Package internalunsafeframing is used internally to override Framing protections.
|
Package internalunsafeframing is used internally to override Framing protections. |
plugins/framing/internalunsafeframing/unsafeframing
Package unsafeframing can be used to disable Framing protections on specific handler registration.
|
Package unsafeframing can be used to disable Framing protections on specific handler registration. |
plugins/framing/internalunsafeframing/unsafeframingfortests
Package unsafeframingfortests can be used to disable Framing protections on specific handler registration in tests.
|
Package unsafeframingfortests can be used to disable Framing protections on specific handler registration in tests. |
plugins/hostcheck
Package hostcheck provides a plugin that checks whether the request is intended to be sent to a given host.
|
Package hostcheck provides a plugin that checks whether the request is intended to be sent to a given host. |
plugins/hsts
Package hsts provides HTTP Strict Transport Security.
|
Package hsts provides HTTP Strict Transport Security. |
plugins/htmlinject
Package htmlinject provides utilities to pre-process HTML templates and inject additional parts into them before parsing.
|
Package htmlinject provides utilities to pre-process HTML templates and inject additional parts into them before parsing. |
plugins/reportingapi
Package reportingapi is an implementation of the Report-To header described in https://www.w3.org/TR/reporting/#header.
|
Package reportingapi is an implementation of the Report-To header described in https://www.w3.org/TR/reporting/#header. |
plugins/staticheaders
Package staticheaders provides a safehttp.Interceptor which sets security sensitive headers on every response.
|
Package staticheaders provides a safehttp.Interceptor which sets security sensitive headers on every response. |
plugins/xsrf
Package xsrf contains helper functions for the safehttp.Interceptor that provide protection against Cross-Site Request Forgery attacks.
|
Package xsrf contains helper functions for the safehttp.Interceptor that provide protection against Cross-Site Request Forgery attacks. |
plugins/xsrf/xsrfangular
Package xsrfangular provides a safehttp.Interceptor that ensures Cross-Site Request Forgery protection for Angular applications by verifying the incoming requests, rejecting those requests that are suspected to be part of an attack.
|
Package xsrfangular provides a safehttp.Interceptor that ensures Cross-Site Request Forgery protection for Angular applications by verifying the incoming requests, rejecting those requests that are suspected to be part of an attack. |
plugins/xsrf/xsrfhtml
Package xsrfhtml provides a safehttp.Interceptor that ensures Cross-Site Request Forgery by verifying the incoming requests for the presence of an XSRF token, rejecting those requests that are suspected to be part of an attack.
|
Package xsrfhtml provides a safehttp.Interceptor that ensures Cross-Site Request Forgery by verifying the incoming requests for the presence of an XSRF token, rejecting those requests that are suspected to be part of an attack. |
restricted
Package restricted contains restricted APIs.
|
Package restricted contains restricted APIs. |
safehttptest
Package safehttptest provides utilities for testing safehttp.Handler:s and safehttp.Interceptor:s.
|
Package safehttptest provides utilities for testing safehttp.Handler:s and safehttp.Interceptor:s. |
Package safesql implements a safe version of the standard sql package while trying to keep the API as similar as possible to the original one.
|
Package safesql implements a safe version of the standard sql package while trying to keep the API as similar as possible to the original one. |
internal/raw
Package raw is used to provide a bypass mechanism to implement unchecked and legacy conversions packages.
|
Package raw is used to provide a bypass mechanism to implement unchecked and legacy conversions packages. |
legacyconversions
Package legacyconversions provides functions to create values of package safesql types from plain strings.
|
Package legacyconversions provides functions to create values of package safesql types from plain strings. |
uncheckedconversions
Package uncheckedconversions provides functions to create values of package safesql types from plain strings.
|
Package uncheckedconversions provides functions to create values of package safesql types from plain strings. |
Click to show internal directories.
Click to hide internal directories.