Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Agent Saves Registration Information Even on Failure #314

Closed
Tracked by #241
vikman90 opened this issue Nov 19, 2024 · 0 comments · Fixed by #319
Closed
Tracked by #241

Agent Saves Registration Information Even on Failure #314

vikman90 opened this issue Nov 19, 2024 · 0 comments · Fixed by #319
Assignees
Labels
level/task Task issue module/agent mvp Minimum Viable Product refinement type/bug Bug issue

Comments

@vikman90
Copy link
Member

vikman90 commented Nov 19, 2024

Parent Issue: #241

Description

When attempting to register an agent and the process fails with errors such as:

Failed to authenticate with the manager
wazuh-agent registration failed

The agent still creates and populates the agent_info.db file:

select * from agent_info;
dummy|ku3iIzPRNJjwIXKNnTU3qFv6QhodAu8k|95635cae-0c0d-486e-94a5-0fe29dd6972f

Steps to Reproduce

  1. Attempt to register the agent with invalid credentials.
  2. Observe the error messages in the logs.
  3. Check the contents of the agent_info.db file.

Expected Behavior

If the registration process fails, the database should not be altered.

@vikman90 vikman90 added the mvp Minimum Viable Product refinement label Nov 19, 2024
@vikman90 vikman90 added level/task Task issue module/agent type/enhancement Enhancement issue type/bug Bug issue and removed type/enhancement Enhancement issue labels Nov 19, 2024
@vikman90 vikman90 self-assigned this Nov 19, 2024
@wazuhci wazuhci moved this to In progress in Release 5.0.0 Nov 19, 2024
@wazuhci wazuhci moved this from In progress to Pending review in Release 5.0.0 Nov 19, 2024
@vikman90 vikman90 linked a pull request Nov 19, 2024 that will close this issue
3 tasks
@wazuhci wazuhci moved this from Pending review to Done in Release 5.0.0 Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
level/task Task issue module/agent mvp Minimum Viable Product refinement type/bug Bug issue
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant