Skip to content

Improved command data structure & handler#529

Merged
bitterpanda63 merged 30 commits intomainfrom
clean-attack-reporting
Dec 8, 2025
Merged

Improved command data structure & handler#529
bitterpanda63 merged 30 commits intomainfrom
clean-attack-reporting

Conversation

@bitterpanda63
Copy link
Copy Markdown
Member

No description provided.

},
connection_manager.timeout_in_sec,
)
event = {"type": "started"}
Copy link
Copy Markdown

@aikido-pr-checks aikido-pr-checks Bot Nov 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function on_start no longer fails fast when connection_manager.token is missing; the prior early-return was removed, reducing clarity of control flow

Details

🔧 How do I fix it?
Place parameter validation and guard clauses at the function start. Use early returns to reduce nesting levels and improve readability.

More info - Comment @AikidoSec feedback: [FEEDBACK] to get better review comments in the future.

Comment thread aikido_zen/helpers/ipc/send_payload.py
Comment thread aikido_zen/vulnerabilities/__init__.py
Comment thread aikido_zen/background_process/commands/check_firewall_lists.py
@bitterpanda63 bitterpanda63 changed the title draft: improved command data structure & handler Improved command data structure & handler Nov 24, 2025
Comment thread aikido_zen/background_process/aikido_background_process.py
Comment thread aikido_zen/background_process/cloud_connection_manager/__init__.py
Comment thread aikido_zen/background_process/comms.py Outdated
Comment thread aikido_zen/background_process/commands/put_event.py
Comment thread aikido_zen/helpers/ipc/command_types.py
Copy link
Copy Markdown
Member

@hansott hansott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We went over the PR in a huddle

@bitterpanda63 bitterpanda63 merged commit 9671b29 into main Dec 8, 2025
82 of 84 checks passed
@bitterpanda63 bitterpanda63 deleted the clean-attack-reporting branch December 8, 2025 12:58
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.

2 participants