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

Allow multiple server selection in the agent deploy section #4737

Conversation

Machi3mfl
Copy link
Member

@Machi3mfl Machi3mfl commented Oct 20, 2022

Description

Suggest node ip in server address input from Deploy new agent section

Issues Resolved

Closes #4109

Check List

  • All tests pass
    • yarn test:jest
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

image

image

@gdiazlo gdiazlo linked an issue Oct 20, 2022 that may be closed by this pull request
@Machi3mfl Machi3mfl self-assigned this Oct 21, 2022
@Machi3mfl Machi3mfl marked this pull request as ready for review October 24, 2022 14:50
@Machi3mfl Machi3mfl requested a review from a team as a code owner October 24, 2022 14:50
@Machi3mfl Machi3mfl changed the title Replaced input server address Replaced server address input in deploy agent section Oct 24, 2022
@Machi3mfl Machi3mfl changed the title Replaced server address input in deploy agent section Changed server address input in deploy agent section Oct 24, 2022
@Mayons95
Copy link
Contributor

Mayons95 commented Oct 25, 2022

Hey, @Machi3mfl it could be nice if you could add some test steps.
Thanks you!

@Desvelao
Copy link
Member

question: https://github.com/wazuh/wazuh-kibana-app/pull/4760/files#r1005401745

nitpick: If I am not wrong, this request gets the data of the master node. Related to this pull request #4737 that adds the selection of the manager to connect, the protocol should use the configurated by the selected manager.

For another hand, what should be the value of the protocol variable for the next situation (taking into account the mentioned pull request):

  • manager1: tcp, udp
  • manager2: udp

Copy link
Member

@yenienserrano yenienserrano left a comment

Choose a reason for hiding this comment

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

LGTM with comments

@Machi3mfl
Copy link
Member Author

Machi3mfl commented Oct 26, 2022

Hey, @Machi3mfl it could be nice if you could add some test steps. Thanks you!

I left the testing steps in the linked issue

CHANGELOG.md Outdated Show resolved Hide resolved
@Machi3mfl Machi3mfl changed the title Changed server address input in deploy agent section Allow multiple server selection in the agent deploy section Oct 27, 2022
@Machi3mfl Machi3mfl requested a review from Desvelao October 27, 2022 11:39
@Mayons95 Mayons95 self-requested a review October 27, 2022 14:35
Copy link
Contributor

@Mayons95 Mayons95 left a comment

Choose a reason for hiding this comment

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

LGTM
TR: ✔️

Screencast.from.27-10-22.11.30.51.webm

@Machi3mfl Machi3mfl requested a review from gdiazlo October 27, 2022 16:26
Copy link
Member

@gdiazlo gdiazlo left a comment

Choose a reason for hiding this comment

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

lgtm

@AlexRuiz7 AlexRuiz7 merged commit b60fd49 into enhancement-4205-redesign-of-add-agent-page Oct 28, 2022
@AlexRuiz7 AlexRuiz7 deleted the feature/4109-suggest-cluster-ip-deploy-agent branch October 28, 2022 09:20
@Machi3mfl Machi3mfl restored the feature/4109-suggest-cluster-ip-deploy-agent branch October 28, 2022 14:36
Machi3mfl added a commit that referenced this pull request Oct 28, 2022
@Machi3mfl
Copy link
Member Author

question: https://github.com/wazuh/wazuh-kibana-app/pull/4760/files#r1005401745

nitpick: If I am not wrong, this request gets the data of the master node. Related to this pull request #4737 that adds the selection of the manager to connect, the protocol should use the configurated by the selected manager.
For another hand, what should be the value of the protocol variable for the next situation (taking into account the mentioned pull request):

  • manager1: tcp, udp
  • manager2: udp

Added comment in the linked issue to tread this topic: #4318 (comment)

Machi3mfl added a commit that referenced this pull request Nov 2, 2022
…4775)

Revert "Allow multiple server selection in the agent deploy section (#4737)"

This reverts commit b60fd49.
chantal-kelm added a commit that referenced this pull request Nov 3, 2022
* section deploy new agent in progress

* tabSystemD and tabSysV

* section deploy a new agent done

* cleaning code

* cleaning code

* test

* CHANGELOG

* code cleaning

* design for when a user selects an obsolete system version

* code cleanup

* changed macOS for macOS and updated the macOS version view

* development with information update provided by ci cd

* applying some of the new changes that the ci cd team sent us today

* delete

* updating information sent by ci/cd on operating systems, commands, etc.

* logic of displaying message to rare operating systems and redirecting them to documentation

* logic of displaying message to rare operating systems and redirecting them to documentation

* wazuh protocol variable

* Ordered OS buttons in deploy new agent steps

* removing spaces, css den deshuso, unify uppercase

* removing link space

* fixed labels

* change of logic in links

* Removed snapshot to fix unit tests workflow

* Add agent name to the deployment command (#4739)

* Add variable for the agent's name

* input is cleaned if there is no data

* design input name

* Update CHANGELOG

* Resolved review comment, unused code and code format

Co-authored-by: Maximiliano Ibarra <maximilianoaibarra@gmail.com>

* Allow multiple server selection in the agent deploy section (#4737)

* Replaced input server address

* Testing signed commits

* Added server address component isolated from register-agent component

* Added test for multiple nodes rendered in combobox

* Added wazuh manager multiple ips in command definition

* Refactored and cleaned code

* Added unit test

* Updated CHANGELOG

* Added default option and paste only name in combo tag

* Added free option enter and cleaned code

* Refactored code and added new tests and fixed old tests

* Resolved review comments following dev style guide

* Added OS delimiter condition

* Added and updated unit tests

* Resolved review comments

* Removed empty file

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>

* links included

* remove messages, add and remove links

* update

* Revert "Allow multiple server selection in the agent deploy section" (#4775)

Revert "Allow multiple server selection in the agent deploy section (#4737)"

This reverts commit b60fd49.

* changes

Co-authored-by: Maximiliano Ibarra <maximilianoaibarra@gmail.com>
Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>
Co-authored-by: Maximiliano Ibarra <maximiliano.ibarra@wazuh.com>
github-actions bot pushed a commit that referenced this pull request Nov 3, 2022
* section deploy new agent in progress

* tabSystemD and tabSysV

* section deploy a new agent done

* cleaning code

* cleaning code

* test

* CHANGELOG

* code cleaning

* design for when a user selects an obsolete system version

* code cleanup

* changed macOS for macOS and updated the macOS version view

* development with information update provided by ci cd

* applying some of the new changes that the ci cd team sent us today

* delete

* updating information sent by ci/cd on operating systems, commands, etc.

* logic of displaying message to rare operating systems and redirecting them to documentation

* logic of displaying message to rare operating systems and redirecting them to documentation

* wazuh protocol variable

* Ordered OS buttons in deploy new agent steps

* removing spaces, css den deshuso, unify uppercase

* removing link space

* fixed labels

* change of logic in links

* Removed snapshot to fix unit tests workflow

* Add agent name to the deployment command (#4739)

* Add variable for the agent's name

* input is cleaned if there is no data

* design input name

* Update CHANGELOG

* Resolved review comment, unused code and code format

Co-authored-by: Maximiliano Ibarra <maximilianoaibarra@gmail.com>

* Allow multiple server selection in the agent deploy section (#4737)

* Replaced input server address

* Testing signed commits

* Added server address component isolated from register-agent component

* Added test for multiple nodes rendered in combobox

* Added wazuh manager multiple ips in command definition

* Refactored and cleaned code

* Added unit test

* Updated CHANGELOG

* Added default option and paste only name in combo tag

* Added free option enter and cleaned code

* Refactored code and added new tests and fixed old tests

* Resolved review comments following dev style guide

* Added OS delimiter condition

* Added and updated unit tests

* Resolved review comments

* Removed empty file

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>

* links included

* remove messages, add and remove links

* update

* Revert "Allow multiple server selection in the agent deploy section" (#4775)

Revert "Allow multiple server selection in the agent deploy section (#4737)"

This reverts commit b60fd49.

* changes

Co-authored-by: Maximiliano Ibarra <maximilianoaibarra@gmail.com>
Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>
Co-authored-by: Maximiliano Ibarra <maximiliano.ibarra@wazuh.com>
(cherry picked from commit 77945e2)
github-actions bot pushed a commit that referenced this pull request Nov 3, 2022
* section deploy new agent in progress

* tabSystemD and tabSysV

* section deploy a new agent done

* cleaning code

* cleaning code

* test

* CHANGELOG

* code cleaning

* design for when a user selects an obsolete system version

* code cleanup

* changed macOS for macOS and updated the macOS version view

* development with information update provided by ci cd

* applying some of the new changes that the ci cd team sent us today

* delete

* updating information sent by ci/cd on operating systems, commands, etc.

* logic of displaying message to rare operating systems and redirecting them to documentation

* logic of displaying message to rare operating systems and redirecting them to documentation

* wazuh protocol variable

* Ordered OS buttons in deploy new agent steps

* removing spaces, css den deshuso, unify uppercase

* removing link space

* fixed labels

* change of logic in links

* Removed snapshot to fix unit tests workflow

* Add agent name to the deployment command (#4739)

* Add variable for the agent's name

* input is cleaned if there is no data

* design input name

* Update CHANGELOG

* Resolved review comment, unused code and code format

Co-authored-by: Maximiliano Ibarra <maximilianoaibarra@gmail.com>

* Allow multiple server selection in the agent deploy section (#4737)

* Replaced input server address

* Testing signed commits

* Added server address component isolated from register-agent component

* Added test for multiple nodes rendered in combobox

* Added wazuh manager multiple ips in command definition

* Refactored and cleaned code

* Added unit test

* Updated CHANGELOG

* Added default option and paste only name in combo tag

* Added free option enter and cleaned code

* Refactored code and added new tests and fixed old tests

* Resolved review comments following dev style guide

* Added OS delimiter condition

* Added and updated unit tests

* Resolved review comments

* Removed empty file

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>

* links included

* remove messages, add and remove links

* update

* Revert "Allow multiple server selection in the agent deploy section" (#4775)

Revert "Allow multiple server selection in the agent deploy section (#4737)"

This reverts commit b60fd49.

* changes

Co-authored-by: Maximiliano Ibarra <maximilianoaibarra@gmail.com>
Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>
Co-authored-by: Maximiliano Ibarra <maximiliano.ibarra@wazuh.com>
(cherry picked from commit 77945e2)
chantal-kelm added a commit that referenced this pull request Nov 3, 2022
Redesign of add agent page (#4647)

* section deploy new agent in progress

* tabSystemD and tabSysV

* section deploy a new agent done

* cleaning code

* cleaning code

* test

* CHANGELOG

* code cleaning

* design for when a user selects an obsolete system version

* code cleanup

* changed macOS for macOS and updated the macOS version view

* development with information update provided by ci cd

* applying some of the new changes that the ci cd team sent us today

* delete

* updating information sent by ci/cd on operating systems, commands, etc.

* logic of displaying message to rare operating systems and redirecting them to documentation

* logic of displaying message to rare operating systems and redirecting them to documentation

* wazuh protocol variable

* Ordered OS buttons in deploy new agent steps

* removing spaces, css den deshuso, unify uppercase

* removing link space

* fixed labels

* change of logic in links

* Removed snapshot to fix unit tests workflow

* Add agent name to the deployment command (#4739)

* Add variable for the agent's name

* input is cleaned if there is no data

* design input name

* Update CHANGELOG

* Resolved review comment, unused code and code format

Co-authored-by: Maximiliano Ibarra <maximilianoaibarra@gmail.com>

* Allow multiple server selection in the agent deploy section (#4737)

* Replaced input server address

* Testing signed commits

* Added server address component isolated from register-agent component

* Added test for multiple nodes rendered in combobox

* Added wazuh manager multiple ips in command definition

* Refactored and cleaned code

* Added unit test

* Updated CHANGELOG

* Added default option and paste only name in combo tag

* Added free option enter and cleaned code

* Refactored code and added new tests and fixed old tests

* Resolved review comments following dev style guide

* Added OS delimiter condition

* Added and updated unit tests

* Resolved review comments

* Removed empty file

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>

* links included

* remove messages, add and remove links

* update

* Revert "Allow multiple server selection in the agent deploy section" (#4775)

Revert "Allow multiple server selection in the agent deploy section (#4737)"

This reverts commit b60fd49.

* changes

Co-authored-by: Maximiliano Ibarra <maximilianoaibarra@gmail.com>
Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>
Co-authored-by: Maximiliano Ibarra <maximiliano.ibarra@wazuh.com>
(cherry picked from commit 77945e2)

Co-authored-by: Chantal Belén kelm <99441266+chantal-kelm@users.noreply.github.com>
chantal-kelm added a commit that referenced this pull request Nov 3, 2022
Redesign of add agent page (#4647)

* section deploy new agent in progress

* tabSystemD and tabSysV

* section deploy a new agent done

* cleaning code

* cleaning code

* test

* CHANGELOG

* code cleaning

* design for when a user selects an obsolete system version

* code cleanup

* changed macOS for macOS and updated the macOS version view

* development with information update provided by ci cd

* applying some of the new changes that the ci cd team sent us today

* delete

* updating information sent by ci/cd on operating systems, commands, etc.

* logic of displaying message to rare operating systems and redirecting them to documentation

* logic of displaying message to rare operating systems and redirecting them to documentation

* wazuh protocol variable

* Ordered OS buttons in deploy new agent steps

* removing spaces, css den deshuso, unify uppercase

* removing link space

* fixed labels

* change of logic in links

* Removed snapshot to fix unit tests workflow

* Add agent name to the deployment command (#4739)

* Add variable for the agent's name

* input is cleaned if there is no data

* design input name

* Update CHANGELOG

* Resolved review comment, unused code and code format

Co-authored-by: Maximiliano Ibarra <maximilianoaibarra@gmail.com>

* Allow multiple server selection in the agent deploy section (#4737)

* Replaced input server address

* Testing signed commits

* Added server address component isolated from register-agent component

* Added test for multiple nodes rendered in combobox

* Added wazuh manager multiple ips in command definition

* Refactored and cleaned code

* Added unit test

* Updated CHANGELOG

* Added default option and paste only name in combo tag

* Added free option enter and cleaned code

* Refactored code and added new tests and fixed old tests

* Resolved review comments following dev style guide

* Added OS delimiter condition

* Added and updated unit tests

* Resolved review comments

* Removed empty file

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>

* links included

* remove messages, add and remove links

* update

* Revert "Allow multiple server selection in the agent deploy section" (#4775)

Revert "Allow multiple server selection in the agent deploy section (#4737)"

This reverts commit b60fd49.

* changes

Co-authored-by: Maximiliano Ibarra <maximilianoaibarra@gmail.com>
Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>
Co-authored-by: Maximiliano Ibarra <maximiliano.ibarra@wazuh.com>
(cherry picked from commit 77945e2)

Co-authored-by: Chantal Belén kelm <99441266+chantal-kelm@users.noreply.github.com>
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.

Only master IP is suggested during agent deployment in a Wazuh cluster
6 participants