Update default FAST org policies (#2906)

* Update org default org policies

* Update default FAST org policies
This commit is contained in:
Julio Castillo
2025-02-18 16:34:44 +01:00
committed by GitHub
parent 348e4df081
commit 51bd19bc30
11 changed files with 351 additions and 12 deletions

View File

@@ -0,0 +1,36 @@
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
---
# sample subset of useful organization policies, edit to suit requirements
# start of document (---) avoids errors if the file only contains comments
# yaml-language-server: $schema=../../schemas/org-policies.schema.json
compute.disableGuestAttributesAccess:
rules:
- enforce: true
cloudbuild.disableCreateDefaultServiceAccount:
rules:
- enforce: true
cloudbuild.useBuildServiceAccount:
rules:
- enforce: true
cloudbuild.useComputeServiceAccount:
rules:
- enforce: true

View File

@@ -18,6 +18,10 @@
# yaml-language-server: $schema=../../schemas/org-policies.schema.json
compute.disableInternetNetworkEndpointGroup:
rules:
- enforce: true
compute.disableGuestAttributesAccess:
rules:
- enforce: true
@@ -28,7 +32,11 @@ compute.disableNestedVirtualization:
compute.disableSerialPortAccess:
rules:
- enforce: true
- enforce: true
compute.disableVpcExternalIpv6:
rules:
- enforce: true
compute.requireOsLogin:
rules:
@@ -46,8 +54,8 @@ compute.skipDefaultNetworkCreation:
compute.setNewProjectDefaultToZonalDNSOnly:
rules:
- enforce: true
- enforce: true
# only allow GCP images by default
compute.trustedImageProjects:
rules:

View File

@@ -34,6 +34,10 @@ iam.managed.allowedPolicyMembers:
]
}
iam.disableAuditLoggingExemption:
rules:
- enforce: true
iam.managed.preventPrivilegedBasicRolesForDefaultServiceAccounts:
rules:
- enforce: true
@@ -51,3 +55,13 @@ iam.serviceAccountKeyExposureResponse:
- allow:
values:
- DISABLE_KEY
iam.workloadIdentityPoolAwsAccounts:
rules:
- deny:
all: true
iam.workloadIdentityPoolProviders:
rules:
- deny:
all: true

View File

@@ -0,0 +1,36 @@
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
---
# sample subset of useful organization policies, edit to suit requirements
# start of document (---) avoids errors if the file only contains comments
# yaml-language-server: $schema=../../schemas/org-policies.schema.json
compute.disableGuestAttributesAccess:
rules:
- enforce: true
cloudbuild.disableCreateDefaultServiceAccount:
rules:
- enforce: true
cloudbuild.useBuildServiceAccount:
rules:
- enforce: true
cloudbuild.useComputeServiceAccount:
rules:
- enforce: true

View File

@@ -22,13 +22,21 @@ compute.disableGuestAttributesAccess:
rules:
- enforce: true
compute.disableInternetNetworkEndpointGroup:
rules:
- enforce: true
compute.disableNestedVirtualization:
rules:
- enforce: true
compute.disableSerialPortAccess:
rules:
- enforce: true
- enforce: true
compute.disableVpcExternalIpv6:
rules:
- enforce: true
compute.requireOsLogin:
rules:
@@ -46,8 +54,8 @@ compute.skipDefaultNetworkCreation:
compute.setNewProjectDefaultToZonalDNSOnly:
rules:
- enforce: true
- enforce: true
# only allow GCP images by default
compute.trustedImageProjects:
rules:

View File

@@ -38,6 +38,10 @@ iam.automaticIamGrantsForDefaultServiceAccounts:
rules:
- enforce: true
iam.disableAuditLoggingExemption:
rules:
- enforce: true
iam.disableServiceAccountKeyCreation:
rules:
- enforce: true
@@ -51,3 +55,13 @@ iam.serviceAccountKeyExposureResponse:
- allow:
values:
- DISABLE_KEY
iam.workloadIdentityPoolAwsAccounts:
rules:
- deny:
all: true
iam.workloadIdentityPoolProviders:
rules:
- deny:
all: true