Josh Patterson 803158485a FIX: keep pushes off a node until its first highstate completes
A push dispatched while a node was being added ran a single state on a
node where nothing else had been applied, and the drainer logged "push
failed" as an ERROR, which fails so-log-check.

Seen on a distributed 3.5.0 install: so-minion accepted the sensor's key
at 03:22:37, after which it matched G@role:so-sensor, but
orch.deploy_newnode did not highstate it until 03:32:31 because its
manager steps queued behind the searchnode's elasticsearch,soc run. A
suricata rules change drained at 03:31:29 and state.sls suricata ran on
the sensor at 03:31:33. Three states failed with "file not found" for
/opt/so/conf/so-status/so-status.conf: file.append touches a missing
file without makedirs, and the directory is created by common, which had
not run. The push also created the so-suricata container about a minute
ahead of the highstate.

Setup now writes a first_highstate_pending grain next to role, and
salt.lasthighstate removes it at the end of a highstate. The drainer
wraps each compound target as
"( <tgt> ) and not G@first_highstate_pending:True", so a node is left
alone until a highstate has completed on it, whichever one that is. The
master matches on its cached grains, which grains.absent refreshes when
it removes the grain. Nodes installed before this change never have the
grain and are targeted as before.

The grain is set for every node type, so a manager's pushes to itself are
also skipped until its first full highstate finishes. A change that lands
during a node's first highstate, after the state it affects has run,
waits for the next scheduled highstate. Hypervisor VMs do not go through
configure_minion and are not covered.

On the same grid, with the grain set on the sensor by hand, the drainer
skipped the suricata action and still dispatched to the other nodes;
after grains.absent removed it the sensor was targeted again. That check
was run before the grain was renamed from highstate_pending. A fresh node
join has not been tested.
2026-11-18 14:48:21 -05:00
2023-12-19 18:58:17 +00:00
2024-04-11 15:32:00 -04:00
2026-11-02 10:46:19 -05:00
2025-06-27 11:00:35 -04:00
2026-04-01 10:47:59 -04:00
2026-11-02 10:46:19 -05:00
2026-09-11 16:47:13 -04:00
2020-11-17 09:00:02 -05:00
2025-02-20 11:07:50 -05:00
2026-03-04 15:48:16 -05:00
2026-03-05 11:05:19 -05:00
2023-06-26 16:01:58 -04:00
2022-09-07 09:06:25 -04:00
2026-11-02 11:50:08 -05:00

Security Onion Logo

Security Onion

Security Onion is a free and open Linux distribution for threat hunting, enterprise security monitoring, and log management. It includes a comprehensive suite of tools designed to work together to provide visibility into your network and host activity.

✨ Features

Security Onion includes everything you need to monitor your network and host systems:

  • Security Onion Console (SOC): A unified web interface for analyzing security events and managing your grid.
  • Elastic Stack: Powerful search backed by Elasticsearch.
  • Intrusion Detection: Network-based IDS with Suricata and host-based monitoring with Elastic Fleet.
  • Network Metadata: Detailed network metadata generated by Zeek or Suricata.
  • Full Packet Capture: Retain and analyze raw network traffic with Suricata PCAP.

⭐ Security Onion Pro

For organizations and enterprises requiring advanced capabilities, Security Onion Pro offers additional features designed for scale and efficiency:

  • Onion AI: Leverage powerful AI-driven insights to accelerate your analysis and investigations.
  • Enterprise Features: Enhanced tools and integrations tailored for enterprise-grade security operations.

For more information, visit the Security Onion Pro page.

☁️ Cloud Deployment

Security Onion is available and ready to deploy in the AWS, Azure, and Google Cloud (GCP) marketplaces.

🚀 Getting Started

Goal Resource
Download Security Onion ISO
Requirements Hardware Guide
Install Installation Instructions
What's New Release Notes

📖 Documentation & Support

For more detailed information, please visit our Documentation.

🤝 Contributing

We welcome contributions! Please see our CONTRIBUTING.md for guidelines on how to get involved.

🛡️ License

Security Onion is licensed under the terms of the license found in the LICENSE file.


Built with 🧅 by Security Onion Solutions.

S
Description
Security Onion 2 - Linux distro for threat hunting, enterprise security monitoring, and log management
Readme
78 MiB
0 Stars 1 Watchers 0 Forks
Languages
Shell 51%
Jinja 22.2%
SaltStack 12%
Python 8.7%
CSS 2%
Other 4%