mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-04-10 19:58:52 +00:00
docs(prowler-app): add new auth method for GCP (#8129)
This commit is contained in:
committed by
GitHub
parent
4a839b0146
commit
636bdb6d0a
BIN
docs/tutorials/img/gcp-auth-methods.png
Normal file
BIN
docs/tutorials/img/gcp-auth-methods.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 255 KiB |
BIN
docs/tutorials/img/gcp-service-account-creds.png
Normal file
BIN
docs/tutorials/img/gcp-service-account-creds.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 332 KiB |
@@ -101,7 +101,26 @@ For Azure, Prowler App uses a service principal application to authenticate, for
|
||||
|
||||
---
|
||||
### **Step 4.3: GCP Credentials**
|
||||
To connect your GCP Project, you need to use the Application Default Credentials (ADC) returned by the `gcloud` CLI. Here’s how to set up:
|
||||
|
||||
For Google Cloud, first enter your `GCP Project ID` and then select the authentication method you want to use:
|
||||
|
||||
- **Service Account Authentication** (**Recommended**)
|
||||
- **Application Default Credentials**
|
||||
|
||||
**Service Account Authentication** is the recommended authentication method for automated systems and machine-to-machine interactions, like Prowler. For detailed information about this, refer to the [Google Cloud documentation](https://cloud.google.com/iam/docs/service-account-overview).
|
||||
|
||||
<img src="../img/gcp-auth-methods.png" alt="GCP Authentication Methods" width="700"/>
|
||||
|
||||
#### **Step 4.3.1: Service Account Authentication**
|
||||
|
||||
First of all, in the same project that you selected in the previous step, you need to create a service account and then generate a key in JSON format for it. For more information about this, you can follow the next Google Cloud documentation tutorials:
|
||||
|
||||
- [Create a service account](https://cloud.google.com/iam/docs/creating-managing-service-accounts)
|
||||
- [Generate a key for a service account](https://cloud.google.com/iam/docs/creating-managing-service-account-keys)
|
||||
|
||||
<img src="../img/gcp-service-account-creds.png" alt="GCP Service Account Credentials" width="700"/>
|
||||
|
||||
#### **Step 4.3.2: Application Default Credentials**
|
||||
|
||||
1. Run the following command in your terminal to authenticate with GCP:
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user