[Bug 271314] security/crowdsec-firewall-bouncer: api key generation error

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 08 May 2023 10:39:37 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271314

            Bug ID: 271314
           Summary: security/crowdsec-firewall-bouncer: api key generation
                    error
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: igorz@yandex.ru
                CC: marco@crowdsec.net
                CC: marco@crowdsec.net
             Flags: maintainer-feedback?(marco@crowdsec.net)

API key generation doesn't  work with UTF-8 and some others localizations.  

$(LC_CTYPE=C tr -dc A-Za-z0-9 </dev/urandom | head -c 8)

tr: Illegal byte sequence

Use LC_ALL=C instead of LC_CTYPE in this case.

Or better independent of localization like this

head -c32 /dev/urandom | md5sum

-- 
You are receiving this mail because:
You are the assignee for the bug.