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

Add HTTPS with CA file and Authorization header from file for opensearch script #517

Merged
merged 2 commits into from
May 6, 2024

Conversation

Marco-Valle
Copy link
Contributor

@Marco-Valle Marco-Valle commented Apr 28, 2024

Features:

  • HTTPS
  • HTTPS certificate validation with CA file
  • Authorization header in request from file

Options added:

  • -a Auth token path
  • -c CA file path
  • -S Use HTTPS

Example:
./opensearch -h 127.0.0.1 -p 9200 -S -c /etc/wazuh-indexer/certs/root-ca.pem -a creds

File creds with Authorization header Basic:
Basic <username:password base64 encoded>

Example creds:
Basic YWRtaW46cGFzc3dvcmQ=

Tested with wazuh-indexer 4.7.3-1 on Debian 12.5

@Marco-Valle Marco-Valle changed the title HTTPS with CA file and Authorization header from file HTTPS with CA file and Authorization header from file for opensearch script Apr 28, 2024
@Marco-Valle Marco-Valle changed the title HTTPS with CA file and Authorization header from file for opensearch script Add HTTPS with CA file and Authorization header from file for opensearch script Apr 28, 2024
@VVelox VVelox merged commit 3990c53 into librenms:master May 6, 2024
3 checks passed
@VVelox
Copy link
Collaborator

VVelox commented May 6, 2024

Thanks! <3

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.

2 participants