(ctx context.Context)
| 126 | } |
| 127 | |
| 128 | func userFromContext(ctx context.Context) *identity.User { |
| 129 | if p := principalFromContext(ctx); p != nil { |
| 130 | return p.User |
| 131 | } |
| 132 | return nil |
| 133 | } |
| 134 | |
| 135 | // clientIP extracts the caller IP for per-IP limiting. It trusts only |
| 136 | // CF-Connecting-IP (set by Cloudflare and stripped from inbound requests |
nothing calls this directly
no test coverage detected