@turbot/gcp-pubsub

The gcp-pubsub mod contains resource, control and policy definitions for GCP Pub/Sub service.

Version
5.9.0
Released On
Feb 28, 2024
Depends On

Resource Types

Control Types

Policy Types

Release Notes

5.9.0 (2024-02-28)

Control Types

  • GCP > Pub/Sub > Topic > Labels

Policy Types

  • GCP > Pub/Sub > Topic > Labels
  • GCP > Pub/Sub > Topic > Labels > Template

Action Types

  • GCP > Pub/Sub > Topic > Set Labels

5.8.0 (2024-02-01)

What's new?

  • Resource's metadata will now also include createdBy details in Turbot CMDB.
  • We've updated the runtime of the lambda functions to Node 18. You wouldn't notice any difference and things will continue to work smoothly and consistently as before.

5.7.2 (2023-11-03)

Bug fixes

  • Guardrails stack controls would sometimes fail to update Pub/Sub Topic resources if the Terraform plan in the stack's source policy was updated. This is fixed and the stack controls will now update such resources correctly, as expected. Please note that this fix will only work for workspaces on TE v5.42.0 or higher.

5.7.1 (2023-03-22)

Bug fixes

  • We've updated the runtime of the lambda functions to node 16. You wouldn't notice any difference and things will continue to work smoothly and consistently as before.

5.7.0 (2023-02-07)

What's new?

  • Users can now create their own custom checks against resource attributes in the Approved control using the Approved > Custom policy. These custom checks would be a part of the evaluation of the Approved control. Custom messages can also be added which are then displayed in the control details table. See Custom Checks for more information.

Bug fixes

  • The GCP > Pub/Sub > Topic > CMDB control would go into an error state if Guardrails had insufficient permissions to fetch the IAM policy details. This is fixed and the control will now work as expected.

Policy Types

  • GCP > Pub/Sub > Snapshot > Approved > Custom
  • GCP > Pub/Sub > Subscription > Approved > Custom
  • GCP > Pub/Sub > Topic > Approved > Custom

5.6.0 (2021-08-10)

What's new?

  • We've improved the details tables in the Tags controls to be more helpful, especially when a resource's tags are not set correctly as expected. Previously, to understand why the Tags controls were in an Alarm state, you would need to find and read the control's process logs. This felt like too much work for a simple task, so now these details are visible directly from the control page.

Bug fixes

  • We've made a few improvements in the GraphQL queries for various router actions. You won't notice any difference, but things should run lighter and quicker than before.

5.5.0 (2021-03-03)

What's new?

  • We've improved the state reasons and details tables in various Approved and Active controls to be more helpful, especially when a resource is unapproved or inactive. Previously, to understand why one of these controls is in Alarm state, you would need to find and read the control's process logs. This felt like too much work for a simple task, so now these details are visible directly from the control page.

5.4.3 (2021-01-21)

Bug fixes

  • Controls run faster now when in the tbd and skipped states thanks to the new Guardrails Precheck feature (not to be confused with TSA PreCheck). With Guardrails Precheck, controls avoid running GraphQL input queries when in tbd and skipped, resulting in faster and lighter control runs.

5.4.2 (2020-12-10)

Bug fixes

  • We've updated the GCP > * > Set API Enabled actions to use the latest API calls when checking the state of the service in the GCP project. There's no noticeable difference, but things should run smoother now.

5.4.1 (2020-10-30)

Bug fixes

  • We've updated the Discovery controls for resources to now move to skipped instead of invalid if the service API is disabled in the project and the GCP > {service} > API Enabled policy is checking if the API is disabled. This will reduce the amount of noisy controls that cannot be easily resolved without making changes to the service API.
  • We've made some improvements to our real-time event handling that reduces the risk of creating resources in CMDB with malformed AKAs. There's no noticeable difference, but things should run more reliably now.

5.4.0 (2020-09-16)

What's new?

  • We've made improvements to how Active controls interact with CMDB policies and controls for more reliable active checks. Now, if a resource's CMDB policy is set to Skip, its Active control will move to invalid to prevent the Active control from making a decision based on outdated information. Also, Active controls will now wait until the resource's CMDB control has run at least once to ensure the required data is available.

Policy Types

  • GCP > Pub/Sub > Topic > Approved > Encryption at Rest
  • GCP > Pub/Sub > Topic > Approved > Encryption at Rest > Customer Managed Key

5.3.0 (2020-08-28)

What's new?

  • Discovery controls now have their own control category, CMDB > Discovery, to allow for easier filtering separately from other CMDB controls.

5.2.0 (2020-08-13)

What's new?

  • We now support controlling access for topics to provide automatic protection against unexpected access from projects, domains, groups, users, and service accounts.

    To get started with this new control, please see the GCP > Pub/Sub > Topic > Policy > Trusted Access policy and all of its sub-policies to specify which IAM resources are allowed to access your topics.

Control Types

  • GCP > Pub/Sub > Topic > Policy
  • GCP > Pub/Sub > Topic > Policy > Trusted Access

Policy Types

  • GCP > Pub/Sub > Topic > Policy
  • GCP > Pub/Sub > Topic > Policy > Trusted Access
  • GCP > Pub/Sub > Topic > Policy > Trusted Access > All Authenticated
  • GCP > Pub/Sub > Topic > Policy > Trusted Access > All Users
  • GCP > Pub/Sub > Topic > Policy > Trusted Access > Domains
  • GCP > Pub/Sub > Topic > Policy > Trusted Access > Groups
  • GCP > Pub/Sub > Topic > Policy > Trusted Access > Service Accounts
  • GCP > Pub/Sub > Topic > Policy > Trusted Access > Users

Action Types

  • GCP > Pub/Sub > Topic > Set Trusted Access

5.1.0 (2020-08-13)

What's new?

  • We now support controlling access for subscriptions to provide automatic protection against unexpected access from projects, domains, groups, users, and service accounts.

    To get started with this new control, please see the GCP > Pub/Sub > Subscription > Policy > Trusted Access policy and all of its sub-policies to specify which IAM resources are allowed to access your subscriptions.

Control Types

  • GCP > Pub/Sub > Subscription > Policy
  • GCP > Pub/Sub > Subscription > Policy > Trusted Access

Policy Types

  • GCP > Pub/Sub > Subscription > Policy
  • GCP > Pub/Sub > Subscription > Policy > Trusted Access
  • GCP > Pub/Sub > Subscription > Policy > Trusted Access > All Authenticated
  • GCP > Pub/Sub > Subscription > Policy > Trusted Access > All Users
  • GCP > Pub/Sub > Subscription > Policy > Trusted Access > Domains
  • GCP > Pub/Sub > Subscription > Policy > Trusted Access > Groups
  • GCP > Pub/Sub > Subscription > Policy > Trusted Access > Service Accounts
  • GCP > Pub/Sub > Subscription > Policy > Trusted Access > Users
  • GCP > Pub/Sub > Trusted Domains [Default]
  • GCP > Pub/Sub > Trusted Groups [Default]
  • GCP > Pub/Sub > Trusted Service Accounts [Default]
  • GCP > Pub/Sub > Trusted Users [Default]

Action Types

  • GCP > Pub/Sub > Subscription > Set Trusted Access

5.0.9 (2020-08-10)

Bug fixes

  • We’ve made improvements to our GraphQL input queries for various controls and actions. You won’t notice any differences, but things should run smoother and quicker than before.

5.0.8 (2020-07-27)

Bug fixes

  • In the 5.0.6 version of the mod, a bug was introduced owing to which, we failed to upsert the AKA of the subscriptions whenever they were created. GCP > Turbot > Event Handlers > Pub/Sub stack remained in an error state because of this bug. This issue has now been fixed.

5.0.7 (2020-07-23)

Bug fixes

  • Active controls for all resources were not calling the delete action properly, which meant inactive resources were not being deleted when the policy was set to enforce deletions. This has been fixed and inactive resources will now be cleaned up again.

5.0.6 (2020-07-16)

Bug fixes

  • Whenever the GCP > Turbot > Event Handlers > Pub/Sub stack created topics and subscriptions, it failed to claim them properly, causing the control to remain in error state. This issue has been fixed.

5.0.5 (2020-06-08)

What's new?

  • All resource Router actions now run even if Guardrails is outside of its allowed change window. This allows Guardrails to maintain an up-to-date CMDB by handling resource updates at all times. Note that this only affects Guardrails' ability to process resources changes that were made in the cloud provider - enforcement actions are still disabled outside of the change window.

5.0.4 (2020-05-13)

Bug fixes

  • Several permissions did not have grant levels assigned, so when this service was enabled, the IAM permission model would be unable to calculate the full permission set across all services. The missing grant levels have been added and permission calculations are now running smoothly again.

5.0.3 (2020-05-06)

Bug fixes

  • While importing a GCP project, sometimes resources' Discovery controls would get stuck in an Invalid state due to incorrectly configured dependencies. This has been fixed and project imports should be smooth again.

5.0.2 (2020-04-27)

Bug fixes

  • Removed unused Regions policies for global resources.

Policy Types

Removed

  • GCP > Pub/Sub > Regions
  • GCP > Pub/Sub > Subscription > Regions
  • GCP > Pub/Sub > Topic > Regions

5.0.1 (2020-04-17)

Bug fixes

  • Several resources that have an IAM policy had an incomplete schema, which prevented the iamPolicy attribute from being used in calculated policies. This has been fixed.
  • The Discovery control for the Pub/Sub service was saving invalid data to the CMDB, causing all other resources in this mod to get stuck in an invalid state. They are stuck no more.

5.0.0 (2020-03-26)

Resource Types

  • GCP > Pub/Sub
  • GCP > Pub/Sub > Snapshot
  • GCP > Pub/Sub > Subscription
  • GCP > Pub/Sub > Topic
  • GCP > Pub/Sub > Topic IAM Member

Control Types

  • GCP > Pub/Sub > API Enabled
  • GCP > Pub/Sub > CMDB
  • GCP > Pub/Sub > Discovery
  • GCP > Pub/Sub > Snapshot > Active
  • GCP > Pub/Sub > Snapshot > Approved
  • GCP > Pub/Sub > Snapshot > CMDB
  • GCP > Pub/Sub > Snapshot > Discovery
  • GCP > Pub/Sub > Snapshot > Labels
  • GCP > Pub/Sub > Snapshot > Usage
  • GCP > Pub/Sub > Subscription > Active
  • GCP > Pub/Sub > Subscription > Approved
  • GCP > Pub/Sub > Subscription > CMDB
  • GCP > Pub/Sub > Subscription > Configured
  • GCP > Pub/Sub > Subscription > Discovery
  • GCP > Pub/Sub > Subscription > Labels
  • GCP > Pub/Sub > Subscription > Usage
  • GCP > Pub/Sub > Topic > Active
  • GCP > Pub/Sub > Topic > Approved
  • GCP > Pub/Sub > Topic > CMDB
  • GCP > Pub/Sub > Topic > Configured
  • GCP > Pub/Sub > Topic > Discovery
  • GCP > Pub/Sub > Topic > Usage
  • GCP > Pub/Sub > Topic IAM Member > Configured

Policy Types

  • GCP > Pub/Sub > API Enabled
  • GCP > Pub/Sub > CMDB
  • GCP > Pub/Sub > Enabled
  • GCP > Pub/Sub > Labels Template [Default]
  • GCP > Pub/Sub > Permissions
  • GCP > Pub/Sub > Permissions > Levels
  • GCP > Pub/Sub > Permissions > Levels > Modifiers
  • GCP > Pub/Sub > Regions
  • GCP > Pub/Sub > Snapshot > Active
  • GCP > Pub/Sub > Snapshot > Active > Age
  • GCP > Pub/Sub > Snapshot > Active > Last Modified
  • GCP > Pub/Sub > Snapshot > Approved
  • GCP > Pub/Sub > Snapshot > Approved > Usage
  • GCP > Pub/Sub > Snapshot > CMDB
  • GCP > Pub/Sub > Snapshot > Labels
  • GCP > Pub/Sub > Snapshot > Labels > Template
  • GCP > Pub/Sub > Snapshot > Usage
  • GCP > Pub/Sub > Snapshot > Usage > Limit
  • GCP > Pub/Sub > Subscription > Active
  • GCP > Pub/Sub > Subscription > Active > Age
  • GCP > Pub/Sub > Subscription > Active > Last Modified
  • GCP > Pub/Sub > Subscription > Approved
  • GCP > Pub/Sub > Subscription > Approved > Usage
  • GCP > Pub/Sub > Subscription > CMDB
  • GCP > Pub/Sub > Subscription > Configured
  • GCP > Pub/Sub > Subscription > Configured > Precedence
  • GCP > Pub/Sub > Subscription > Configured > Source
  • GCP > Pub/Sub > Subscription > Labels
  • GCP > Pub/Sub > Subscription > Labels > Template
  • GCP > Pub/Sub > Subscription > Regions
  • GCP > Pub/Sub > Subscription > Usage
  • GCP > Pub/Sub > Subscription > Usage > Limit
  • GCP > Pub/Sub > Topic > Active
  • GCP > Pub/Sub > Topic > Active > Age
  • GCP > Pub/Sub > Topic > Active > Last Modified
  • GCP > Pub/Sub > Topic > Approved
  • GCP > Pub/Sub > Topic > Approved > Usage
  • GCP > Pub/Sub > Topic > CMDB
  • GCP > Pub/Sub > Topic > Configured
  • GCP > Pub/Sub > Topic > Configured > Precedence
  • GCP > Pub/Sub > Topic > Configured > Source
  • GCP > Pub/Sub > Topic > Regions
  • GCP > Pub/Sub > Topic > Usage
  • GCP > Pub/Sub > Topic > Usage > Limit
  • GCP > Pub/Sub > Topic IAM Member > Configured
  • GCP > Pub/Sub > Topic IAM Member > Configured > Precedence
  • GCP > Pub/Sub > Topic IAM Member > Configured > Source
  • GCP > Turbot > Event Handlers > Logging > Sink > Compiled Filter > @turbot/gcp-pubsub
  • GCP > Turbot > Permissions > Compiled > Levels > @turbot/gcp-pubsub
  • GCP > Turbot > Permissions > Compiled > Service Permissions > @turbot/gcp-pubsub

Action Types

  • GCP > Pub/Sub > Set API Enabled
  • GCP > Pub/Sub > Snapshot > Delete
  • GCP > Pub/Sub > Snapshot > Router
  • GCP > Pub/Sub > Snapshot > Set Labels
  • GCP > Pub/Sub > Subscription > Delete
  • GCP > Pub/Sub > Subscription > Router
  • GCP > Pub/Sub > Subscription > Set Labels
  • GCP > Pub/Sub > Topic > Delete
  • GCP > Pub/Sub > Topic > Router