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 delivery on port 1514 is only exposed for worker nodes #547

Open
dlouzan opened this issue Dec 20, 2023 · 4 comments
Open

Agent delivery on port 1514 is only exposed for worker nodes #547

dlouzan opened this issue Dec 20, 2023 · 4 comments

Comments

@dlouzan
Copy link

dlouzan commented Dec 20, 2023

According to https://documentation.wazuh.com/4.7/user-manual/configuring-cluster/advanced-settings.html, agent events delivery on port 1514 can be served from both the master and the workers.

But the setup in this repository makes it so that the workers service that exposes port 1514 https://github.com/wazuh/wazuh-kubernetes/blob/master/wazuh/wazuh_managers/wazuh-workers-svc.yaml only delivers data to the workers:

  selector:
    app: wazuh-manager
    node-type: worker

Is this intended or a bug?

Thanks!

@bmm-alc
Copy link

bmm-alc commented Jan 25, 2024

Does someone monitor the projet issues ?

@Thorgrym
Copy link

Thorgrym commented Mar 22, 2024

Please I can't register any agent because of this, once they enroll on port 1515 they can't reach 1514 because closed in the master. If I put the ip of the worker load balancer it won't even connect (and this ip doesn't respond to ping I don't know why)

Edit : I just found another issue about that : #308
Where this was posted :

          I added the following additional port to the `./wazuh/wazuh_managers/wazuh-master-svc.yaml` file. 
          This is probably a band aid over an actual fix, but it finally allowed me to register an agent.
- name: agents-events
  port: 1514
  targetPort: 1514

Originally posted by @evanreichard in #308 (comment)

it solve the issue for me but i don't know why it isn't the default configuration in this repo and/or why nobody else talk about this problem. This solution make wazuh work even if the service wazuh-workers is still unreachable by any agent (or ping/telnet)

I hope someone find a better fix but that do the job for now

@AlaaDan
Copy link

AlaaDan commented Aug 6, 2024

Another work around to get the agent enrolled can be found here #308 (comment)

@dlouzan
Copy link
Author

dlouzan commented Aug 6, 2024

@gdiazlo @JcabreraC Mentioning you from previous interactions in wazuh/wazuh#12862 🙇

WDYT about this issue / question? If the behaviour is unintended, the fix is pretty easy and I'm willing to create a PR. Thanks!

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

No branches or pull requests

4 participants