Security — fiber Architecture
Implements CSRF, CORS, BasicAuth, and Helmet headers
Entity Profile
Dependency Diagram
graph TD subdomain_FiberMiddleware_Security["Security"] 306a0c68_f5a5_b368_f37a_1419425a8fea["csrf_test.go"] subdomain_FiberMiddleware_Security --> 306a0c68_f5a5_b368_f37a_1419425a8fea 57b9eed3_6274_c073_f0db_e3c30b2a59fe["csrf.go"] subdomain_FiberMiddleware_Security --> 57b9eed3_6274_c073_f0db_e3c30b2a59fe d4b0c76b_df58_68cc_9f01_dca309899302["config_test.go"] subdomain_FiberMiddleware_Security --> d4b0c76b_df58_68cc_9f01_dca309899302 ce76a6de_702b_f385_2421_4a80229c068f["helpers_test.go"] subdomain_FiberMiddleware_Security --> ce76a6de_702b_f385_2421_4a80229c068f 077ca922_400b_9f3f_bb69_e8f547a31678["config.go"] subdomain_FiberMiddleware_Security --> 077ca922_400b_9f3f_bb69_e8f547a31678 b392c21a_096a_b10e_dfed_f88342b53066["manager.go"] subdomain_FiberMiddleware_Security --> b392c21a_096a_b10e_dfed_f88342b53066 fc745a0e_055f_91b6_3e1b_4c868fc3e71b["helpers.go"] subdomain_FiberMiddleware_Security --> fc745a0e_055f_91b6_3e1b_4c868fc3e71b d2216d20_1a75_1224_49ef_0f4f6b9c1c09["storage_manager_msgp_test.go"] subdomain_FiberMiddleware_Security --> d2216d20_1a75_1224_49ef_0f4f6b9c1c09 style subdomain_FiberMiddleware_Security fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Domain
Functions
- BenchmarkAppendMsgitem()
- BenchmarkAppendMsgitem()
- BenchmarkDecodeitem()
- BenchmarkEncodeitem()
- BenchmarkEncodeitem()
- BenchmarkMarshalMsgitem()
- BenchmarkUnmarshalitem()
- Benchmark_CSRF_SubdomainMatch()
- Benchmark_Cache_AdditionalHeaders()
- Benchmark_Limiter_Custom_Store()
- Benchmark_Middleware_CSRF_Check()
- Benchmark_Middleware_CSRF_GenerateToken()
- HandlerFromContext()
- New()
- TestCSRFStorageDeleteError()
- TestCSRFStorageGetError()
- TestCSRFStorageSetError()
- TestCacheAllowsAuthorizationWithRevalidateDirectives()
- TestCacheAllowsSharedCacheWithAuthorization()
- TestCacheBypassesExistingEntryForAuthorization()
- TestCacheSeparatesAuthorizationValues()
- TestCacheSkipsAuthorizationByDefault()
- TestEncodeDecodeitem()
- TestLimiterDefaultConfigNoPanic()
- TestLimiterSlidingSkipsPostUpdateWhenHeadersDisabled()
- TestMarshalUnmarshalitem()
- TestSubdomainMatch()
- Test_AdditionalE2EResponseHeaders()
- Test_CSRF()
- Test_CSRF_All_Extractors()
- Test_CSRF_Chain_Extractor()
- Test_CSRF_Chain_Extractor_Empty()
- Test_CSRF_Chain_Extractor_Metadata()
- Test_CSRF_Chain_Extractor_SingleExtractor()
- Test_CSRF_CookieName_CaseInsensitive_Warning()
- Test_CSRF_Cookie_Injection_Exploit()
- Test_CSRF_Custom_Extractor_Struct()
- Test_CSRF_DeleteToken()
- Test_CSRF_DeleteToken_WithSession()
- Test_CSRF_ErrorHandler_EmptyToken()
- Test_CSRF_ErrorHandler_InvalidToken()
- Test_CSRF_ErrorHandler_MissingReferer()
- Test_CSRF_ExpiredToken()
- Test_CSRF_ExpiredToken_WithSession()
- Test_CSRF_ExtractorSecurity_Validation()
- Test_CSRF_Extractor_EmptyString()
- Test_CSRF_Extractor_Error_Types()
- Test_CSRF_Extractor_Metadata()
- Test_CSRF_Extractors_ErrorTypes()
- Test_CSRF_FromContextMethods()
- Test_CSRF_FromContextMethods_Invalid()
- Test_CSRF_From_Custom()
- Test_CSRF_From_Form()
- Test_CSRF_From_Param()
- Test_CSRF_From_Query()
- Test_CSRF_InvalidURLHeaders()
- Test_CSRF_MultiUseToken()
- Test_CSRF_Next()
- Test_CSRF_Origin()
- Test_CSRF_Param_Extractor()
- Test_CSRF_Param_Extractor_Missing()
- Test_CSRF_Referer()
- Test_CSRF_SecFetchSite()
- Test_CSRF_Security_Warnings()
- Test_CSRF_SingleUseToken()
- Test_CSRF_TokenFromContext()
- Test_CSRF_TrustedOrigins()
- Test_CSRF_TrustedOrigins_InvalidOrigins()
- Test_CSRF_UnsafeHeaderValue()
- Test_CSRF_WithSession()
- Test_CSRF_WithSession_Middleware()
- Test_CacheAllowsSharedCacheMustRevalidateWithAuthorization()
- Test_CacheAllowsSharedCacheProxyRevalidateWithAuthorization()
- Test_CacheDateAndAgeHandling()
- Test_CacheMaxStaleRespectsProxyRevalidateSharedAuth()
- Test_CachePreservesCacheControlHeaders()
- Test_CachePrivateDirectiveWithAuthorization()
- Test_CacheStorage_CustomHeaders()
- Test_Cache_DateAndCacheControl()
- Test_Cache_MaxBytes_ConcurrencyAndRaceConditions()
- Test_Cache_VaryAndAuth()
- Test_Cache_WithETagAndNoCacheRequestDirective()
- Test_Limiter_Disable_Headers()
- Test_Limiter_Fixed_ExpirationFunc_FallbackOnZeroDuration()
- Test_Limiter_Fixed_Window_No_Skip_Choices()
- Test_Limiter_Headers()
- Test_Limiter_Next()
- Test_Limiter_Sliding_ExpirationFunc_FallbackOnNegativeDuration()
- Test_Limiter_Sliding_Window_ExpiresStalePrevHits()
- Test_Limiter_Sliding_Window_Skip_Failed_Requests()
- Test_Limiter_With_Max_Func()
- Test_Limiter_With_Max_Func_With_Zero_And_Limiter_Sliding()
- Test_deleteTokenFromStorage()
- Test_isInsecureCookieExtractor()
- Test_normalizeOrigin()
- Test_normalizeSchemeHost()
- Test_storageManager_logKey()
- TokenFromContext()
- appendWarningHeaders()
- bool()
- compareStrings()
- compareTokens()
- configDefault()
- contextRecordFrom()
- createOrExtendTokenInStorage()
- defaultErrorHandler()
- deleteTokenFromStorage()
- expireCSRFCookie()
- getRawFromStorage()
- isInsecureCookieExtractor()
- makeHashAuthFunc()
- newFailingCSRFStorage()
- newManager()
- newTrustedApp()
- newTrustedRequestCtx()
- normalizeOrigin()
- normalizeSchemeHost()
- originMatchesHost()
- refererMatchesHost()
- schemeAndHostMatch()
- setCSRFCookie()
- string()
- ttlDuration()
- updateCSRFCookie()
- validateExtractorSecurity()
- validateSecFetchSite()
Source Files
Source
Frequently Asked Questions
What is the Security subdomain?
Security is a subdomain in the fiber codebase, part of the FiberMiddleware domain. Implements CSRF, CORS, BasicAuth, and Helmet headers It contains 8 source files.
Which domain does Security belong to?
Security belongs to the FiberMiddleware domain.
What functions are in Security?
The Security subdomain contains 126 function(s): BenchmarkAppendMsgitem, BenchmarkAppendMsgitem, BenchmarkDecodeitem, BenchmarkEncodeitem, BenchmarkEncodeitem, BenchmarkMarshalMsgitem, BenchmarkUnmarshalitem, Benchmark_CSRF_SubdomainMatch, and 118 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free