crowdsec.git
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 agoImport crowdsec_1.4.6.orig.tar.gz
Cyril Brulebois [Thu, 2 Mar 2023 05:07:10 +0000 (05:07 +0000)]
Import crowdsec_1.4.6.orig.tar.gz

[dgit import orig crowdsec_1.4.6.orig.tar.gz]

2 years agoImport crowdsec_1.4.6.orig-data1.tar.gz
Cyril Brulebois [Thu, 2 Mar 2023 05:07:10 +0000 (05:07 +0000)]
Import crowdsec_1.4.6.orig-data1.tar.gz

[dgit import orig crowdsec_1.4.6.orig-data1.tar.gz]

2 years agoImport crowdsec_1.4.6.orig-hub1.tar.gz
Cyril Brulebois [Thu, 2 Mar 2023 05:07:10 +0000 (05:07 +0000)]
Import crowdsec_1.4.6.orig-hub1.tar.gz

[dgit import orig crowdsec_1.4.6.orig-hub1.tar.gz]