hashicorp / terraform-provider-google

Terraform Provider for Google Cloud Platform
https://registry.terraform.io/providers/hashicorp/google/latest/docs
Mozilla Public License 2.0
2.36k stars 1.75k forks source link

Principal Access Boundary Policy - Promote beta to GA #20380

Open priyankadeo-g opened 3 days ago

priyankadeo-g commented 3 days ago

Community Note

Description

GCP's Identity and Access Management (IAM) offers a new security policy type called Principal Access Boundary policies. Principal access boundary (PAB) policies let you restrict the resources that principals can access. Users can use principal access boundary policies to prevent their principals from accessing resources in other organizations, which can help prevent phishing attacks or data exfiltration. For applying a Principal Access Boundary policy to a resource, after you create a principal access boundary policy, you create a policy binding to apply the policy to a set of principals. Please find detailed documentation here https://cloud.google.com/iam/docs/principal-access-boundary-policies#binding

New or Affected Resource(s)

Potential Terraform Configuration

resource "google_iam_principal_access_boundary_policy" "pab-policy" {
organization = xxx
location = xxx
display_name = xxx
principal_access_boundary_policy_id = xxx
}

resource "google_iam_organizations_policy_binding" "pab_org_binding" {
  location = xxx
  policy_binding_id = xxx
  policy = xxx
  policyKind = xxx
  target = xxx
}

resource "google_iam_folders_policy_binding" "pab_folder-binding" {
  folder         = xxxx
  location       = xxx
  display_name   = xxx
  policy_binding_id = xxx
  policy         =  xxx
}

resource "google_iam_projects_policy_binding" "pab-project-binding" {
  project        = xxx
  location       = xxx
  display_name   = xxx
  policy_binding_id = xxx
}

References

No response