-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7b31138
commit f7b250b
Showing
8 changed files
with
103 additions
and
62 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
tutorials/hardening-your-cluster/policy-metrics-writer.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Copyright 2019 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. | ||
# [START config_connector_hardening_your_cluster_policy_metrics_writer] | ||
apiVersion: iam.cnrm.cloud.google.com/v1alpha1 | ||
kind: IAMPolicyMember | ||
metadata: | ||
name: policy-metrics-writer | ||
spec: | ||
member: serviceAccount:[SA_NAME]@[PROJECT_ID].iam.gserviceaccount.com | ||
role: roles/monitoring.metricWriter | ||
resourceRef: | ||
kind: Project | ||
name: [PROJECT_ID] | ||
# [END config_connector_hardening_your_cluster_policy_metrics_writer] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Copyright 2019 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. | ||
# [START config_connector_hardening_your_cluster_policy_monitoring] | ||
apiVersion: iam.cnrm.cloud.google.com/v1alpha1 | ||
kind: IAMPolicyMember | ||
metadata: | ||
name: policy-monitoring | ||
spec: | ||
member: serviceAccount:[SA_NAME]@[PROJECT_ID].iam.gserviceaccount.com | ||
role: roles/monitoring.viewer | ||
resourceRef: | ||
kind: Project | ||
name: [PROJECT_ID] | ||
# [END config_connector_hardening_your_cluster_policy_monitoring] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
tutorials/hardening-your-cluster/policy-service-account-user.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Copyright 2019 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. | ||
# [START config_connector_hardening_your_cluster_service_account_user] | ||
apiVersion: iam.cnrm.cloud.google.com/v1alpha1 | ||
kind: IAMPolicyMember | ||
metadata: | ||
name: policy-service-account-user | ||
spec: | ||
member: serviceAccount:[SA_NAME]@[PROJECT_ID].iam.gserviceaccount.com | ||
role: roles/iam.serviceAccountUser | ||
resourceRef: | ||
kind: Project | ||
name: [PROJECT_ID] | ||
# [END config_connector_hardening_your_cluster_service_account_user] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters