turbot/gcp_compliance

Control: Ensure API keys are restricted to only APIs that application needs access

Description

API keys are insecure because they can be viewed publicly, such as from within a browser, or they can be accessed on a device where the key resides. It is recommended to restrict API keys to use (call) only APIs required by an application.

Usage

Run the control in your terminal:

powerpipe control run gcp_compliance.control.iam_api_key_restricts_apis

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run gcp_compliance.control.iam_api_key_restricts_apis --share

SQL

This control uses a named query:

iam_api_key_restricts_apis

Tags