Control types for @turbot/gcp-functions
- GCP > Functions > API Enabled
- GCP > Functions > CMDB
- GCP > Functions > Discovery
- GCP > Functions > Function > Active
- GCP > Functions > Function > Approved
- GCP > Functions > Function > CMDB
- GCP > Functions > Function > Discovery
- GCP > Functions > Function > Policy
- GCP > Functions > Function > Policy > Trusted Access
- GCP > Functions > Function > Usage
GCP > Functions > API Enabled
Check whether GCP Functions API is enabled.
API Enabled refers specifically to the API state of a service in a cloud project.
This control determines whether the API state is set as per desired level.
The GCP > Functions > API Enabled
control compares
the API state against the API Enabled policies,
raises an alarm, and takes the defined enforcement action.
tmod:@turbot/gcp-functions#/control/types/functionsApiEnabled
GCP > Functions > CMDB
Record and synchronize details for the GCP Functions into the CMDB.
The CMDB control is
responsible for populating and updating all the attributes for that
resource type in the Guardrails CMDB.
Note: If CMDB is set to Skip for a resource, then it will not be added
to the CMDB, and no controls that target it will run.
tmod:@turbot/gcp-functions#/control/types/functionsCmdb
GCP > Functions > Discovery
Discover GCP Functions resources and add them to the CMDB.
The Discovery
control is tasked with identifying instances for a particular resource.
The Discovery control will periodically search for new target resources and
save them to the Guardrails CMDB. Once discovered, resources are then
responsible for tracking changes to themselves through the
CMDB control.
tmod:@turbot/gcp-functions#/control/types/functionsDiscovery
GCP > Functions > Function > Active
Take an action when an GCP Functions function is not active based on theGCP > Functions > Function > Active > *
policies.
The Active control determines whether the resource is in active use, and if not, has
the ability to delete / cleanup the resource. When running an automated compliance
environment, it's common to end up with a wide range of alarms that are difficult
and time consuming to clear. The Active control brings automated, well-defined
control to this process.
The Active control checks the status of all defined Active policies for the
resource (GCP > Functions > Function > Active > *
),
raises an alarm, and takes the defined enforcement action. Each Active
sub-policy can calculate a status of active, inactive or skipped. Generally,
if the resource appears to be Active for any reason it will be considered Active.
Note the contrast with Approved, where if the resource appears to be Unapproved
for any reason it will be considered Unapproved.
See Active for more information.
tmod:@turbot/gcp-functions#/control/types/functionActive
GCP > Functions > Function > Approved
Take an action when a GCP Functions function is not approved based on GCP > Functions > Function > Approved > *
policies.
The Approved control checks the status of the defined Approved sub-policies for the resource. If the resource is not approved according to any of these policies, this control raises an alarm and takes the defined enforcement action.
For any enforcement actions that specify if new
, e.g., Enforce: Delete unapproved if new
, this control will only take the enforcement actions for resources created within the last 60 minutes.
See Approved for more information.
tmod:@turbot/gcp-functions#/control/types/functionApproved
GCP > Functions > Function > CMDB
Record and synchronize details for the GCP Functions function into the CMDB.
The CMDB control is
responsible for populating and updating all the attributes for that
resource type in the Guardrails CMDB.
Note: If CMDB is set to Skip for a resource, then it will not be added
to the CMDB, and no controls that target it will run.
CMDB controls also use the Regions policy associated with the resource. If
region is not in GCP > Functions > Function > Regions
policy, the CMDB control will delete the
resource from the CMDB.
tmod:@turbot/gcp-functions#/control/types/functionCmdb
GCP > Functions > Function > Discovery
Discover GCP Functions function resources and add them to the CMDB.
The Discovery
control is tasked with identifying instances for a particular resource.
The Discovery control will periodically search for new target resources and
save them to the Guardrails CMDB. Once discovered, resources are then
responsible for tracking changes to themselves through the
CMDB control.
Note that Discovery and CMDB controls also use the Regions policy
associated with the resource. If the region is not in GCP > Functions > Function > Regions
policy, the CMDB
control will delete the resource from the CMDB.
tmod:@turbot/gcp-functions#/control/types/functionDiscovery
GCP > Functions > Function > Policy
tmod:@turbot/gcp-functions#/control/types/functionPolicy
GCP > Functions > Function > Policy > Trusted Access
Take an action when GCP Functions Function policy is not trusted based on theGCP > Functions > Function > Trusted Access > *
policies.
The Trusted Access control evaluates the IAM policy against the list of allowed
members in each of the Trusted Access sub-policies (Trusted Access > Domains,
Trusted Access > Groups, etc)., this control raises an alarm and takes the
defined enforcement action.
If set to "Enforce: Trusted Access > *", access to non-trusted
members will be removed.
tmod:@turbot/gcp-functions#/control/types/functionPolicyTrustedAccess
GCP > Functions > Function > Usage
The Usage control determines whether the number of GCP Functions function resources exceeds the configured usage limit for this region.
You can configure the behavior of this control with the GCP > Functions > Function > Usage
policy, and set the limit with the GCP > Functions > Function > Usage > Limit
policy.
tmod:@turbot/gcp-functions#/control/types/functionUsage