SecurityOnion over Kubernetes #9001
Replies: 3 comments 8 replies
-
I'll fork using k3s or harvester |
Beta Was this translation helpful? Give feedback.
-
We have had several requests to make Security Onion work on Kubernetes over the past year or 2 and although certain parts of SO will work fine under it, there are some major hurdles technical and not technical that would need to be overcome. On the non technical side is what benefit does a defender get by running this on K8s? Security Onion is "For Defenders by Defenders" so the goal is to make it as simple as possible to stand up an environment and start finding evil. We try and remove the administrative burden as much as possible. This is why in 2.4 we use a web interface to get users to stop having to write yaml so they can concentrate on the important things. The user would need to have a firm grasp of Kubernetes in order to do the install unless you handled that setup through the ISO as well and that adds complexity. I have heard "auto scaling" as a benefit of Kubernetes but only certain parts of the infrastructure could benefit from that. We have users who want to run SO in shared VM environment then once they start throwing lots of data on to it they end up getting kicked off the environment due to IO usage. Sensors use a lot of sequential writes as well causing issues to shared environments. I have seen instances of nodes being booted off of SANs because of the IO usage. Our Enterprise Appliances have dedicated NVME for that reason. So with the above in mind what is Kubertees getting me? |
Beta Was this translation helpful? Give feedback.
-
Full disclosure: I do use Kubernetes for homelab stuff so I have a decent grasp on it. Originally I tried going with harvester but it was easier to roll my own with https://github.com/onedr0p/flux-cluster-template It builds all the things and sets up the cluster for you but there is still a decent sized learning curve. When something breaks I have to go in and fix it. It's not simple and requires me to know yaml and metallb etc. The whole point of 2.4 was to remove yaml from the equation. There were so many times in 2.3 where huge problems were caused by errant spaces. There is a reason that people with extensive Kubernetes knowledge have no trouble finding work. Considering the wide variety of users Security Onion has you have to keep ongoing maintenance in mind. Simple to install doesn't mean simple to maintain. As far as auto scaling is concerned Elastic Search is all we really need to worry about. We do all the parsing in ES so all logstash is doing is grabbing events from redis and dropping them into ES. I can't stress this enough that IO will be the main issue here and that you will need to use some sort of local non shared disk per container to get any value. Maybe that could be scripted I am not sure. Once you get above 5k-10k EPS then you are going to start to struggle with rust and have to start looking at NVME. The key to a healthy SO environment is a healthy ES environment. From this discussion I can see the need for possibly some sort of SO sidecar that could be used to monitor the cluster etc. Maybe that is the starting position on anything Kubernetes related as I haven't been convinced on what the full stack on K3s buys me. As far as a different version that is orchestrated differently that is pretty much a non starter. Right now there are about 36 different SO install types that kick off to test the current 2.4 codebase. These tests take 8-10 hours to complete that include fresh installs of several different install methods including distributed setups as well as soups from older versions. This helps us ensure that the changes we make on a daily basis keep the product stable and viable as an enterprise solution. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Since SO is already a container based solution, is it in your plans to provide support for native installation over Kubernetes? Is there an ETA for that?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions