Skip to content

fix(install): add packagecloud repos explicitly instead of piping scripts to sh - #32

Merged
sabban merged 1 commit into
packagecloudfrom
fix/explicit-repo-setup
Nov 30, 2026
Merged

sabban merged 1 commit into
packagecloudfrom
fix/explicit-repo-setup

Conversation

@sabban

@sabban sabban commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Addresses the directory review's download-and-run findings. Stacked on #28 (base: packagecloud); retarget to main once #28 merges.

File Before After
install/bare-metal.md curl install.crowdsec.net | sudo sh (deb + rpm) GPG key → /etc/apt/keyrings, any/any apt source; rpm: download config_file.repo?os=rpm_any → /etc/yum.repos.d
operate/upgrades.md same one-liner points to bare-metal §1 (no duplicate recipe)
configure/bouncers/web-servers.md script.deb.sh | sudo bash explicit key + per-codename apt source; codename gotcha rewritten for the explicit flow

The steps mirror what install.crowdsec.net and packagecloud's script.deb.sh do. Also fixes a wording error: cscli setup is run by the package's post-install, not by the repo script.

Verification (Debian 13 trixie, test host, CrowdSec 1.8.2):

  • Engine: apt-cache policy candidate came from packagecloud.io/crowdsec/crowdsec/any any/main; install OK; crowdsec active; cscli lapi status OK; post-install wrote acquis.d/setup.{linux,sshd}.yaml; CAPI pull enabled.
  • Apache bouncer: the trixie codename has no package; with debian/ bookworm, crowdsec-apache2-bouncer 0.1 installed, crowdsec_module loaded, apache2 active.
  • dnf path not run: it is marked untested in the doc. It needs a RHEL-family box before this is fully verified.

verified: blocks bumped for bare-metal.md and web-servers.md (systemd). upgrades.md keeps its existing stamp because its recipe now just links to bare-metal §1.

🤖 Generated with Claude Code

…ipts to sh

Replace 'curl install.crowdsec.net | sudo sh' (bare-metal, upgrades) and the
crowdsec-apache 'script.deb.sh | sudo bash' with explicit GPG key + apt
source / dnf .repo steps. Verified the apt engine and apache bouncer paths on
Debian 13 with CrowdSec 1.8.2; the dnf path is marked untested.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sabban
sabban merged commit 28bda12 into packagecloud Nov 30, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants