When having a Loki instance which is ingesting logs from various containers, VM’s, etc. how does one protect the integrity of the logs by for example enforcing app-a
can never send a log entry with a label of application=app-b
to Loki?
For example to maintain integrity of the logs in Loki of app-b
if the container or VM of app-a
gets compromised (for example by a hack of the application running in it).
The only thing I can think of is to put Alloy in front of Loki and create a separate listener for each application (and use cloud firewall rules to ensure only specific containers and VM’s can access this port) and force the labels to be correct.
I’m also curious to know if this is this something which people consider? Or is this usually deemed out-of-scope and are all Loki “clients” considered “trusted”?