Skip to content

Commit

Permalink
Merge pull request #383 from carlosmmatos/bump-v1.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
redhatrises authored Nov 7, 2024
2 parents 2f011bd + 40e4036 commit 8748322
Show file tree
Hide file tree
Showing 10 changed files with 53 additions and 52 deletions.
60 changes: 30 additions & 30 deletions bash/containers/falcon-container-sensor-pull/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ The script supports auto-discovery of the Falcon cloud region. If the cloud regi

```terminal
Usage: falcon-container-sensor-pull.sh [options]
Version: 1.7.0
Version: 1.7.1
Required Flags:
-u, --client-id <FALCON_CLIENT_ID> Falcon API OAUTH Client ID
Expand Down Expand Up @@ -104,47 +104,47 @@ Help Options:

> **Note**: **Settings can be passed to the script via CLI flags or environment variables:**
| Flags | Environment Variables | Default | Description |
|:-----------------------------------------------|-------------------------|----------------------------|------------------------------------------------------------------------------------------|
| `-f`, `--cid <FALCON_CID>` | `$FALCON_CID` | `None` (Optional) | CrowdStrike Customer ID (CID). *If not provided, CID will be auto-detected.* |
| `-u`, `--client-id <FALCON_CLIENT_ID>` | `$FALCON_CLIENT_ID` | `None` (Required) | CrowdStrike API Client ID |
| `-s`, `--client-secret <FALCON_CLIENT_SECRET>` | `$FALCON_CLIENT_SECRET` | `None` (Required) | CrowdStrike API Client Secret |
| `-r`, `--region <FALCON_CLOUD>` | `$FALCON_CLOUD` | `us-1` (Optional) | CrowdStrike Region. \**Auto-discovery is only available for [`us-1, us-2, eu-1`] regions.* |
| `-c`, `--copy <REGISTRY/NAMESPACE>` | `$COPY` | `None` (Optional) | Registry you want to copy the sensor image to. Example: `myregistry.com/mynamespace` |
| `-v`, `--version <SENSOR_VERSION>` | `$SENSOR_VERSION` | `None` (Optional) | Specify sensor version to retrieve from the registry |
| `-p`, `--platform <SENSOR_PLATFORM>` | `$SENSOR_PLATFORM` | `None` (Optional) | Specify sensor platform to retrieve from the registry |
| Flags | Environment Variables | Default | Description |
| :--------------------------------------------- | ----------------------- | ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `-f`, `--cid <FALCON_CID>` | `$FALCON_CID` | `None` (Optional) | CrowdStrike Customer ID (CID). *If not provided, CID will be auto-detected.* |
| `-u`, `--client-id <FALCON_CLIENT_ID>` | `$FALCON_CLIENT_ID` | `None` (Required) | CrowdStrike API Client ID |
| `-s`, `--client-secret <FALCON_CLIENT_SECRET>` | `$FALCON_CLIENT_SECRET` | `None` (Required) | CrowdStrike API Client Secret |
| `-r`, `--region <FALCON_CLOUD>` | `$FALCON_CLOUD` | `us-1` (Optional) | CrowdStrike Region. \**Auto-discovery is only available for [`us-1, us-2, eu-1`] regions.* |
| `-c`, `--copy <REGISTRY/NAMESPACE>` | `$COPY` | `None` (Optional) | Registry you want to copy the sensor image to. Example: `myregistry.com/mynamespace` |
| `-v`, `--version <SENSOR_VERSION>` | `$SENSOR_VERSION` | `None` (Optional) | Specify sensor version to retrieve from the registry |
| `-p`, `--platform <SENSOR_PLATFORM>` | `$SENSOR_PLATFORM` | `None` (Optional) | Specify sensor platform to retrieve from the registry |
| `-t`, `--type <SENSOR_TYPE>` | `$SENSOR_TYPE` | `falcon-container` (Optional) | Specify which sensor to download [`falcon-container`, `falcon-sensor`, `falcon-kac`, `falcon-snapshot`, `falcon-imageanalyzer`, `kpagent`, `fcs`] ([see more details below](#sensor-types)) |
| `--runtime` | `$CONTAINER_TOOL` | `docker` (Optional) | Use a different container runtime [docker, podman, skopeo]. **Default is Docker**. |
| `--dump-credentials` | `$CREDS` | `False` (Optional) | Print registry credentials to stdout to copy/paste into container tools |
| `--get-image-path` | N/A | `None` | Get the full image path including the registry, repository, and latest tag for the specified `SENSOR_TYPE`. |
| `--get-pull-token` | N/A | `None` | Get the pull token of the selected `SENSOR_TYPE` for Kubernetes. |
| `--get-cid` | N/A | `None` | Get the CID assigned to the API Credentials. |
| `--list-tags` | `$LISTTAGS` | `False` (Optional) | List all tags available for the selected sensor |
| `--allow-legacy-curl` | `$ALLOW_LEGACY_CURL` | `False` (Optional) | Allow the script to run with an older version of cURL |
| `-h`, `--help` | N/A | `None` | Display help message |
| `--runtime` | `$CONTAINER_TOOL` | `docker` (Optional) | Use a different container runtime [docker, podman, skopeo]. **Default is Docker**. |
| `--dump-credentials` | `$CREDS` | `False` (Optional) | Print registry credentials to stdout to copy/paste into container tools |
| `--get-image-path` | N/A | `None` | Get the full image path including the registry, repository, and latest tag for the specified `SENSOR_TYPE`. |
| `--get-pull-token` | N/A | `None` | Get the pull token of the selected `SENSOR_TYPE` for Kubernetes. |
| `--get-cid` | N/A | `None` | Get the CID assigned to the API Credentials. |
| `--list-tags` | `$LISTTAGS` | `False` (Optional) | List all tags available for the selected sensor |
| `--allow-legacy-curl` | `$ALLOW_LEGACY_CURL` | `False` (Optional) | Allow the script to run with an older version of cURL |
| `-h`, `--help` | N/A | `None` | Display help message |

---
> **Note**: **Internal flags are for CrowdStrike internal use only. Internal flags do not provide any functionality to end customers.**
| Internal Flags | Environment Variables | Default | Description |
|:-----------------------------------------------|-------------------------|----------------------------|------------------------------------------------------------------------------------------|
| `--internal-build-stage <BUILD_STAGE>` | `$BUILD_STAGE` | `release` (Optional) | Falcon Build Stage [`release, stage`] |
| Internal Flags | Environment Variables | Default | Description |
| :------------------------------------- | --------------------- | -------------------- | ------------------------------------- |
| `--internal-build-stage <BUILD_STAGE>` | `$BUILD_STAGE` | `release` (Optional) | Falcon Build Stage [`release, stage`] |

---

### Sensor Types

The following sensor types are available to download:

| Sensor Image Name | Description |
|:-------------|:------------|
| `falcon-sensor` | The Falcon sensor for Linux as a DaemonSet deployment |
| `falcon-container` **(default)** | The Falcon Container sensor for Linux |
| `falcon-kac` | The Falcon Kubernetes Admission Controller |
| `falcon-snapshot` | The Falcon Snapshot scanner |
| `falcon-imageanalyzer` | The Falcon Image Assessment at Runtime |
| `kpagent` | The Falcon Kubernetes Protection Agent |
| `fcs` | The Falcon Cloud Security CLI tool |
| Sensor Image Name | Description |
| :------------------------------- | :---------------------------------------------------- |
| `falcon-sensor` | The Falcon sensor for Linux as a DaemonSet deployment |
| `falcon-container` **(default)** | The Falcon Container sensor for Linux |
| `falcon-kac` | The Falcon Kubernetes Admission Controller |
| `falcon-snapshot` | The Falcon Snapshot scanner |
| `falcon-imageanalyzer` | The Falcon Image Assessment at Runtime |
| `kpagent` | The Falcon Kubernetes Protection Agent |
| `fcs` | The Falcon Cloud Security CLI tool |

### Examples

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Description: Bash script to copy Falcon DaemonSet Sensor, Container Sensor, Kube

set -e

VERSION="1.7.0"
VERSION="1.7.1"

usage() {
echo "Usage: $0 [options]
Expand Down
24 changes: 12 additions & 12 deletions bash/install/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ The installer is AWS SSM aware, if `FALCON_CLIENT_ID` and `FALCON_CLIENT_SECRET`
Usage: falcon-linux-install.sh [-h|--help]
Installs and configures the CrowdStrike Falcon Sensor for Linux.
Version: 1.7.0
Version: 1.7.1
This script recognizes the following environmental variables:
Expand Down Expand Up @@ -191,15 +191,15 @@ To download and run the script directly:
```bash
export FALCON_CLIENT_ID="XXXXXXX"
export FALCON_CLIENT_SECRET="YYYYYYYYY"
curl -L https://raw.githubusercontent.com/crowdstrike/falcon-scripts/v1.7.0/bash/install/falcon-linux-install.sh | bash
curl -L https://raw.githubusercontent.com/crowdstrike/falcon-scripts/v1.7.1/bash/install/falcon-linux-install.sh | bash
```
Alternatively, download the script and run it locally:
```bash
export FALCON_CLIENT_ID="XXXXXXX"
export FALCON_CLIENT_SECRET="YYYYYYYYY"
curl -O https://raw.githubusercontent.com/crowdstrike/falcon-scripts/v1.7.0/bash/install/falcon-linux-install.sh
curl -O https://raw.githubusercontent.com/crowdstrike/falcon-scripts/v1.7.1/bash/install/falcon-linux-install.sh
bash falcon-linux-install.sh
```
Expand All @@ -216,7 +216,7 @@ FALCON_CLIENT_ID="XXXXXXX" FALCON_CLIENT_SECRET="YYYYYYYYY" bash falcon-linux-in
```bash
export FALCON_CLIENT_ID="XXXXXXX"
export FALCON_CLIENT_SECRET="YYYYYYYYY"
curl -L https://raw.githubusercontent.com/crowdstrike/falcon-scripts/v1.7.0/bash/install/falcon-linux-install.sh | bash
curl -L https://raw.githubusercontent.com/crowdstrike/falcon-scripts/v1.7.1/bash/install/falcon-linux-install.sh | bash
```
#### Install the Falcon Sensor with the previous version (n-1)
Expand All @@ -225,7 +225,7 @@ curl -L https://raw.githubusercontent.com/crowdstrike/falcon-scripts/v1.7.0/bash
export FALCON_CLIENT_ID="XXXXXXX"
export FALCON_CLIENT_SECRET="YYYYYYYYY"
export FALCON_SENSOR_VERSION_DECREMENT=1
curl -L https://raw.githubusercontent.com/crowdstrike/falcon-scripts/v1.7.0/bash/install/falcon-linux-install.sh | bash
curl -L https://raw.githubusercontent.com/crowdstrike/falcon-scripts/v1.7.1/bash/install/falcon-linux-install.sh | bash
```
#### Create a Golden Image
Expand All @@ -234,7 +234,7 @@ curl -L https://raw.githubusercontent.com/crowdstrike/falcon-scripts/v1.7.0/bash
export FALCON_CLIENT_ID="XXXXXXX"
export FALCON_CLIENT_SECRET="YYYYYYYYY"
export PREP_GOLDEN_IMAGE="true"
curl -L https://raw.githubusercontent.com/crowdstrike/falcon-scripts/v1.7.0/bash/install/falcon-linux-install.sh | bash
curl -L https://raw.githubusercontent.com/crowdstrike/falcon-scripts/v1.7.1/bash/install/falcon-linux-install.sh | bash
```
## Uninstall Script
Expand All @@ -243,7 +243,7 @@ curl -L https://raw.githubusercontent.com/crowdstrike/falcon-scripts/v1.7.0/bash
Usage: falcon-linux-uninstall.sh [-h|--help]
Uninstalls the CrowdStrike Falcon Sensor from Linux operating systems.
Version: 1.7.0
Version: 1.7.1
The script recognizes the following environmental variables:
Expand Down Expand Up @@ -290,13 +290,13 @@ This script recognizes the following argument:
To download and run the script directly
```bash
curl -L https://raw.githubusercontent.com/crowdstrike/falcon-scripts/v1.7.0/bash/install/falcon-linux-uninstall.sh | bash
curl -L https://raw.githubusercontent.com/crowdstrike/falcon-scripts/v1.7.1/bash/install/falcon-linux-uninstall.sh | bash
```
Alternatively, download the script and run it locally
```bash
curl -O https://raw.githubusercontent.com/crowdstrike/falcon-scripts/v1.7.0/bash/install/falcon-linux-uninstall.sh
curl -O https://raw.githubusercontent.com/crowdstrike/falcon-scripts/v1.7.1/bash/install/falcon-linux-uninstall.sh
bash falcon-linux-uninstall.sh
```
Expand All @@ -305,7 +305,7 @@ bash falcon-linux-uninstall.sh
#### Uninstall the Falcon Sensor
```bash
curl -L https://raw.githubusercontent.com/crowdstrike/falcon-scripts/v1.7.0/bash/install/falcon-linux-uninstall.sh | bash
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
Expand All @@ -314,7 +314,7 @@ curl -L https://raw.githubusercontent.com/crowdstrike/falcon-scripts/v1.7.0/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.0/bash/install/falcon-linux-uninstall.sh | bash
curl -L https://raw.githubusercontent.com/crowdstrike/falcon-scripts/v1.7.1/bash/install/falcon-linux-uninstall.sh | bash
```
## Troubleshooting
Expand All @@ -328,5 +328,5 @@ bash -x falcon-linux-install.sh
or
```bash
curl -L https://raw.githubusercontent.com/crowdstrike/falcon-scripts/v1.7.0/bash/install/falcon-linux-install.sh | bash -x
curl -L https://raw.githubusercontent.com/crowdstrike/falcon-scripts/v1.7.1/bash/install/falcon-linux-install.sh | bash -x
```
2 changes: 1 addition & 1 deletion bash/install/falcon-linux-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ This script recognizes the following argument:
EOF
}

VERSION="1.7.0"
VERSION="1.7.1"

# If -h or --help is passed, print the usage and exit
if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
Expand Down
2 changes: 1 addition & 1 deletion bash/install/falcon-linux-uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ This script recognizes the following argument:
EOF
}

VERSION="1.7.0"
VERSION="1.7.1"

# If -h or --help is passed, print the usage and exit
if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
Expand Down
4 changes: 2 additions & 2 deletions powershell/install/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ Enable verbose logging
To download the script:

```pwsh
Invoke-WebRequest -Uri https://raw.githubusercontent.com/crowdstrike/falcon-scripts/v1.7.0/powershell/install/falcon_windows_install.ps1 -OutFile falcon_windows_install.ps1
Invoke-WebRequest -Uri https://raw.githubusercontent.com/crowdstrike/falcon-scripts/v1.7.1/powershell/install/falcon_windows_install.ps1 -OutFile falcon_windows_install.ps1
```

Basic example that will install the sensor with the provided provisioning token
Expand Down Expand Up @@ -175,7 +175,7 @@ Enable verbose logging
To download the script:

```pwsh
Invoke-WebRequest -Uri https://raw.githubusercontent.com/crowdstrike/falcon-scripts/v1.7.0/powershell/install/falcon_windows_uninstall.ps1 -OutFile falcon_windows_uninstall.ps1
Invoke-WebRequest -Uri https://raw.githubusercontent.com/crowdstrike/falcon-scripts/v1.7.1/powershell/install/falcon_windows_uninstall.ps1 -OutFile falcon_windows_uninstall.ps1
```

Basic example that will uninstall the sensor with the provided maintenance token
Expand Down
2 changes: 1 addition & 1 deletion powershell/install/falcon_windows_install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ begin {

function Invoke-FalconAuth([hashtable] $WebRequestParams, [string] $BaseUrl, [hashtable] $Body, [string] $FalconCloud) {
$Headers = @{'Accept' = 'application/json'; 'Content-Type' = 'application/x-www-form-urlencoded'; 'charset' = 'utf-8' }
$Headers.Add('User-Agent', 'crowdstrike-falcon-scripts/1.7.0')
$Headers.Add('User-Agent', 'crowdstrike-falcon-scripts/1.7.1')
if ($FalconAccessToken){
$Headers.Add('Authorization', "bearer $($FalconAccessToken)")
}
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 @@ -177,7 +177,7 @@ begin {

function Invoke-FalconAuth([hashtable] $WebRequestParams, [string] $BaseUrl, [hashtable] $Body, [string] $FalconCloud) {
$Headers = @{'Accept' = 'application/json'; 'Content-Type' = 'application/x-www-form-urlencoded'; 'charset' = 'utf-8' }
$Headers.Add('User-Agent', 'crowdstrike-falcon-scripts/1.7.0')
$Headers.Add('User-Agent', 'crowdstrike-falcon-scripts/1.7.1')
if ($FalconAccessToken){
$Headers.Add('Authorization', "bearer $($FalconAccessToken)")
}
Expand Down
2 changes: 1 addition & 1 deletion powershell/migrate/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ Enable verbose logging
To download the script, run the following command:

```pwsh
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/crowdstrike/falcon-scripts/v1.7.0/powershell/migrate/falcon_windows_migrate.ps1" -OutFile "falcon_windows_migrate.ps1"
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/crowdstrike/falcon-scripts/v1.7.1/powershell/migrate/falcon_windows_migrate.ps1" -OutFile "falcon_windows_migrate.ps1"
```

### Example 1
Expand Down
Loading

0 comments on commit 8748322

Please sign in to comment.