-
Notifications
You must be signed in to change notification settings - Fork 186
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
Validate the agent name field in the "Deploy a new agent" section #4927
Closed
Labels
type/bug
Bug issue
Comments
Agreed with @s-ocando suggestion. I would add that group name also need validation. |
This was
linked to
pull requests
Nov 30, 2022
Hi @davidjiglesias, thanks for the recommendation. |
6 tasks
6 tasks
This was
linked to
pull requests
Dec 20, 2022
This was
linked to
pull requests
Dec 21, 2022
Changes
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Currently, the app allows agent names that are not valid. This causes the enrollment to fail.
The app must validate that the agent name has the minimum required length and that it contains only allowed characters.
In this example, I installed a 4.4.0 agent named "SALES DEPARTMENT" on Ubuntu 20.04 following the instructions from the UI. The installation worked without failure. The agent was active but I was unable to see it in the console.
I checked
/var/ossec/logs/ossec.log
and saw the messageERROR: Invalid agent name. Please pick a valid name
. I changed the name to "SALES", restarted the agent and it enrolled successfully.The text was updated successfully, but these errors were encountered: