elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.67k stars 8.23k forks source link

GCP Deployment Script Error in Agentless CSPM #201055

Open opauloh opened 1 day ago

opauloh commented 1 day ago

Describe the bug

As identified here, GCP Instructions don't work on serverless.

Preconditions

  1. Serverless environment

To Reproduce Steps to reproduce the behavior:

  1. Log in a Serverless environment with an user with Fleet access
  2. Attempt to install CSPM Integration -> Select GCP -> Single account
  3. Advanced options -> Select Agentless
  4. Replace <PROJECT_ID> with a project and copy the config command
  5. Click Launch Cloud Shell and Paste the copied command
  6. Confirm the following Error appears:
gcloud config set project my-project ./deploy_service_account.sh

ERROR: (gcloud.config.set) unrecognized arguments: ./deploy_service_account.sh 

To search the help text of gcloud commands, run:
  gcloud help -- SEARCH_TERM

Expected behavior

The correct command should be:

gcloud config set project my-project && ./deploy_service_account.sh

Version

Serverless build 80725 Kibana Commit 0ed82309e22a7fc8ac067c1dbf2c378735f86855

elasticmachine commented 1 day ago

Pinging @elastic/kibana-cloud-security-posture (Team:Cloud Security)

opauloh commented 1 day ago

@seanrathier - I am assigning you to this issue for acknowledgement, it was found as part of the Custom Roles validation in serverless.