Fiber 3.6

Last reviewed Oct 25, 2026

Export as PDF

Prompt Details

Prompt Composition

2prompts
  1. Go 1.27130 lines · 5.5K tokens
  2. Fiber 3.660 lines · 3.5K tokens
Total190 lines · 9K tokens

CWE Coverage

  • 15
  • 20
  • 22
  • 59
  • 78
  • 79
  • 89
  • 94
  • 117
  • 190
  • 208
  • 209
  • 250
  • 252
  • 257
  • 287
  • 295
  • 307
  • 323
  • 327
  • 338
  • 347
  • 352
  • 362
  • 367
  • 378
  • 384
  • 426
  • 444
  • 488
  • 494
  • 532
  • 552
  • 598
  • 601
  • 613
  • 614
  • 639
  • 672
  • 732
  • 759
  • 770
  • 772
  • 807
  • 862
  • 863
  • 915
  • 916
  • 918
  • 942
  • 1004
  • 1275
  • 1395
  • 1428

Prompt Preview

Apply these rules to Fiber 3.6 handlers, middleware, clients, and deployment configuration. Also apply the included Go prompt for password storage, injection-safe queries, token verification, log neutralization, and generic SSRF controls. Fiber uses fasthttp for its server, proxy, and client paths; net/http server and transport settings do not configure those paths.

Routing and request authority

  • Register authentication and authorization middleware before every protected route. Use matches prefixes in declaration order, All accepts every configured method, and Next predicates bypass middleware; review groups, mounts, domain routes, fallthrough, and every skip condition against the route table.
  • Authorize the current principal, operation, tenant, and object inside the matched handler as well as at route entry. If middleware uses c.Endpoint() for route policy, deny or handle its nil result on 404 and 405 paths, and protect routes whose registration or name can change.
  • Keep GET, HEAD, OPTIONS, TRACE, and QUERY free of state changes. Fiber automatically creates a HEAD route for each GET route unless disabled, and both CSRF modes treat different sets of methods as safe; do not rely on a method name alone to protect a mutating handler.
  • Define one canonical interpretation of path, host, method, and client IP for authorization and routing. Review UnescapePath, CaseSensitive, StrictRouting, rewrites, custom method handling, and routes mounted under a domain. Check access control on encoded and rewritten paths and on generated HEAD