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

Set new API configuration behavior #342

Merged
merged 5 commits into from
Jan 7, 2020
Merged

Conversation

xr09
Copy link
Contributor

@xr09 xr09 commented Jan 7, 2020

This fixes #339

It follows the proposed workflow on the issue, deleting the .wazuh index if it exists.

@xr09 xr09 requested a review from jm404 January 7, 2020 14:56
@xr09 xr09 self-assigned this Jan 7, 2020
@@ -9,6 +9,14 @@ elastic_stack_version: 7.5.1
wazuh_version: 3.11.0
wazuh_app_url: https://packages.wazuh.com/wazuhapp/wazuhapp

# API credentials
api_auth:
Copy link
Contributor

Choose a reason for hiding this comment

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

I would go with wazuh_api_credentials or wazuh_api_auth and remove the api_ prefix for id url...

What are your thoughts about it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well spotted. Fixed in latest commit.

status_code: 200, 404
ignore_errors: yes

- name: Configure Wazuh Plugin
Copy link
Contributor

Choose a reason for hiding this comment

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

Please change it to Configure Wazuh Kibana Plugin

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed in 2d91a5c

password: "{{ elasticsearch_xpack_security_password }}"
validate_certs: no
status_code: 200, 404
ignore_errors: yes
Copy link
Contributor

Choose a reason for hiding this comment

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

Adding a comment to notify users that this curl can be skipped because the app does have a default config would be great IMO

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed in 71e52de

Now it doesn't ignore errors on index removal

@xr09 xr09 requested a review from jm404 January 7, 2020 15:47
Copy link
Contributor

@jm404 jm404 left a comment

Choose a reason for hiding this comment

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

LGTM

@jm404 jm404 merged commit 4739841 into master Jan 7, 2020
@jm404 jm404 deleted the feature-339-new-api-behavior branch January 7, 2020 15:50
@jm404 jm404 mentioned this pull request Jan 7, 2020
3 tasks
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.

New API configuration behavior on 3.11
2 participants