Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 08 May 2023 10:39:37 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 271314] security/crowdsec-firewall-bouncer: api key generation error
Message-ID:  <bug-271314-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271314

            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.=
=20=20

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

tr: Illegal byte sequence

Use LC_ALL=3DC instead of LC_CTYPE in this case.

Or better independent of localization like this

head -c32 /dev/urandom | md5sum

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-271314-7788>