On UI load:
call GET /api/agent-binaries/{linux,windows}/masque and populate the tab
On submit:
if detection data is set:
call SET /api/agent-binaries/{linux,windows}/masque=masque
else:
call SET /api/agent-binaries/{linux,windows}/masque = None
On export:
Add a new export section for masques and put the data in it.
On import:
If the masque section has data:
call SET /api/agent-binaries/{linux,windows}/masque = masque
else if data section is empty or missing:
call SET /api/agent-binaries/{linux,windows}/masque = None
Description
The web UI must enable users to set the agent's masque (see #3241). The simplest thing would be to provide string fields to users (similar to how users specify IP addresses in network configuration). The UI would transform the strings to bytes and separate them with null characters (0x00).
Notes:
Tasks
get() -> getJson()andgetRaw() -> get()@ilija-lazoroski