Open ferullo opened 1 month ago
Thanks for the ticket @ferullo! It looks like we first documented tamper protection starting in 8.11 so we'll try to backport to that version for completeness.
We'll also update the same content in serverless docs since this seems to apply to both ESS and serverless Security environments — please correct me if I'm wrong about that.
Users with many tamper protected Agent policies want a way to provide many uninstall tokens to Agent. That has been supported since tamper protection was first released, we just missed documenting it.
There are two ways to provide multiple uninstall tokens.
1. A comma separated list
--uninstall-token
can receive multiple tokens that are separated by a comma (no spaces).A Linux example is
sudo /opt/Elastic/Agent/elastic-agent uninstall -f --uninstall-token 7b3d364db8e0deb1cda696ae85e42644,a7336b71e243e7c92d9504b04a774266
1. A file with one token per line
--uninstall-token
's argument can also be a path to a file with one uninstall token per line. It's important to note that the full path to the file should be used or the file may not be found.A Linux example command is
sudo /opt/Elastic/Agent/elastic-agent uninstall -f --uninstall-token /tmp/tokens.txt
wheretokens.txt
containscc @caitlinbetz @nfritts @cmacknz for visibility