Skip to content

Commit

Permalink
chore: prefer the use of Host Retention Policies
Browse files Browse the repository at this point in the history
  • Loading branch information
redhatrises committed Dec 4, 2024
1 parent a697ee4 commit 7aef724
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 18 deletions.
15 changes: 6 additions & 9 deletions bash/install/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ Ensure the following API scopes are enabled:
> Use this scope when configuring the `FALCON_SENSOR_UPDATE_POLICY_NAME` environment variable.
- (optional) **Hosts** [write]
> Use this scope when configuring the `FALCON_REMOVE_HOST` environment variable for the uninstall script.
>
> :warning:
> It is recommended to use Host Retention Policies in the Falcon console instead.


## Configuration

Expand Down Expand Up @@ -267,6 +272,7 @@ Other Options:
- FALCON_REMOVE_HOST (default: unset)
Determines whether the host should be removed from the Falcon console after uninstalling the sensor.
Requires API Authentication.
NOTE: It is recommended to use Host Retention Policies in the Falcon console instead.
Accepted values are ['true', 'false'].
- GET_ACCESS_TOKEN (default: unset)
Expand Down Expand Up @@ -308,15 +314,6 @@ bash falcon-linux-uninstall.sh
curl -L https://raw.githubusercontent.com/crowdstrike/falcon-scripts/v1.7.1/bash/install/falcon-linux-uninstall.sh | bash
```
#### Uninstall and remove the host from the Falcon console
```bash
export FALCON_CLIENT_ID="XXXXXXX"
export FALCON_CLIENT_SECRET="YYYYYYYYY"
export FALCON_REMOVE_HOST="true"
curl -L https://raw.githubusercontent.com/crowdstrike/falcon-scripts/v1.7.1/bash/install/falcon-linux-uninstall.sh | bash
```
## Troubleshooting
To troubleshoot installation issues, run the script by using `bash -x`:
Expand Down
1 change: 1 addition & 0 deletions bash/install/falcon-linux-uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Other Options:
- FALCON_REMOVE_HOST (default: unset)
Determines whether the host should be removed from the Falcon console after uninstalling the sensor.
Requires API Authentication.
NOTE: It is recommended to use Host Retention Policies in the Falcon console instead.
Accepted values are ['true', 'false'].
- GET_ACCESS_TOKEN (default: unset)
Expand Down
9 changes: 1 addition & 8 deletions powershell/install/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ Delete sensor uninstaller package when complete [default: $true]
.PARAMETER DeleteScript
Delete script when complete [default: $false]
.PARAMETER RemoveHost
Remove host from CrowdStrike Falcon [requires either FalconClientId|FalconClientSecret or FalconAccessToken]
Remove host from CrowdStrike Falcon [requires either FalconClientId|FalconClientSecret or FalconAccessToken]. It is recommended to use Host Retention Policies to remove hosts from the Falcon console instead of this parameter.
.PARAMETER FalconCloud
CrowdStrike Falcon OAuth2 API Hostname [default: autodiscover]
.PARAMETER FalconClientId
Expand Down Expand Up @@ -184,13 +184,6 @@ Basic example that will uninstall the sensor with the provided maintenance token
.\falcon_windows_uninstall.ps1 -MaintenanceToken <string>
```

An example using the Falcon API to retrieve the maintenance token and remove the host from the Falcon console
after uninstalling.

```pwsh
.\falcon_windows_uninstall.ps1 -FalconClientId <string> -FalconClientSecret <string> -RemoveHost
```

## Troubleshooting

To assist in troubleshooting the installation scripts, you can try the following:
Expand Down
2 changes: 1 addition & 1 deletion powershell/install/falcon_windows_uninstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Delete sensor uninstaller package when complete [default: $true]
.PARAMETER DeleteScript
Delete script when complete [default: $false]
.PARAMETER RemoveHost
Remove host from CrowdStrike Falcon [requires either FalconClientId|FalconClientSecret or FalconAccessToken]
Remove host from CrowdStrike Falcon [requires either FalconClientId|FalconClientSecret or FalconAccessToken]. It is recommended to use Host Retention Policies to remove hosts from the Falcon console instead of this parameter.
.PARAMETER FalconCloud
CrowdStrike Falcon OAuth2 API Hostname [default: autodiscover]
.PARAMETER FalconClientId
Expand Down

0 comments on commit 7aef724

Please sign in to comment.