Skip to content

Conversation

@LaurenceJJones
Copy link
Member

Since we are unix socket hypetrain on CrowdSec

I thought we can implement it over here too! to @blotus happiness

This PR does two things it implement unix socket support and trusted proxies support

headerSplit := strings.Split(header, ",")
ip, _, err := net.SplitHostPort(strings.TrimSpace(r.RemoteAddr))
if err != nil {
log.Errorf("error while spliting hostport for %s: %v", r.RemoteAddr, err)

Check failure

Code scanning / CodeQL

Clear-text logging of sensitive information

[Sensitive data returned by HTTP request headers](1) flows to a logging call.
@LaurenceJJones LaurenceJJones marked this pull request as draft April 8, 2025 13:32
@LaurenceJJones
Copy link
Member Author

Converting to draft as not pressing to merge, but will still keep it tied to main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant