Skip to content

Return short agent results for licenses and AWS - #121

Merged
splunkenizer merged 1 commit into
distributionfrom
dist/67-agent-payloads
Oct 27, 2026
Merged

splunkenizer merged 1 commit into
distributionfrom
dist/67-agent-payloads

Conversation

@splunkenizer

Copy link
Copy Markdown
Collaborator

Summary

  • spa licenses and spa aws --validate return a short JSON result when an agent is detected, and the full objects with --details. --no-agent stays human text.
  • Validate warns when a named security group allows 0.0.0.0/0 or ::/0 to ports 22, 80, 8000, 8088, or 8089, without dumping the group rules.
  • An agent run prints one plain line when the phase changes and does not repeat it on the heartbeat. splunk_download says the host downloads the tarball when the flag is true and the controller uploads it from Software when the flag is false.

Related to #67. This does not finish the skills pack, so the issue and the ROADMAP checkbox stay open.

Test plan

  • ./tests/run_local_tests.sh (1391 passed, 72 deselected)
  • Detected-agent spa licenses and spa aws return compact JSON; --no-agent stays text
  • World-open security group produces one warning and no rule dump; a private range adds no warnings key
  • Agent phase change is one plain line; a second heartbeat does not repeat it; a failed phase still prints a failure line

Made with Cursor

…phase changes.

Detected agents get the compact payload, --details keeps the full objects, and validate warns when a named security group is open to the world on Splunk or SSH ports.

Co-authored-by: Cursor <cursoragent@cursor.com>
@splunkenizer
splunkenizer merged commit a4e9f38 into distribution Oct 27, 2026
1 check passed
@splunkenizer
splunkenizer deleted the dist/67-agent-payloads branch October 27, 2026 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant