Created attachment 247430 [details] patch for crowdsec-firewall-bouncer 0.0.28.r3 Fix an issue that may cause the application unable to authenticate when the provided or generated API key contains the '/' character, due to a yaml parsing quirk.
Would you like this patch to be merged into the quarterly branch?
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=7873631186c85b4d5bdcffa307f9dd49155c36c0 commit 7873631186c85b4d5bdcffa307f9dd49155c36c0 Author: marco <marco@crowdsec.net> AuthorDate: 2024-01-03 12:03:52 +0000 Commit: Robert Clausecker <fuz@FreeBSD.org> CommitDate: 2024-03-19 14:18:50 +0000 security/crowdsec-firewall-bouncer: fix file quoting When the api key contains a '/' character, if the yaml field is not quoted it will include the comment as well. fix: quote the field and remove the comment with the bouncer name. PR: 276096 MFH: 2024Q1 security/crowdsec-firewall-bouncer/Makefile | 2 +- security/crowdsec-firewall-bouncer/files/crowdsec_firewall.in | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-)
A commit in branch 2024Q1 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=5ee0dd0975c31e9b0a705766c030d4741ca5c47c commit 5ee0dd0975c31e9b0a705766c030d4741ca5c47c Author: marco <marco@crowdsec.net> AuthorDate: 2024-01-03 12:03:52 +0000 Commit: Robert Clausecker <fuz@FreeBSD.org> CommitDate: 2024-03-19 14:23:29 +0000 security/crowdsec-firewall-bouncer: fix file quoting When the api key contains a '/' character, if the yaml field is not quoted it will include the comment as well. fix: quote the field and remove the comment with the bouncer name. PR: 276096 MFH: 2024Q1 (cherry picked from commit 7873631186c85b4d5bdcffa307f9dd49155c36c0) security/crowdsec-firewall-bouncer/Makefile | 2 +- security/crowdsec-firewall-bouncer/files/crowdsec_firewall.in | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-)
Thank you for your contribution.