-
Notifications
You must be signed in to change notification settings - Fork 194
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
Add enrollment agent assistant to fleet management plugin #7289
Open
Desvelao
wants to merge
26
commits into
main
Choose a base branch
from
enhancement/514-add-enrollment-agent-assistant
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Copy the register-agent folder from wazuh plugin to wazuh-fleet - Add the webDocumentationLink and form components/hook to register-agent copy - Register minimal Fleet management app to display the register agent assistant view
Added: - Added inputs to match with the `wazuh-agent` cli: - Input to manage the username - Input to manage the password - Input to manage the SSL verification mode - Input to manage the key (This key must have 32 alphanumeric characters validation) - Added new step "Server credentials" to define the username and password - Added tests for the new inputs Changed: - Changed the generation of command to install and enroll the agent - Changed the validation of "Assign a server address" input - Changed the placeholder of "Assign a server address" input - Changed the description of "Server address" step to indicate the usage of URL instead of raw IP or FQDNS Removed: - Groups management was removed because the current Wazuh agent enrollment does not support the definition of these. - Removed groups form input - Removed fetch information about available groups - Removed fetch information about authentication password provided through the Wazuh server API - Removed fetch information about protocol provided through the Wazuh server API - Temporally: - The command to download the package were temporaly removed because the packages are not publically hosted. A warning message was added to inform about this.
2 tasks
…sons The setting is saved in the advanced settings (tenant configuration) and is visible to each user with read permissions in the tenant. So we remove the setting to avoid other users can see the value. The user should indicate the username and password each time the enroll agent assistant is used.
… enhancement/514-add-enrollment-agent-assistant
2 tasks
…s://github.com/wazuh/wazuh-kibana-app into enhancement/514-add-enrollment-agent-assistant
…rsion and loading effect
… enhancement/514-add-enrollment-agent-assistant
|
|
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This pull request adds the enrollment agent assitant to the fleet management plugin.
The code was ported from
wazuh
towazuh-fleet
plugin and modified to adapt to the requirements of 5.0.Added:
wazuh-agent
cli:Changed:
Removed:
enrollment.password
setting that was unused and it will not be added for security reasons (shared configuration by tenants that could see other users with read only permissions)Issues Resolved
wazuh/wazuh-dashboard#514
Evidence
Test
Legend:
⚫: none
🟢: pass
🟡: warning
🔴: fail
⚪: not applicable
Generate a Wazuh stack environment 5.0
Clone the
enhancement/526-docker-compose-environment
branch ofwazuh-agent
repository.1.1 Read the README.md from
src/tests/stack/README.md
1.2 Download the packages for Wazuh server and Wazuh agent for
.rmp
according to your CPU architecture.Apply the following patch:
wdp-pull-7289-patch-env-wazuh-agent-repository.txt
wdp-pull-7289-patch-env-wazuh-dashboard-plugins-repository.txt
Start the dev environment of
wazuh-dashboard-plugins
.Enter to the
server
container and run in foreground the server:https://server:55000
as server addresshttps://<DOCKER_HOST_IP>:55000
as server addressUI
Details
⚫ Invalid values in server address and/or enrollment key, should avoid the enroll comands are displayed.
Chrome - ⚫
Firefox - ⚫
Safari - ⚫
⚫ Fill the form and use the provided commands enroll an agent in Linux (.deb)
Chrome - ⚫
Firefox - ⚫
Safari - ⚫
⚫ Fill the form and use the provided commands enroll an agent in Linux (.rpm)
Chrome - ⚫
Firefox - ⚫
Safari - ⚫
⚫ Fill the form and use the provided commands enroll an agent in macOS
Chrome - ⚫
Firefox - ⚫
Safari - ⚫
⚫ Fill the form and use the provided commands enroll an agent in Windows
Chrome - ⚫
Firefox - ⚫
Safari - ⚫
⚫ Fill the server address input with a valid value and use the save optin, then reload the page and the field should have the saved value
Chrome - ⚫
Firefox - ⚫
Safari - ⚫
⚫ Set the enrollment.dns setting from Advanced settings, then go to enrollment assistant and the server address field should be set with the defined value
Chrome - ⚫
Firefox - ⚫
Safari - ⚫
Check List