CrowdStrike / Cloud-GCP

A collection of projects supporting GCP integration
The Unlicense
6 stars 10 forks source link

API Key Permissions/Scopes not specified in Falcon Sensor documentation #20

Closed tvetere-active closed 2 years ago

tvetere-active commented 2 years ago

Hello,

I am following the instructions provided here: https://github.com/CrowdStrike/Cloud-GCP/blob/main/container/gke-implementation-guide.md in order to install a Falcon Sensor on GKE. Everything works until I get to the step

falcon-container-sensor-push $FALCON_IMAGE_URI

I have created an API key, I have a client id and secret which I am passing to the tooling container. I also am authenticated to GCP and made sure I was able to push to the GCP container registry. However, the above command throws permissions errors when trying to download the falcon sensor image from CrowdStrike. The first permission error was related to a failure to retrieve the CCID (by adding the "Sensor Download" role I was able to fix this) but now I am seeing this error:

image

I noticed this particular call is to the API endpoint /container-security/entities/image-registry-credentials/v1

I found this page after talking with CrowdStrike support https://falcon.crowdstrike.com/documentation/46/crowdstrike-oauth2-based-apis#api-scopes but none of these role descriptions seem to fit this particular endpoint.

It would be helpful if this documentation included the roles necessary in order to run these commands.

isimluk commented 2 years ago

Hello @tvetere-active,

The error you are seeing is indeed related to API scopes.

Required API scopes for that script you are running are:

I will update the documentation with this information. I am sorry for the inconvenience and grateful for your ticket.

Further, please let me drive your attention to another two projects we have that may be instrumental in installing the sensor to the cluster. This guide you are following is predating the existence of the said projects.