crowdsec.git
16 months agoMerge crowdsec (1.4.6-9) import into refs/heads/workingbranch
Cyril Brulebois [Wed, 31 Jul 2024 10:03:56 +0000 (12:03 +0200)]
Merge crowdsec (1.4.6-9) import into refs/heads/workingbranch

16 months agoadd-patch-to-build-with-docker-26
Cyril Brulebois [Wed, 31 Jul 2024 10:03:56 +0000 (12:03 +0200)]
add-patch-to-build-with-docker-26

Gbp-Pq: Name 0020-add-patch-to-build-with-docker-26.patch

16 months agoDisable buggy test
Cyril Brulebois [Fri, 14 Jul 2023 18:29:16 +0000 (20:29 +0200)]
Disable buggy test

Adding the 0017 and 0018 patches had the side effect of uncovering
reliability issues in TestStreaming(). Let's not block the bugfix for
#1040976 on fixing that test: it's more important for the acquisition
bugfix to make its way into testing and into stable.

Gbp-Pq: Name 0019-disable-unreliable-test-TestStreaming.patch

16 months ago[PATCH] non-fatal error if some datasource can't be run (i.e. journalctl but systemd...
mmetc [Tue, 27 Jun 2023 08:46:25 +0000 (10:46 +0200)]
[PATCH] non-fatal error if some datasource can't be run (i.e. journalctl but systemd is missing) (#2310)

This on the other hand, gives a new fatal error when there are no valid datasources.
In the previous version, crowdsec kept running with just a warning if no
acquisition yaml or dir were specified.

Gbp-Pq: Name 0018-non-fatal-errors-for-invalid-datasources.patch

16 months agoAdd journalctl for ssh by default
Manuel Sabban [Wed, 28 Jun 2023 08:23:40 +0000 (10:23 +0200)]
Add journalctl for ssh by default

Origin: https://github.com/crowdsecurity/crowdsec/pull/2316/

Gbp-Pq: Name 0017-fix-default-acquisition.patch

16 months ago[PATCH] try to make reproducible build work (#2119)
Manuel Sabban [Mon, 13 Mar 2023 16:26:33 +0000 (17:26 +0100)]
[PATCH] try to make reproducible build work (#2119)

Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
Gbp-Pq: Name 0016-try-to-make-reproducible-build-work-2119.patch

16 months agoSilence “Crowdsec is not the latest version” messages.
Cyril Brulebois [Wed, 1 Mar 2023 22:58:00 +0000 (23:58 +0100)]
Silence “Crowdsec is not the latest version” messages.

We're shipping crowdsec in a stable Debian release, which isn't quite
compatible with a “latest and greatest” approach. :)

Upstream maintains a hub branch for the version we ship in stable anyway.

Gbp-Pq: Name 0015-silence-not-latest-version.patch

16 months agoSilence yaml patching
Cyril Brulebois [Wed, 1 Mar 2023 21:36:00 +0000 (22:36 +0100)]
Silence yaml patching

Being able to patch configuration files using .local snippets is relatively new,
and very useful when it comes to shipping mostly untouched configuration files,
with just a few values set in a .local file.

Unfortunately the initial code is very chatty and generates info-level messages
in all cscli calls.

An early patch upstream is ca12432a2acd2fd607e9fbea97fea3fb3f124678 (backported
here), which demotes those messages from info to debug. It left the “Prepending”
messages at info, but those haven't been seen with the current packages, so
that's left untouched in this patch as well.

Further refinement landed in cd4dabde0ec833552881dd36780ab847cf20882d but that
touches more code, and we're closing in freeze-wise, so leave it alone. All our
crowdsec* packages ship a README.Debian file, which should be sufficient in most
cases. When in doubt, adjusting the log level in specific commands should be
enough to figure out what's happening.

Gbp-Pq: Name 0014-silence-yaml-patching.patch

16 months agoSkip flakky tests
Cyril Brulebois [Wed, 1 Mar 2023 21:41:36 +0000 (22:41 +0100)]
Skip flakky tests

Initially (2023-02-15):
 - TestAPICSendMetrics
 - TestLongRunningQPS

Both aim at checking performance, and might error out when the underlying
system is “slow”. That was the case for the first test on arm64 (KO on
arm-arm-01, OK on arm-ubc-03) and on armel (KO on arm-ubc-06, OK on
arm-conova-02), and for the second test on mipsel (KO on mipsel-aql-02).

The same might happen on ci.debian.net, so disable both tests everywhere.

Extension (2023-03-01):
 - TestAPICCAPIPullIsOld
 - TestAPICHandleDeletedDecisions
 - TestAPICPullTop
 - TestGetDecisionsSinceCount

Gbp-Pq: Name 0013-skip-flakky-tests.patch

16 months agoRefresh code generated from protobuf specifications
Manuel Sabban [Fri, 25 Nov 2022 07:34:47 +0000 (08:34 +0100)]
Refresh code generated from protobuf specifications

Without this patch, crowdsec would build fine but would fail in its testsuite,
reaching the 10-minute timeout. This was tracked down to unexpected csplugins
crashes, due to mismatched protobuf versions.

This issue would go away with golang-goprotobuf-dev 1.5.2-1~exp1 (as found in
experimental for a while) instead of 1.3.5-2 (in unstable as of November 2022).
Since protobuf's build-time and run-time are particularly tricky to get right,
incompatible 1.3.x and 1.5.x versions are packaged separately and aren't
co-installable. Since most packages depend on the 1.3.x version, it's not
possible to pull the 1.5.x version to avoid this issue.

Therefore, upstream was kind enough to come up with this patch, refreshing the
generated code so that it works fine within unstable.

Signed-off-by: Cyril Brulebois <cyril@debamax.com>
Gbp-Pq: Name 0011-refresh-protobuf-code.patch

16 months agodisable-some-tests
Cyril Brulebois [Wed, 31 Jul 2024 10:03:56 +0000 (12:03 +0200)]
disable-some-tests

Gbp-Pq: Name 0010-disable-some-tests.patch

16 months agodisable-kafka-acquisition-module
Cyril Brulebois [Wed, 31 Jul 2024 10:03:56 +0000 (12:03 +0200)]
disable-kafka-acquisition-module

Gbp-Pq: Name 0009-disable-kafka-acquisition-module.patch

16 months agor3labs-diff-versions
Cyril Brulebois [Wed, 31 Jul 2024 10:03:56 +0000 (12:03 +0200)]
r3labs-diff-versions

Gbp-Pq: Name 0008-r3labs-diff-versions.patch

16 months agoAutomatically enable the online hub
Cyril Brulebois [Mon, 1 Mar 2021 20:40:04 +0000 (20:40 +0000)]
Automatically enable the online hub

By default, crowdsec comes with an offline copy of the hub (see
README.Debian). When running `cscli hub update`, ensure switching from
this offline copy to the online hub.

To ensure cscli doesn't disable anything that was configured (due to
symlinks from /etc/crowdsec becoming dangling all of a sudden), copy the
offline hub in the live directory (/var/lib/crowdsec/hub), and let
further operations (`cscli hub upgrade`, or `cscli <type> install`)
update the live directory as required.

Signed-off-by: Cyril Brulebois <cyril@debamax.com>
Gbp-Pq: Name 0007-automatically-enable-online-hub.patch

16 months agoAdjust default config
Cyril Brulebois [Mon, 1 Mar 2021 14:11:36 +0000 (14:11 +0000)]
Adjust default config

Let's have all hub-related data under /var/lib/crowdsec/hub instead of
the default /etc/crowdsec/hub directory.

Also fix plugin directory.

Also delete pid_dir, which would otherwise generate this at runtime:

    Deprecation warning: the pid_dir config can be safely removed and is not required

Signed-off-by: Cyril Brulebois <cyril@debamax.com>
Gbp-Pq: Name 0005-adjust-config.patch

16 months agoDisable geoip-enrich in the hub files
Cyril Brulebois [Fri, 22 Jan 2021 14:35:42 +0000 (14:35 +0000)]
Disable geoip-enrich in the hub files

It would download GeoLite2*.mmdb files from the network. Let users
enable the hub by themselves if they want to use it.

When refreshing this patch, don't forget to update both digest and
content fields, using:

 - digest: sha256sum hub1/collections/crowdsecurity/linux.yaml
 - content: base64 -w 0 /etc/crowdsec/collections/linux.yaml

Gbp-Pq: Name 0004-disable-geoip-enrich.patch

16 months agoAdjust systemd unit
Cyril Brulebois [Fri, 22 Jan 2021 13:25:54 +0000 (13:25 +0000)]
Adjust systemd unit

 - Adjust paths for the packaged crowdsec binary (/usr/bin).
 - Drop commented out ExecStartPost entirely.
 - Drop syslog.target dependency, it's socket-activated (thanks to the
   systemd-service-file-refers-to-obsolete-target lintian tag).
 - Ensure both local and online API credentials have been defined.

Gbp-Pq: Name 0003-adjust-systemd-unit.patch

16 months agocrowdsec (1.4.6-9) unstable; urgency=medium
Cyril Brulebois [Wed, 31 Jul 2024 10:03:56 +0000 (12:03 +0200)]
crowdsec (1.4.6-9) unstable; urgency=medium

  [ Nilesh Patra ]
  * Fix FTBFS with docker.io 26+ (Closes: #1077303):
     - Add 0020-add-patch-to-build-with-docker-26.patch
     - Version golang-github-docker-docker-dev (Build-)Depends accordingly.

[dgit import unpatched crowdsec 1.4.6-9]

16 months agoImport crowdsec_1.4.6-9.debian.tar.xz
Cyril Brulebois [Wed, 31 Jul 2024 10:03:56 +0000 (12:03 +0200)]
Import crowdsec_1.4.6-9.debian.tar.xz

[dgit import tarball crowdsec 1.4.6-9 crowdsec_1.4.6-9.debian.tar.xz]

17 months agoMerge crowdsec (1.4.6-8) import into refs/heads/workingbranch
Cyril Brulebois [Sun, 14 Jul 2024 02:35:08 +0000 (04:35 +0200)]
Merge crowdsec (1.4.6-8) import into refs/heads/workingbranch

17 months agoDisable buggy test
Cyril Brulebois [Fri, 14 Jul 2023 18:29:16 +0000 (20:29 +0200)]
Disable buggy test

Adding the 0017 and 0018 patches had the side effect of uncovering
reliability issues in TestStreaming(). Let's not block the bugfix for
#1040976 on fixing that test: it's more important for the acquisition
bugfix to make its way into testing and into stable.

Gbp-Pq: Name 0019-disable-unreliable-test-TestStreaming.patch

17 months ago[PATCH] non-fatal error if some datasource can't be run (i.e. journalctl but systemd...
mmetc [Tue, 27 Jun 2023 08:46:25 +0000 (10:46 +0200)]
[PATCH] non-fatal error if some datasource can't be run (i.e. journalctl but systemd is missing) (#2310)

This on the other hand, gives a new fatal error when there are no valid datasources.
In the previous version, crowdsec kept running with just a warning if no
acquisition yaml or dir were specified.

Gbp-Pq: Name 0018-non-fatal-errors-for-invalid-datasources.patch

17 months agoAdd journalctl for ssh by default
Manuel Sabban [Wed, 28 Jun 2023 08:23:40 +0000 (10:23 +0200)]
Add journalctl for ssh by default

Origin: https://github.com/crowdsecurity/crowdsec/pull/2316/

Gbp-Pq: Name 0017-fix-default-acquisition.patch

17 months ago[PATCH] try to make reproducible build work (#2119)
Manuel Sabban [Mon, 13 Mar 2023 16:26:33 +0000 (17:26 +0100)]
[PATCH] try to make reproducible build work (#2119)

Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
Gbp-Pq: Name 0016-try-to-make-reproducible-build-work-2119.patch

17 months agoSilence “Crowdsec is not the latest version” messages.
Cyril Brulebois [Wed, 1 Mar 2023 22:58:00 +0000 (23:58 +0100)]
Silence “Crowdsec is not the latest version” messages.

We're shipping crowdsec in a stable Debian release, which isn't quite
compatible with a “latest and greatest” approach. :)

Upstream maintains a hub branch for the version we ship in stable anyway.

Gbp-Pq: Name 0015-silence-not-latest-version.patch

17 months agoSilence yaml patching
Cyril Brulebois [Wed, 1 Mar 2023 21:36:00 +0000 (22:36 +0100)]
Silence yaml patching

Being able to patch configuration files using .local snippets is relatively new,
and very useful when it comes to shipping mostly untouched configuration files,
with just a few values set in a .local file.

Unfortunately the initial code is very chatty and generates info-level messages
in all cscli calls.

An early patch upstream is ca12432a2acd2fd607e9fbea97fea3fb3f124678 (backported
here), which demotes those messages from info to debug. It left the “Prepending”
messages at info, but those haven't been seen with the current packages, so
that's left untouched in this patch as well.

Further refinement landed in cd4dabde0ec833552881dd36780ab847cf20882d but that
touches more code, and we're closing in freeze-wise, so leave it alone. All our
crowdsec* packages ship a README.Debian file, which should be sufficient in most
cases. When in doubt, adjusting the log level in specific commands should be
enough to figure out what's happening.

Gbp-Pq: Name 0014-silence-yaml-patching.patch

17 months agoSkip flakky tests
Cyril Brulebois [Wed, 1 Mar 2023 21:41:36 +0000 (22:41 +0100)]
Skip flakky tests

Initially (2023-02-15):
 - TestAPICSendMetrics
 - TestLongRunningQPS

Both aim at checking performance, and might error out when the underlying
system is “slow”. That was the case for the first test on arm64 (KO on
arm-arm-01, OK on arm-ubc-03) and on armel (KO on arm-ubc-06, OK on
arm-conova-02), and for the second test on mipsel (KO on mipsel-aql-02).

The same might happen on ci.debian.net, so disable both tests everywhere.

Extension (2023-03-01):
 - TestAPICCAPIPullIsOld
 - TestAPICHandleDeletedDecisions
 - TestAPICPullTop
 - TestGetDecisionsSinceCount

Gbp-Pq: Name 0013-skip-flakky-tests.patch

17 months agoRefresh code generated from protobuf specifications
Manuel Sabban [Fri, 25 Nov 2022 07:34:47 +0000 (08:34 +0100)]
Refresh code generated from protobuf specifications

Without this patch, crowdsec would build fine but would fail in its testsuite,
reaching the 10-minute timeout. This was tracked down to unexpected csplugins
crashes, due to mismatched protobuf versions.

This issue would go away with golang-goprotobuf-dev 1.5.2-1~exp1 (as found in
experimental for a while) instead of 1.3.5-2 (in unstable as of November 2022).
Since protobuf's build-time and run-time are particularly tricky to get right,
incompatible 1.3.x and 1.5.x versions are packaged separately and aren't
co-installable. Since most packages depend on the 1.3.x version, it's not
possible to pull the 1.5.x version to avoid this issue.

Therefore, upstream was kind enough to come up with this patch, refreshing the
generated code so that it works fine within unstable.

Signed-off-by: Cyril Brulebois <cyril@debamax.com>
Gbp-Pq: Name 0011-refresh-protobuf-code.patch

17 months agodisable-some-tests
Cyril Brulebois [Sun, 14 Jul 2024 02:35:08 +0000 (04:35 +0200)]
disable-some-tests

Gbp-Pq: Name 0010-disable-some-tests.patch

17 months agodisable-kafka-acquisition-module
Cyril Brulebois [Sun, 14 Jul 2024 02:35:08 +0000 (04:35 +0200)]
disable-kafka-acquisition-module

Gbp-Pq: Name 0009-disable-kafka-acquisition-module.patch

17 months agor3labs-diff-versions
Cyril Brulebois [Sun, 14 Jul 2024 02:35:08 +0000 (04:35 +0200)]
r3labs-diff-versions

Gbp-Pq: Name 0008-r3labs-diff-versions.patch

17 months agoAutomatically enable the online hub
Cyril Brulebois [Mon, 1 Mar 2021 20:40:04 +0000 (20:40 +0000)]
Automatically enable the online hub

By default, crowdsec comes with an offline copy of the hub (see
README.Debian). When running `cscli hub update`, ensure switching from
this offline copy to the online hub.

To ensure cscli doesn't disable anything that was configured (due to
symlinks from /etc/crowdsec becoming dangling all of a sudden), copy the
offline hub in the live directory (/var/lib/crowdsec/hub), and let
further operations (`cscli hub upgrade`, or `cscli <type> install`)
update the live directory as required.

Signed-off-by: Cyril Brulebois <cyril@debamax.com>
Gbp-Pq: Name 0007-automatically-enable-online-hub.patch

17 months agoAdjust default config
Cyril Brulebois [Mon, 1 Mar 2021 14:11:36 +0000 (14:11 +0000)]
Adjust default config

Let's have all hub-related data under /var/lib/crowdsec/hub instead of
the default /etc/crowdsec/hub directory.

Also fix plugin directory.

Also delete pid_dir, which would otherwise generate this at runtime:

    Deprecation warning: the pid_dir config can be safely removed and is not required

Signed-off-by: Cyril Brulebois <cyril@debamax.com>
Gbp-Pq: Name 0005-adjust-config.patch

17 months agoDisable geoip-enrich in the hub files
Cyril Brulebois [Fri, 22 Jan 2021 14:35:42 +0000 (14:35 +0000)]
Disable geoip-enrich in the hub files

It would download GeoLite2*.mmdb files from the network. Let users
enable the hub by themselves if they want to use it.

When refreshing this patch, don't forget to update both digest and
content fields, using:

 - digest: sha256sum hub1/collections/crowdsecurity/linux.yaml
 - content: base64 -w 0 /etc/crowdsec/collections/linux.yaml

Gbp-Pq: Name 0004-disable-geoip-enrich.patch

17 months agoAdjust systemd unit
Cyril Brulebois [Fri, 22 Jan 2021 13:25:54 +0000 (13:25 +0000)]
Adjust systemd unit

 - Adjust paths for the packaged crowdsec binary (/usr/bin).
 - Drop commented out ExecStartPost entirely.
 - Drop syslog.target dependency, it's socket-activated (thanks to the
   systemd-service-file-refers-to-obsolete-target lintian tag).
 - Ensure both local and online API credentials have been defined.

Gbp-Pq: Name 0003-adjust-systemd-unit.patch

17 months agocrowdsec (1.4.6-8) unstable; urgency=medium
Cyril Brulebois [Sun, 14 Jul 2024 02:35:08 +0000 (04:35 +0200)]
crowdsec (1.4.6-8) unstable; urgency=medium

  * Add a symlink to config/crowdsec.service from debian/, and drop it
    from crowdsec.install, leaving it up to dh_installsystemd to choose
    where to install it (Closes: #1054084).

[dgit import unpatched crowdsec 1.4.6-8]

17 months agoImport crowdsec_1.4.6-8.debian.tar.xz
Cyril Brulebois [Sun, 14 Jul 2024 02:35:08 +0000 (04:35 +0200)]
Import crowdsec_1.4.6-8.debian.tar.xz

[dgit import tarball crowdsec 1.4.6-8 crowdsec_1.4.6-8.debian.tar.xz]

21 months agoMerge crowdsec (1.4.6-7) import into refs/heads/workingbranch
Cyril Brulebois [Thu, 14 Mar 2024 04:08:07 +0000 (05:08 +0100)]
Merge crowdsec (1.4.6-7) import into refs/heads/workingbranch

21 months agoDisable buggy test
Cyril Brulebois [Fri, 14 Jul 2023 18:29:16 +0000 (20:29 +0200)]
Disable buggy test

Adding the 0017 and 0018 patches had the side effect of uncovering
reliability issues in TestStreaming(). Let's not block the bugfix for
#1040976 on fixing that test: it's more important for the acquisition
bugfix to make its way into testing and into stable.

Gbp-Pq: Name 0019-disable-unreliable-test-TestStreaming.patch

21 months ago[PATCH] non-fatal error if some datasource can't be run (i.e. journalctl but systemd...
mmetc [Tue, 27 Jun 2023 08:46:25 +0000 (10:46 +0200)]
[PATCH] non-fatal error if some datasource can't be run (i.e. journalctl but systemd is missing) (#2310)

This on the other hand, gives a new fatal error when there are no valid datasources.
In the previous version, crowdsec kept running with just a warning if no
acquisition yaml or dir were specified.

Gbp-Pq: Name 0018-non-fatal-errors-for-invalid-datasources.patch

21 months agoAdd journalctl for ssh by default
Manuel Sabban [Wed, 28 Jun 2023 08:23:40 +0000 (10:23 +0200)]
Add journalctl for ssh by default

Origin: https://github.com/crowdsecurity/crowdsec/pull/2316/

Gbp-Pq: Name 0017-fix-default-acquisition.patch

21 months ago[PATCH] try to make reproducible build work (#2119)
Manuel Sabban [Mon, 13 Mar 2023 16:26:33 +0000 (17:26 +0100)]
[PATCH] try to make reproducible build work (#2119)

Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
Gbp-Pq: Name 0016-try-to-make-reproducible-build-work-2119.patch

21 months agoSilence “Crowdsec is not the latest version” messages.
Cyril Brulebois [Wed, 1 Mar 2023 22:58:00 +0000 (23:58 +0100)]
Silence “Crowdsec is not the latest version” messages.

We're shipping crowdsec in a stable Debian release, which isn't quite
compatible with a “latest and greatest” approach. :)

Upstream maintains a hub branch for the version we ship in stable anyway.

Gbp-Pq: Name 0015-silence-not-latest-version.patch

21 months agoSilence yaml patching
Cyril Brulebois [Wed, 1 Mar 2023 21:36:00 +0000 (22:36 +0100)]
Silence yaml patching

Being able to patch configuration files using .local snippets is relatively new,
and very useful when it comes to shipping mostly untouched configuration files,
with just a few values set in a .local file.

Unfortunately the initial code is very chatty and generates info-level messages
in all cscli calls.

An early patch upstream is ca12432a2acd2fd607e9fbea97fea3fb3f124678 (backported
here), which demotes those messages from info to debug. It left the “Prepending”
messages at info, but those haven't been seen with the current packages, so
that's left untouched in this patch as well.

Further refinement landed in cd4dabde0ec833552881dd36780ab847cf20882d but that
touches more code, and we're closing in freeze-wise, so leave it alone. All our
crowdsec* packages ship a README.Debian file, which should be sufficient in most
cases. When in doubt, adjusting the log level in specific commands should be
enough to figure out what's happening.

Gbp-Pq: Name 0014-silence-yaml-patching.patch

21 months agoSkip flakky tests
Cyril Brulebois [Wed, 1 Mar 2023 21:41:36 +0000 (22:41 +0100)]
Skip flakky tests

Initially (2023-02-15):
 - TestAPICSendMetrics
 - TestLongRunningQPS

Both aim at checking performance, and might error out when the underlying
system is “slow”. That was the case for the first test on arm64 (KO on
arm-arm-01, OK on arm-ubc-03) and on armel (KO on arm-ubc-06, OK on
arm-conova-02), and for the second test on mipsel (KO on mipsel-aql-02).

The same might happen on ci.debian.net, so disable both tests everywhere.

Extension (2023-03-01):
 - TestAPICCAPIPullIsOld
 - TestAPICHandleDeletedDecisions
 - TestAPICPullTop
 - TestGetDecisionsSinceCount

Gbp-Pq: Name 0013-skip-flakky-tests.patch

21 months agoRefresh code generated from protobuf specifications
Manuel Sabban [Fri, 25 Nov 2022 07:34:47 +0000 (08:34 +0100)]
Refresh code generated from protobuf specifications

Without this patch, crowdsec would build fine but would fail in its testsuite,
reaching the 10-minute timeout. This was tracked down to unexpected csplugins
crashes, due to mismatched protobuf versions.

This issue would go away with golang-goprotobuf-dev 1.5.2-1~exp1 (as found in
experimental for a while) instead of 1.3.5-2 (in unstable as of November 2022).
Since protobuf's build-time and run-time are particularly tricky to get right,
incompatible 1.3.x and 1.5.x versions are packaged separately and aren't
co-installable. Since most packages depend on the 1.3.x version, it's not
possible to pull the 1.5.x version to avoid this issue.

Therefore, upstream was kind enough to come up with this patch, refreshing the
generated code so that it works fine within unstable.

Signed-off-by: Cyril Brulebois <cyril@debamax.com>
Gbp-Pq: Name 0011-refresh-protobuf-code.patch

21 months agodisable-some-tests
Cyril Brulebois [Thu, 14 Mar 2024 04:08:07 +0000 (05:08 +0100)]
disable-some-tests

Gbp-Pq: Name 0010-disable-some-tests.patch

21 months agodisable-kafka-acquisition-module
Cyril Brulebois [Thu, 14 Mar 2024 04:08:07 +0000 (05:08 +0100)]
disable-kafka-acquisition-module

Gbp-Pq: Name 0009-disable-kafka-acquisition-module.patch

21 months agor3labs-diff-versions
Cyril Brulebois [Thu, 14 Mar 2024 04:08:07 +0000 (05:08 +0100)]
r3labs-diff-versions

Gbp-Pq: Name 0008-r3labs-diff-versions.patch

21 months agoAutomatically enable the online hub
Cyril Brulebois [Mon, 1 Mar 2021 20:40:04 +0000 (20:40 +0000)]
Automatically enable the online hub

By default, crowdsec comes with an offline copy of the hub (see
README.Debian). When running `cscli hub update`, ensure switching from
this offline copy to the online hub.

To ensure cscli doesn't disable anything that was configured (due to
symlinks from /etc/crowdsec becoming dangling all of a sudden), copy the
offline hub in the live directory (/var/lib/crowdsec/hub), and let
further operations (`cscli hub upgrade`, or `cscli <type> install`)
update the live directory as required.

Signed-off-by: Cyril Brulebois <cyril@debamax.com>
Gbp-Pq: Name 0007-automatically-enable-online-hub.patch

21 months agoAdjust default config
Cyril Brulebois [Mon, 1 Mar 2021 14:11:36 +0000 (14:11 +0000)]
Adjust default config

Let's have all hub-related data under /var/lib/crowdsec/hub instead of
the default /etc/crowdsec/hub directory.

Also fix plugin directory.

Also delete pid_dir, which would otherwise generate this at runtime:

    Deprecation warning: the pid_dir config can be safely removed and is not required

Signed-off-by: Cyril Brulebois <cyril@debamax.com>
Gbp-Pq: Name 0005-adjust-config.patch

21 months agoDisable geoip-enrich in the hub files
Cyril Brulebois [Fri, 22 Jan 2021 14:35:42 +0000 (14:35 +0000)]
Disable geoip-enrich in the hub files

It would download GeoLite2*.mmdb files from the network. Let users
enable the hub by themselves if they want to use it.

When refreshing this patch, don't forget to update both digest and
content fields, using:

 - digest: sha256sum hub1/collections/crowdsecurity/linux.yaml
 - content: base64 -w 0 /etc/crowdsec/collections/linux.yaml

Gbp-Pq: Name 0004-disable-geoip-enrich.patch

21 months agoAdjust systemd unit
Cyril Brulebois [Fri, 22 Jan 2021 13:25:54 +0000 (13:25 +0000)]
Adjust systemd unit

 - Adjust paths for the packaged crowdsec binary (/usr/bin).
 - Drop commented out ExecStartPost entirely.
 - Drop syslog.target dependency, it's socket-activated (thanks to the
   systemd-service-file-refers-to-obsolete-target lintian tag).
 - Ensure both local and online API credentials have been defined.

Gbp-Pq: Name 0003-adjust-systemd-unit.patch

21 months agocrowdsec (1.4.6-7) unstable; urgency=medium
Cyril Brulebois [Thu, 14 Mar 2024 04:08:07 +0000 (05:08 +0100)]
crowdsec (1.4.6-7) unstable; urgency=medium

  * Fix missing build-dependency on passwd, thanks to Santiago Vila for
    the bug report and the analysis (Closes: #1057549).

[dgit import unpatched crowdsec 1.4.6-7]

21 months agoImport crowdsec_1.4.6-7.debian.tar.xz
Cyril Brulebois [Thu, 14 Mar 2024 04:08:07 +0000 (05:08 +0100)]
Import crowdsec_1.4.6-7.debian.tar.xz

[dgit import tarball crowdsec 1.4.6-7 crowdsec_1.4.6-7.debian.tar.xz]

2 years agoMerge crowdsec (1.4.6-6) import into refs/heads/workingbranch
Cyril Brulebois [Fri, 14 Jul 2023 18:54:27 +0000 (19:54 +0100)]
Merge crowdsec (1.4.6-6) import into refs/heads/workingbranch

2 years agoDisable buggy test
Cyril Brulebois [Fri, 14 Jul 2023 18:29:16 +0000 (20:29 +0200)]
Disable buggy test

Adding the 0017 and 0018 patches had the side effect of uncovering
reliability issues in TestStreaming(). Let's not block the bugfix for
#1040976 on fixing that test: it's more important for the acquisition
bugfix to make its way into testing and into stable.

Gbp-Pq: Name 0019-disable-unreliable-test-TestStreaming.patch

2 years ago[PATCH] non-fatal error if some datasource can't be run (i.e. journalctl but systemd...
mmetc [Tue, 27 Jun 2023 08:46:25 +0000 (10:46 +0200)]
[PATCH] non-fatal error if some datasource can't be run (i.e. journalctl but systemd is missing) (#2310)

This on the other hand, gives a new fatal error when there are no valid datasources.
In the previous version, crowdsec kept running with just a warning if no
acquisition yaml or dir were specified.

Gbp-Pq: Name 0018-non-fatal-errors-for-invalid-datasources.patch

2 years agoAdd journalctl for ssh by default
Manuel Sabban [Wed, 28 Jun 2023 08:23:40 +0000 (10:23 +0200)]
Add journalctl for ssh by default

Origin: https://github.com/crowdsecurity/crowdsec/pull/2316/

Gbp-Pq: Name 0017-fix-default-acquisition.patch

2 years ago[PATCH] try to make reproducible build work (#2119)
Manuel Sabban [Mon, 13 Mar 2023 16:26:33 +0000 (17:26 +0100)]
[PATCH] try to make reproducible build work (#2119)

Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
Gbp-Pq: Name 0016-try-to-make-reproducible-build-work-2119.patch

2 years agoSilence “Crowdsec is not the latest version” messages.
Cyril Brulebois [Wed, 1 Mar 2023 22:58:00 +0000 (23:58 +0100)]
Silence “Crowdsec is not the latest version” messages.

We're shipping crowdsec in a stable Debian release, which isn't quite
compatible with a “latest and greatest” approach. :)

Upstream maintains a hub branch for the version we ship in stable anyway.

Gbp-Pq: Name 0015-silence-not-latest-version.patch

2 years agoSilence yaml patching
Cyril Brulebois [Wed, 1 Mar 2023 21:36:00 +0000 (22:36 +0100)]
Silence yaml patching

Being able to patch configuration files using .local snippets is relatively new,
and very useful when it comes to shipping mostly untouched configuration files,
with just a few values set in a .local file.

Unfortunately the initial code is very chatty and generates info-level messages
in all cscli calls.

An early patch upstream is ca12432a2acd2fd607e9fbea97fea3fb3f124678 (backported
here), which demotes those messages from info to debug. It left the “Prepending”
messages at info, but those haven't been seen with the current packages, so
that's left untouched in this patch as well.

Further refinement landed in cd4dabde0ec833552881dd36780ab847cf20882d but that
touches more code, and we're closing in freeze-wise, so leave it alone. All our
crowdsec* packages ship a README.Debian file, which should be sufficient in most
cases. When in doubt, adjusting the log level in specific commands should be
enough to figure out what's happening.

Gbp-Pq: Name 0014-silence-yaml-patching.patch

2 years agoSkip flakky tests
Cyril Brulebois [Wed, 1 Mar 2023 21:41:36 +0000 (22:41 +0100)]
Skip flakky tests

Initially (2023-02-15):
 - TestAPICSendMetrics
 - TestLongRunningQPS

Both aim at checking performance, and might error out when the underlying
system is “slow”. That was the case for the first test on arm64 (KO on
arm-arm-01, OK on arm-ubc-03) and on armel (KO on arm-ubc-06, OK on
arm-conova-02), and for the second test on mipsel (KO on mipsel-aql-02).

The same might happen on ci.debian.net, so disable both tests everywhere.

Extension (2023-03-01):
 - TestAPICCAPIPullIsOld
 - TestAPICHandleDeletedDecisions
 - TestAPICPullTop
 - TestGetDecisionsSinceCount

Gbp-Pq: Name 0013-skip-flakky-tests.patch

2 years agoRefresh code generated from protobuf specifications
Manuel Sabban [Fri, 25 Nov 2022 07:34:47 +0000 (08:34 +0100)]
Refresh code generated from protobuf specifications

Without this patch, crowdsec would build fine but would fail in its testsuite,
reaching the 10-minute timeout. This was tracked down to unexpected csplugins
crashes, due to mismatched protobuf versions.

This issue would go away with golang-goprotobuf-dev 1.5.2-1~exp1 (as found in
experimental for a while) instead of 1.3.5-2 (in unstable as of November 2022).
Since protobuf's build-time and run-time are particularly tricky to get right,
incompatible 1.3.x and 1.5.x versions are packaged separately and aren't
co-installable. Since most packages depend on the 1.3.x version, it's not
possible to pull the 1.5.x version to avoid this issue.

Therefore, upstream was kind enough to come up with this patch, refreshing the
generated code so that it works fine within unstable.

Signed-off-by: Cyril Brulebois <cyril@debamax.com>
Gbp-Pq: Name 0011-refresh-protobuf-code.patch

2 years agodisable-some-tests
Cyril Brulebois [Fri, 14 Jul 2023 18:54:27 +0000 (19:54 +0100)]
disable-some-tests

Gbp-Pq: Name 0010-disable-some-tests.patch

2 years agodisable-kafka-acquisition-module
Cyril Brulebois [Fri, 14 Jul 2023 18:54:27 +0000 (19:54 +0100)]
disable-kafka-acquisition-module

Gbp-Pq: Name 0009-disable-kafka-acquisition-module.patch

2 years agor3labs-diff-versions
Cyril Brulebois [Fri, 14 Jul 2023 18:54:27 +0000 (19:54 +0100)]
r3labs-diff-versions

Gbp-Pq: Name 0008-r3labs-diff-versions.patch

2 years agoAutomatically enable the online hub
Cyril Brulebois [Mon, 1 Mar 2021 20:40:04 +0000 (20:40 +0000)]
Automatically enable the online hub

By default, crowdsec comes with an offline copy of the hub (see
README.Debian). When running `cscli hub update`, ensure switching from
this offline copy to the online hub.

To ensure cscli doesn't disable anything that was configured (due to
symlinks from /etc/crowdsec becoming dangling all of a sudden), copy the
offline hub in the live directory (/var/lib/crowdsec/hub), and let
further operations (`cscli hub upgrade`, or `cscli <type> install`)
update the live directory as required.

Signed-off-by: Cyril Brulebois <cyril@debamax.com>
Gbp-Pq: Name 0007-automatically-enable-online-hub.patch

2 years agoAdjust default config
Cyril Brulebois [Mon, 1 Mar 2021 14:11:36 +0000 (14:11 +0000)]
Adjust default config

Let's have all hub-related data under /var/lib/crowdsec/hub instead of
the default /etc/crowdsec/hub directory.

Also fix plugin directory.

Also delete pid_dir, which would otherwise generate this at runtime:

    Deprecation warning: the pid_dir config can be safely removed and is not required

Signed-off-by: Cyril Brulebois <cyril@debamax.com>
Gbp-Pq: Name 0005-adjust-config.patch

2 years agoDisable geoip-enrich in the hub files
Cyril Brulebois [Fri, 22 Jan 2021 14:35:42 +0000 (14:35 +0000)]
Disable geoip-enrich in the hub files

It would download GeoLite2*.mmdb files from the network. Let users
enable the hub by themselves if they want to use it.

When refreshing this patch, don't forget to update both digest and
content fields, using:

 - digest: sha256sum hub1/collections/crowdsecurity/linux.yaml
 - content: base64 -w 0 /etc/crowdsec/collections/linux.yaml

Gbp-Pq: Name 0004-disable-geoip-enrich.patch

2 years agoAdjust systemd unit
Cyril Brulebois [Fri, 22 Jan 2021 13:25:54 +0000 (13:25 +0000)]
Adjust systemd unit

 - Adjust paths for the packaged crowdsec binary (/usr/bin).
 - Drop commented out ExecStartPost entirely.
 - Drop syslog.target dependency, it's socket-activated (thanks to the
   systemd-service-file-refers-to-obsolete-target lintian tag).
 - Ensure both local and online API credentials have been defined.

Gbp-Pq: Name 0003-adjust-systemd-unit.patch

2 years agocrowdsec (1.4.6-6) unstable; urgency=medium
Cyril Brulebois [Fri, 14 Jul 2023 18:54:27 +0000 (19:54 +0100)]
crowdsec (1.4.6-6) unstable; urgency=medium

  * Disable unreliable TestStreaming test, as seen under autopkgtest
    (https://github.com/crowdsecurity/crowdsec/issues/2352):
     - 0019-disable-unreliable-test-TestStreaming.patch

[dgit import unpatched crowdsec 1.4.6-6]

2 years agoImport crowdsec_1.4.6-6.debian.tar.xz
Cyril Brulebois [Fri, 14 Jul 2023 18:54:27 +0000 (19:54 +0100)]
Import crowdsec_1.4.6-6.debian.tar.xz

[dgit import tarball crowdsec 1.4.6-6 crowdsec_1.4.6-6.debian.tar.xz]

2 years agoMerge crowdsec (1.4.6-4) import into refs/heads/workingbranch
Cyril Brulebois [Wed, 31 May 2023 16:54:17 +0000 (17:54 +0100)]
Merge crowdsec (1.4.6-4) import into refs/heads/workingbranch

2 years ago[PATCH] try to make reproducible build work (#2119)
Manuel Sabban [Mon, 13 Mar 2023 16:26:33 +0000 (17:26 +0100)]
[PATCH] try to make reproducible build work (#2119)

Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
Gbp-Pq: Name 0016-try-to-make-reproducible-build-work-2119.patch

2 years agoSilence “Crowdsec is not the latest version” messages.
Cyril Brulebois [Wed, 1 Mar 2023 22:58:00 +0000 (23:58 +0100)]
Silence “Crowdsec is not the latest version” messages.

We're shipping crowdsec in a stable Debian release, which isn't quite
compatible with a “latest and greatest” approach. :)

Upstream maintains a hub branch for the version we ship in stable anyway.

Gbp-Pq: Name 0015-silence-not-latest-version.patch

2 years agoSilence yaml patching
Cyril Brulebois [Wed, 1 Mar 2023 21:36:00 +0000 (22:36 +0100)]
Silence yaml patching

Being able to patch configuration files using .local snippets is relatively new,
and very useful when it comes to shipping mostly untouched configuration files,
with just a few values set in a .local file.

Unfortunately the initial code is very chatty and generates info-level messages
in all cscli calls.

An early patch upstream is ca12432a2acd2fd607e9fbea97fea3fb3f124678 (backported
here), which demotes those messages from info to debug. It left the “Prepending”
messages at info, but those haven't been seen with the current packages, so
that's left untouched in this patch as well.

Further refinement landed in cd4dabde0ec833552881dd36780ab847cf20882d but that
touches more code, and we're closing in freeze-wise, so leave it alone. All our
crowdsec* packages ship a README.Debian file, which should be sufficient in most
cases. When in doubt, adjusting the log level in specific commands should be
enough to figure out what's happening.

Gbp-Pq: Name 0014-silence-yaml-patching.patch

2 years agoSkip flakky tests
Cyril Brulebois [Wed, 1 Mar 2023 21:41:36 +0000 (22:41 +0100)]
Skip flakky tests

Initially (2023-02-15):
 - TestAPICSendMetrics
 - TestLongRunningQPS

Both aim at checking performance, and might error out when the underlying
system is “slow”. That was the case for the first test on arm64 (KO on
arm-arm-01, OK on arm-ubc-03) and on armel (KO on arm-ubc-06, OK on
arm-conova-02), and for the second test on mipsel (KO on mipsel-aql-02).

The same might happen on ci.debian.net, so disable both tests everywhere.

Extension (2023-03-01):
 - TestAPICCAPIPullIsOld
 - TestAPICHandleDeletedDecisions
 - TestAPICPullTop
 - TestGetDecisionsSinceCount

Gbp-Pq: Name 0013-skip-flakky-tests.patch

2 years agoRefresh code generated from protobuf specifications
Manuel Sabban [Fri, 25 Nov 2022 07:34:47 +0000 (08:34 +0100)]
Refresh code generated from protobuf specifications

Without this patch, crowdsec would build fine but would fail in its testsuite,
reaching the 10-minute timeout. This was tracked down to unexpected csplugins
crashes, due to mismatched protobuf versions.

This issue would go away with golang-goprotobuf-dev 1.5.2-1~exp1 (as found in
experimental for a while) instead of 1.3.5-2 (in unstable as of November 2022).
Since protobuf's build-time and run-time are particularly tricky to get right,
incompatible 1.3.x and 1.5.x versions are packaged separately and aren't
co-installable. Since most packages depend on the 1.3.x version, it's not
possible to pull the 1.5.x version to avoid this issue.

Therefore, upstream was kind enough to come up with this patch, refreshing the
generated code so that it works fine within unstable.

Signed-off-by: Cyril Brulebois <cyril@debamax.com>
Gbp-Pq: Name 0011-refresh-protobuf-code.patch

2 years agodisable-some-tests
Cyril Brulebois [Wed, 31 May 2023 16:54:17 +0000 (17:54 +0100)]
disable-some-tests

Gbp-Pq: Name 0010-disable-some-tests.patch

2 years agodisable-kafka-acquisition-module
Cyril Brulebois [Wed, 31 May 2023 16:54:17 +0000 (17:54 +0100)]
disable-kafka-acquisition-module

Gbp-Pq: Name 0009-disable-kafka-acquisition-module.patch

2 years agor3labs-diff-versions
Cyril Brulebois [Wed, 31 May 2023 16:54:17 +0000 (17:54 +0100)]
r3labs-diff-versions

Gbp-Pq: Name 0008-r3labs-diff-versions.patch

2 years agoAutomatically enable the online hub
Cyril Brulebois [Mon, 1 Mar 2021 20:40:04 +0000 (20:40 +0000)]
Automatically enable the online hub

By default, crowdsec comes with an offline copy of the hub (see
README.Debian). When running `cscli hub update`, ensure switching from
this offline copy to the online hub.

To ensure cscli doesn't disable anything that was configured (due to
symlinks from /etc/crowdsec becoming dangling all of a sudden), copy the
offline hub in the live directory (/var/lib/crowdsec/hub), and let
further operations (`cscli hub upgrade`, or `cscli <type> install`)
update the live directory as required.

Signed-off-by: Cyril Brulebois <cyril@debamax.com>
Gbp-Pq: Name 0007-automatically-enable-online-hub.patch

2 years agoAdjust default config
Cyril Brulebois [Mon, 1 Mar 2021 14:11:36 +0000 (14:11 +0000)]
Adjust default config

Let's have all hub-related data under /var/lib/crowdsec/hub instead of
the default /etc/crowdsec/hub directory.

Also fix plugin directory.

Also delete pid_dir, which would otherwise generate this at runtime:

    Deprecation warning: the pid_dir config can be safely removed and is not required

Signed-off-by: Cyril Brulebois <cyril@debamax.com>
Gbp-Pq: Name 0005-adjust-config.patch

2 years agoDisable geoip-enrich in the hub files
Cyril Brulebois [Fri, 22 Jan 2021 14:35:42 +0000 (14:35 +0000)]
Disable geoip-enrich in the hub files

It would download GeoLite2*.mmdb files from the network. Let users
enable the hub by themselves if they want to use it.

When refreshing this patch, don't forget to update both digest and
content fields, using:

 - digest: sha256sum hub1/collections/crowdsecurity/linux.yaml
 - content: base64 -w 0 /etc/crowdsec/collections/linux.yaml

Gbp-Pq: Name 0004-disable-geoip-enrich.patch

2 years agoAdjust systemd unit
Cyril Brulebois [Fri, 22 Jan 2021 13:25:54 +0000 (13:25 +0000)]
Adjust systemd unit

 - Adjust paths for the packaged crowdsec binary (/usr/bin).
 - Drop commented out ExecStartPost entirely.
 - Drop syslog.target dependency, it's socket-activated (thanks to the
   systemd-service-file-refers-to-obsolete-target lintian tag).
 - Ensure both local and online API credentials have been defined.

Gbp-Pq: Name 0003-adjust-systemd-unit.patch

2 years agocrowdsec (1.4.6-4) unstable; urgency=medium
Cyril Brulebois [Wed, 31 May 2023 16:54:17 +0000 (17:54 +0100)]
crowdsec (1.4.6-4) unstable; urgency=medium

  * Implement support for pending registration: since bouncers list crowdsec
    in Recommends, we cannot guarantee the order in which bouncers and
    crowdsec are configured (See: #1035499, #1036985). Bouncers can now
    queue triplets (systemd unit name, bouncer identifier and API key) in
    /var/lib/crowdsec/pending-registration. crowdsec.postinst will register
    those bouncers, and start their systemd units after removing that file
    (satisfying their ConditionPathExists=! on it).
  * Replace `exit 0` with `break` in the preceding code block.

[dgit import unpatched crowdsec 1.4.6-4]

2 years agoImport crowdsec_1.4.6-4.debian.tar.xz
Cyril Brulebois [Wed, 31 May 2023 16:54:17 +0000 (17:54 +0100)]
Import crowdsec_1.4.6-4.debian.tar.xz

[dgit import tarball crowdsec 1.4.6-4 crowdsec_1.4.6-4.debian.tar.xz]

2 years agoMerge crowdsec (1.4.6-3) import into refs/heads/workingbranch
Cyril Brulebois [Sat, 18 Mar 2023 23:25:07 +0000 (23:25 +0000)]
Merge crowdsec (1.4.6-3) import into refs/heads/workingbranch

2 years ago[PATCH] try to make reproducible build work (#2119)
Manuel Sabban [Mon, 13 Mar 2023 16:26:33 +0000 (17:26 +0100)]
[PATCH] try to make reproducible build work (#2119)

Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
Gbp-Pq: Name 0016-try-to-make-reproducible-build-work-2119.patch

2 years agoSilence “Crowdsec is not the latest version” messages.
Cyril Brulebois [Wed, 1 Mar 2023 22:58:00 +0000 (23:58 +0100)]
Silence “Crowdsec is not the latest version” messages.

We're shipping crowdsec in a stable Debian release, which isn't quite
compatible with a “latest and greatest” approach. :)

Upstream maintains a hub branch for the version we ship in stable anyway.

Gbp-Pq: Name 0015-silence-not-latest-version.patch

2 years agoSilence yaml patching
Cyril Brulebois [Wed, 1 Mar 2023 21:36:00 +0000 (22:36 +0100)]
Silence yaml patching

Being able to patch configuration files using .local snippets is relatively new,
and very useful when it comes to shipping mostly untouched configuration files,
with just a few values set in a .local file.

Unfortunately the initial code is very chatty and generates info-level messages
in all cscli calls.

An early patch upstream is ca12432a2acd2fd607e9fbea97fea3fb3f124678 (backported
here), which demotes those messages from info to debug. It left the “Prepending”
messages at info, but those haven't been seen with the current packages, so
that's left untouched in this patch as well.

Further refinement landed in cd4dabde0ec833552881dd36780ab847cf20882d but that
touches more code, and we're closing in freeze-wise, so leave it alone. All our
crowdsec* packages ship a README.Debian file, which should be sufficient in most
cases. When in doubt, adjusting the log level in specific commands should be
enough to figure out what's happening.

Gbp-Pq: Name 0014-silence-yaml-patching.patch

2 years agoSkip flakky tests
Cyril Brulebois [Wed, 1 Mar 2023 21:41:36 +0000 (22:41 +0100)]
Skip flakky tests

Initially (2023-02-15):
 - TestAPICSendMetrics
 - TestLongRunningQPS

Both aim at checking performance, and might error out when the underlying
system is “slow”. That was the case for the first test on arm64 (KO on
arm-arm-01, OK on arm-ubc-03) and on armel (KO on arm-ubc-06, OK on
arm-conova-02), and for the second test on mipsel (KO on mipsel-aql-02).

The same might happen on ci.debian.net, so disable both tests everywhere.

Extension (2023-03-01):
 - TestAPICCAPIPullIsOld
 - TestAPICHandleDeletedDecisions
 - TestAPICPullTop
 - TestGetDecisionsSinceCount

Gbp-Pq: Name 0013-skip-flakky-tests.patch

2 years agoRefresh code generated from protobuf specifications
Manuel Sabban [Fri, 25 Nov 2022 07:34:47 +0000 (08:34 +0100)]
Refresh code generated from protobuf specifications

Without this patch, crowdsec would build fine but would fail in its testsuite,
reaching the 10-minute timeout. This was tracked down to unexpected csplugins
crashes, due to mismatched protobuf versions.

This issue would go away with golang-goprotobuf-dev 1.5.2-1~exp1 (as found in
experimental for a while) instead of 1.3.5-2 (in unstable as of November 2022).
Since protobuf's build-time and run-time are particularly tricky to get right,
incompatible 1.3.x and 1.5.x versions are packaged separately and aren't
co-installable. Since most packages depend on the 1.3.x version, it's not
possible to pull the 1.5.x version to avoid this issue.

Therefore, upstream was kind enough to come up with this patch, refreshing the
generated code so that it works fine within unstable.

Signed-off-by: Cyril Brulebois <cyril@debamax.com>
Gbp-Pq: Name 0011-refresh-protobuf-code.patch

2 years agodisable-some-tests
Cyril Brulebois [Sat, 18 Mar 2023 23:25:07 +0000 (23:25 +0000)]
disable-some-tests

Gbp-Pq: Name 0010-disable-some-tests.patch

2 years agodisable-kafka-acquisition-module
Cyril Brulebois [Sat, 18 Mar 2023 23:25:07 +0000 (23:25 +0000)]
disable-kafka-acquisition-module

Gbp-Pq: Name 0009-disable-kafka-acquisition-module.patch

2 years agor3labs-diff-versions
Cyril Brulebois [Sat, 18 Mar 2023 23:25:07 +0000 (23:25 +0000)]
r3labs-diff-versions

Gbp-Pq: Name 0008-r3labs-diff-versions.patch

2 years agoAutomatically enable the online hub
Cyril Brulebois [Mon, 1 Mar 2021 20:40:04 +0000 (20:40 +0000)]
Automatically enable the online hub

By default, crowdsec comes with an offline copy of the hub (see
README.Debian). When running `cscli hub update`, ensure switching from
this offline copy to the online hub.

To ensure cscli doesn't disable anything that was configured (due to
symlinks from /etc/crowdsec becoming dangling all of a sudden), copy the
offline hub in the live directory (/var/lib/crowdsec/hub), and let
further operations (`cscli hub upgrade`, or `cscli <type> install`)
update the live directory as required.

Signed-off-by: Cyril Brulebois <cyril@debamax.com>
Gbp-Pq: Name 0007-automatically-enable-online-hub.patch

2 years agoAdjust default config
Cyril Brulebois [Mon, 1 Mar 2021 14:11:36 +0000 (14:11 +0000)]
Adjust default config

Let's have all hub-related data under /var/lib/crowdsec/hub instead of
the default /etc/crowdsec/hub directory.

Also fix plugin directory.

Also delete pid_dir, which would otherwise generate this at runtime:

    Deprecation warning: the pid_dir config can be safely removed and is not required

Signed-off-by: Cyril Brulebois <cyril@debamax.com>
Gbp-Pq: Name 0005-adjust-config.patch

2 years agoDisable geoip-enrich in the hub files
Cyril Brulebois [Fri, 22 Jan 2021 14:35:42 +0000 (14:35 +0000)]
Disable geoip-enrich in the hub files

It would download GeoLite2*.mmdb files from the network. Let users
enable the hub by themselves if they want to use it.

When refreshing this patch, don't forget to update both digest and
content fields, using:

 - digest: sha256sum hub1/collections/crowdsecurity/linux.yaml
 - content: base64 -w 0 /etc/crowdsec/collections/linux.yaml

Gbp-Pq: Name 0004-disable-geoip-enrich.patch