elastic / kibana

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

[Cloud Security] Automated creation of cloud credentials #175977

Closed maxcold closed 5 months ago

maxcold commented 10 months ago

User story As a user of Cloud Security in Agentless I want help in creating cloud resources I need to make CSPM integration work so that I don't spend too much time figuring out what exactly I need to do

Motivation

If users don't have credentials required for CSPM to work at hand, we want to help them out by providing a convenient way to create one on a cloud provider of their choice (AWS, GCP, Azure), eg. Cloudformation in case of AWS

Design https://www.figma.com/file/jmdsEtaqB6im6T0Y08Vais/Agentless-CSPM-for-serverless?type=design&node-id=3557-11941&mode=design&t=vjweBGMeadQ7d2BP-0

Image

Definition of done

Out of scope

Related tasks/epics

Blocked by

Team tag

@elastic/kibana-cloud-security-posture

maxcold commented 10 months ago

@tin @kfirpeled there are a couple of open questions for this feature:

  1. Am I correct that we want to support all three cloud providers with this feature, not only AWS? Assuning that we bring Agentless support to GCP and Azure as well
  2. Is the feature agentless specific? We have the same setup methods in ESS/on-prem, should we also provide the cloudformation (or other tech) option to create credentials there?
  3. We need to work on a copy and the flow a bit more in my opinion. For example, in case of AWS, we support Direct Access Keys and Temp Keys as credentials for Agentless. Will cloudformation create one or the other? We need to make sure we explain well what to expect from the feature
oren-zohar commented 10 months ago

@maxcold @kfirpeled @olegsu @tehilashn I think my team can take care of the template part (Cloudformation, ARM, etc) next sprint

maxcold commented 8 months ago

@maxcold check for other tickets to link here

maxcold commented 8 months ago

@tinnytintin10 can you confirm that we prio this feature for Agentless, so there is no need to implement the Cloudformation/ARM Template/Cloud Shell for credential options not supported by Agentless

Omolola-Akinleye commented 7 months ago

Currently for this sprint the following cloud providers will be done for 8.15.0 :

With Azure ARM Template is not possible to create Automation Credentials Google Cloud Shell Work is still in progress and merged by end of next week.

Omolola-Akinleye commented 5 months ago

@moukoublen AWS Cloud Credentials is working! Thank you

Image

uri-weisman commented 4 months ago

Verified. Agent is running and produce findings with the created credentials.

Image

opauloh commented 2 months ago

Verified - QA - Serverless

VERSION: 8.16.0

BUILD: 78101

COMMIT: f51481d4d697ae23260d2b46ceae7545d3571e95

Cloudformation instructions - single account:

Image

Image

Cloudformation instructions - organization:

Image

Image

Output tab (credentials manually blurred):

Image