Skip to content

Commit

Permalink
chore: prefer host retention policies over hide_host
Browse files Browse the repository at this point in the history
  • Loading branch information
redhatrises committed Dec 2, 2024
1 parent 136adae commit 96dc5d8
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Name | Description
[crowdstrike.falcon.auth](https://crowdstrike.github.io/ansible_collection_falcon/auth_module.html)|Manage Authentication with Falcon API
[crowdstrike.falcon.cid_info](https://crowdstrike.github.io/ansible_collection_falcon/cid_info_module.html)|Get CID with checksum
[crowdstrike.falcon.host_contain](https://crowdstrike.github.io/ansible_collection_falcon/host_contain_module.html)|Network contain hosts in Falcon
[crowdstrike.falcon.host_hide](https://crowdstrike.github.io/ansible_collection_falcon/host_hide_module.html)|Hide/Unhide hosts from the Falcon console
[crowdstrike.falcon.host_hide](https://crowdstrike.github.io/ansible_collection_falcon/host_hide_module.html)|Hide/Unhide hosts from the Falcon console. Preference should be given to using `Host Retention Policies` under `Host Management` in the Falcon console which provides more flexibility and customization for automatically hiding and deleting hosts instead.
[crowdstrike.falcon.host_info](https://crowdstrike.github.io/ansible_collection_falcon/host_info_module.html)|Get information about Falcon hosts
[crowdstrike.falcon.kernel_support_info](https://crowdstrike.github.io/ansible_collection_falcon/kernel_support_info_module.html)|Get information about kernels supported by the Falcon Sensor for Linux
[crowdstrike.falcon.sensor_download](https://crowdstrike.github.io/ansible_collection_falcon/sensor_download_module.html)|Download Falcon Sensor Installer
Expand Down
2 changes: 2 additions & 0 deletions changelogs/prefer-host-retention-policies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- Preference should be given to using Host Retention Policies under Host Management in the Falcon console which provides more flexibility and customization for automatically hiding and deleting hosts instead.
7 changes: 0 additions & 7 deletions plugins/lookup/host_ids.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,6 @@
'platform_name:"Linux"
+ reduced_functionality_mode:"yes"')
}}
- name: Hide stale devices that haven't been seen in 15 days (using a filter variable)
crowdstrike.falcon.host_hide:
hidden: true
hosts: "{{ lookup('crowdstrike.falcon.host_ids', stale_filter) }}"
vars:
stale_filter: 'last_seen:<="now-15d"'
"""

RETURN = r"""
Expand Down
4 changes: 4 additions & 0 deletions plugins/modules/host_hide.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
- crowdstrike.falcon.credentials.auth
notes:
- While you can use this module to hide or unhide hosts, it is recommended to
use the B(Host Retention Policies) in the Falcon console to create policies to
manage automatically hiding and deleting hosts in the console instead of using
this module.
- This module handles the 100 hosts per request limit by the Falcon API. This
means that if more than 100 hosts are passed to the module, it will process
them in batches of 100 automatically.
Expand Down
2 changes: 2 additions & 0 deletions roles/falcon_uninstall/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ Uninstalls the CrowdStrike Falcon Sensor.
- **eu-1** -> api.eu-1.crowdstrike.com
- `falcon_api_enable_no_log` - Whether to enable or disable the logging of sensitive data being exposed in API calls (bool, default: ***true***)
- `falcon_remove_host` - Whether to hide/remove the host from the CrowdStrike console (bool, default: false)
> `WARNING`:
> Please use `Host Retention Policies` under `Host Management` in the Falcon console which provides more flexibility and customization for automatically hiding and deleting hosts instead.
### Windows Specific Variables

Expand Down
1 change: 1 addition & 0 deletions roles/falcon_uninstall/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
- name: Hide host
when:
- falcon.auth is defined
- falcon_remove_host
- falcon_uninstall_remove_aid is defined
block:
- ansible.builtin.include_tasks: hide_host.yml
Expand Down

0 comments on commit 96dc5d8

Please sign in to comment.