Basic Settings for CrowdSec CAPI client
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3328536. -->
Reported by: [rr404](https://www.drupal.org/user/3739954)
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>In the initial settings you added the field API key, it wont be necessary for the interaction with CrowdSec's Central API.<br><br>
The authentication to the API is done automatically by the php-capi-client library (included in the php-remediation-engine) and only needs a storage interface (other issue)</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>The configuration parameters of the Watcher (CAPI client) are the following:</p>
<ul>
<li> env : (dev|prod) </li>
<li> machine_id_prefix : #^[a-z0-9]{0,16}$# </li>
<li> user_agent_suffix : #^[A-Za-z0-9]{0,16}$# </li>
<li> user_agent_version: #^v\d{1,4}(\.\d{1,4}){,2}$# </li>
<li> scenarios : array of #^[A-Za-z0-9]{0,16}\/[A-Za-z0-9_-]{0,32}$# </li>
<li> api_timeout : int (seconds) </li>
</ul>
<p>Most of them do not need to be editable via the module settings, their usage is described in the user guide: <a href="https://github.com/crowdsecurity/php-capi-client/blob/main/docs/USER_GUIDE.md#watcher-configurations">https://github.com/crowdsecurity/php-capi-client/blob/main/docs/USER_GUIDE.md#watcher-configurations</a></p>
> Related issue: [Issue #3328800](https://www.drupal.org/node/3328800)
> Related issue: [Issue #3328799](https://www.drupal.org/node/3328799)
> Related issue: [Issue #3328797](https://www.drupal.org/node/3328797)
issue