Repository navigation
Conversation
The setup script runs `cscli hub update` unconditionally before the service starts. On hosts without hub access the update fails, the setup script aborts, and crowdsec never starts (NixOS#520206). Add `services.crowdsec.hub.updateOnStart` (default true, preserving current behaviour) so operators of hermetic or air-gapped deployments can skip the start-time update. The daily autoUpdateService timer is unchanged.
What? The
which migration?
So you mean that you aren't able to run the nixos tests on your machine? |
There was a problem hiding this comment.
Just in case if you used AI:
Please don't make the context not more complicated/full than it needs to be. A simple:
Added an option to disable `cscli hub update` for `crowdsec-setup`.
I needed it because on some restricted deployments I don't have internet access
or DNS resolution in the beginning which doesn't let the `crowdsec.service` even start.
would have been enough if I'm understanding your message correctly.
| Whether to run `cscli hub update` in the setup step before the | ||
| service starts. Set to `false` for hermetic or air-gapped | ||
| deployments where the hub is unreachable: an unconditional | ||
| update there fails the setup script and the service never | ||
| starts. The daily `autoUpdateService` timer is unaffected. |
There was a problem hiding this comment.
I don't think it needs to add an example for which kind of deployments needs this value.
| Whether to run `cscli hub update` in the setup step before the | |
| service starts. Set to `false` for hermetic or air-gapped | |
| deployments where the hub is unreachable: an unconditional | |
| update there fails the setup script and the service never | |
| starts. The daily `autoUpdateService` timer is unaffected. | |
| Set to `false` if `cscli hub update` shouldn't be executed in the setup step before the service starts, otherwise `true`. `services.crowdsec.autoUpdateService` is unaffected by this option. |
Adds
services.crowdsec.hub.updateOnStart(defaulttrue) socrowdsec-setupcan skipcscli hub updateon deployments without internet/DNS access at boot.