crowdsecurity / pfSense-pkg-crowdsec

54 stars 2 forks source link

register agent failing if lapi is disabled #45

Closed mmetc closed 1 year ago

mmetc commented 1 year ago

it should be able to register machines or bouncers in .api.server.enable = false as long as it has access to the db

mmetc commented 1 year ago

I think I will leave the code in crowdsec as it is, to avoid user error.

On the other hand, before calling "machines delete" and "bouncer delete", the plugin needs to set .api.server.enable = true

I know the configuration files are written at the end; if it's more compact/readable you can write the file immediately for each option; it does not matter if they are rewritten 5/6 times.

mmetc commented 1 year ago

done in https://github.com/crowdsecurity/pfSense-pkg-crowdsec/pull/46