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

[Bug] CLI Fixes #1073

Merged
merged 40 commits into from
Sep 10, 2021
Merged

[Bug] CLI Fixes #1073

merged 40 commits into from
Sep 10, 2021

Conversation

brokensound77
Copy link
Collaborator

@brokensound77 brokensound77 commented Mar 31, 2021

Issues

resolves #1472
resolves #1072 - import-rules command not working
resolves #1067 - kibana auth for non-cloud; export-rules command
resolves #772 - self signed certs for es and Kibana
resolves #656 - kibana auth for non-cloud
resolves #634 - kibana auth for non-cloud

Summary

This resolves multiple existing bugs which were introduced during the refactors, primarily in the CLI and kibana client.

The history got muddled due to upstream changes, but the initial commit log reflects the primary commands targeted for fixes

For reviewers

If there are any other issues which are resolved by this, please add

Also, if there are any other existing bugs which may be within scope, we can incorporate that as well

@brokensound77 brokensound77 added bug Something isn't working cli command line tooling python Internal python for the repository labels Mar 31, 2021
@brokensound77 brokensound77 self-assigned this Mar 31, 2021
# Conflicts:
#	detection_rules/devtools.py
#	detection_rules/kbwrap.py
#	detection_rules/main.py
#	detection_rules/packaging.py
#	detection_rules/rule_loader.py
@rw-access
Copy link
Contributor

Thanks for taking care of this and some of the issues that were caused by #1029 and #1063.
Let me know when you're ready for us to get this through and un-break things.

# Conflicts:
#	detection_rules/devtools.py
#	detection_rules/main.py
#	detection_rules/packaging.py
#	detection_rules/rule.py
@brokensound77 brokensound77 marked this pull request as ready for review June 16, 2021 22:11
detection_rules/rule.py Outdated Show resolved Hide resolved
@botelastic botelastic bot added the schema label Aug 19, 2021
@brokensound77
Copy link
Collaborator Author

All comments addressed, ready for ✅ @rw-access

Copy link
Contributor

@rw-access rw-access left a comment

Choose a reason for hiding this comment

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

LGTM thanks for the dataclasses.replace fixes

@brokensound77 brokensound77 merged commit 5b24eca into elastic:main Sep 10, 2021
@brokensound77 brokensound77 deleted the cli-fixes branch September 10, 2021 18:06
protectionsmachine pushed a commit that referenced this pull request Sep 10, 2021
* add support for self-signed certs in es and kibana
* allow Kibana to auth against any providerType
* fix export-rules command
* fix kibana upload-rule command
* fix view-rule command
* fix validate-rule command
* fix search-rules command
* fix dev kibana-diff command
* fix dev package-stats command
* fix dev search-rule-prs command
* fix dev deprecate-rule command
* replace toml with pytoml to fix import-rules command
* use no_verify in get_kibana_client
* use Path for rule-file type in view-rule
* update schemas to resolve additionalProperties type bug
* fix missing unique_fields in package rule filter
* fix github pr loader
* Load gh rules as TOMLRule instead of dict
* remove unnecessary version insertion

(cherry picked from commit 5b24eca)
protectionsmachine pushed a commit that referenced this pull request Sep 10, 2021
* add support for self-signed certs in es and kibana
* allow Kibana to auth against any providerType
* fix export-rules command
* fix kibana upload-rule command
* fix view-rule command
* fix validate-rule command
* fix search-rules command
* fix dev kibana-diff command
* fix dev package-stats command
* fix dev search-rule-prs command
* fix dev deprecate-rule command
* replace toml with pytoml to fix import-rules command
* use no_verify in get_kibana_client
* use Path for rule-file type in view-rule
* update schemas to resolve additionalProperties type bug
* fix missing unique_fields in package rule filter
* fix github pr loader
* Load gh rules as TOMLRule instead of dict
* remove unnecessary version insertion

(cherry picked from commit 5b24eca)
protectionsmachine pushed a commit that referenced this pull request Sep 10, 2021
* add support for self-signed certs in es and kibana
* allow Kibana to auth against any providerType
* fix export-rules command
* fix kibana upload-rule command
* fix view-rule command
* fix validate-rule command
* fix search-rules command
* fix dev kibana-diff command
* fix dev package-stats command
* fix dev search-rule-prs command
* fix dev deprecate-rule command
* replace toml with pytoml to fix import-rules command
* use no_verify in get_kibana_client
* use Path for rule-file type in view-rule
* update schemas to resolve additionalProperties type bug
* fix missing unique_fields in package rule filter
* fix github pr loader
* Load gh rules as TOMLRule instead of dict
* remove unnecessary version insertion

(cherry picked from commit 5b24eca)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport: auto bug Something isn't working cli command line tooling python Internal python for the repository schema
Projects
None yet
2 participants