Overview

Request 1194743 revoked

Supplement to the "crowdsec" package. We're currently missing packaged Remediators ("Bouncers").


Johannes Kastl's avatar

Thanks for reworking the SR.

  • There is a leftover line #install -D -m 0644 config/%%{name}.service %%{buildroot}%%{_unitdir}/%%{name}.service
  • You can remove the Set executable bit line from the changelog, as the package was not submitted there is not yet a need for a strict changelog. And unless this is the only change, packaging changes do not always have to be in the changelog (depends on the packager's opinion).
  • You can also (if you like) remove all version information, as this is the first version of the package, having version updates in the changelog is not really necessary.

I had a copy&paste error in my last comment (on the previous SR). I think we can loosen up the permissions on the %{_sysconfdir}/crowdsec/bouncers/%{name}.yaml file. As it belongs to root:root, I think we can go with 640 permission. You would need to set them in the %files section, I believe:

%config(noreplace) %attrs(0640,root,root) %{_sysconfdir}/crowdsec/bouncers/%{name}.yaml

Have a nice day!

Johannes


Aeneas Jaißle's avatar

What’s the benefit loosening permissions on the config yaml?




Johannes Kastl's avatar

Looks good, thanks for the SR.

install -D -m 0600 scripts/_bouncer.sh %{buildroot}%{_usr}/lib/%{name}/_bouncer.sh

Shouldn't the file be executable? And why only allow root access to that file? There should be no "secrets" in it.

install -D -m 0600 scripts/_bouncer.sh %{buildroot}%{_usr}/lib/%{name}/_bouncer.sh

Why allow everyone read access (755 on the directory) and then restrict everyone but root to read this file?

I take it the service needs to be run as root to have permissions for using iptables etc?


Aeneas Jaißle's avatar

Good catch, that wasn't intended. The script is now 0755, but should normally only be used by root (-scripts). It does configuration manipulation like adding a local API key to the bouncer config. New SR on its' way.

Request History
Aeneas Jaißle's avatar

aeneas_jaissle created request

Supplement to the "crowdsec" package. We're currently missing packaged Remediators ("Bouncers").


Johannes Kastl's avatar

ojkastl_buildservice revoked request

The source project 'home:aeneas_jaissle:branches:security2' has been removed

openSUSE Build Service is sponsored by