-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: distinct vpc remove legacy resources BREAKING CHANGE
- Loading branch information
1 parent
8902bd0
commit 18cbea0
Showing
4 changed files
with
18 additions
and
68 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,26 +65,6 @@ spec: | |
role: roles/iam.securityAdmin | ||
member: "serviceAccount:[email protected]" # kpt-set: serviceAccount:tier3-sa@${project-id}.iam.gserviceaccount.com | ||
--- | ||
# Grant GCP role Tier3 DNS Record Admin to GCP SA on Client Host Project | ||
apiVersion: iam.cnrm.cloud.google.com/v1beta1 | ||
kind: IAMPolicyMember | ||
metadata: | ||
name: project-id-tier3-sa-tier3-dnsrecord-admin-host-project-id-permissions # kpt-set: ${project-id}-tier3-sa-tier3-dnsrecord-admin-${host-project-id}-permissions | ||
namespace: client-name-projects # kpt-set: ${client-name}-projects | ||
annotations: | ||
cnrm.cloud.google.com/ignore-clusterless: "true" | ||
config.kubernetes.io/depends-on: resourcemanager.cnrm.cloud.google.com/namespaces/client-name-projects/Project/project-id # kpt-set: resourcemanager.cnrm.cloud.google.com/namespaces/${client-name}-projects/Project/${project-id} | ||
labels: | ||
legacy: to-be-removed | ||
spec: | ||
resourceRef: | ||
apiVersion: resourcemanager.cnrm.cloud.google.com/v1beta1 | ||
kind: Project | ||
name: host-project-id # kpt-set: ${host-project-id} | ||
# AC-1, AC-3(7), AC-3, AC-16(2) | ||
role: organizations/org-id/roles/tier3.dnsrecord.admin # kpt-set: organizations/${org-id}/roles/tier3.dnsrecord.admin | ||
member: "serviceAccount:[email protected]" # kpt-set: serviceAccount:tier3-sa@${project-id}.iam.gserviceaccount.com | ||
--- | ||
# Grant GCP role Tier3 DNS Record Admin to GCP SA on Client DNS Project | ||
apiVersion: iam.cnrm.cloud.google.com/v1beta1 | ||
kind: IAMPolicyMember | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,26 +15,6 @@ | |
# GCP Service Account for tier3 | ||
# AC-1 - Implementation of access control | ||
# AC-3(7), AC-3, AC-16(2) - This service account possesses limited privileges(permissions) and is restricted to performing only the necessary operations for resources within the designated namespace. The service account is associated with the namespace and is assigned roles as required. | ||
# Grant GCP role Tier3 Firewall Rule Admin to GCP SA on standard.applications-infrastructure folder | ||
apiVersion: iam.cnrm.cloud.google.com/v1beta1 | ||
kind: IAMPolicyMember | ||
metadata: | ||
name: project-id-tier3-sa-tier3-firewallrule-admin-app-infra-folder-permissions # kpt-set: ${project-id}-tier3-sa-tier3-firewallrule-admin-app-infra-folder-permissions | ||
namespace: client-name-hierarchy # kpt-set: ${client-name}-hierarchy | ||
annotations: | ||
cnrm.cloud.google.com/ignore-clusterless: "true" | ||
config.kubernetes.io/depends-on: resourcemanager.cnrm.cloud.google.com/namespaces/client-name-projects/Project/project-id # kpt-set: resourcemanager.cnrm.cloud.google.com/namespaces/${client-name}-projects/Project/${project-id} | ||
labels: | ||
legacy: to-be-removed | ||
spec: | ||
resourceRef: | ||
apiVersion: resourcemanager.cnrm.cloud.google.com/v1beta1 | ||
kind: Folder | ||
name: standard.applications-infrastructure | ||
# AC-1, AC-3(7), AC-3, AC-16(2) | ||
role: organizations/org-id/roles/tier3.firewallrule.admin # kpt-set: organizations/${org-id}/roles/tier3.firewallrule.admin | ||
member: "serviceAccount:[email protected]" # kpt-set: serviceAccount:tier3-sa@${project-id}.iam.gserviceaccount.com | ||
--- | ||
# Grant GCP role Tier3 Firewall Rule Admin to GCP SA on {network-connectivity-profile}.applications-infrastructure.{classification} folder | ||
apiVersion: iam.cnrm.cloud.google.com/v1beta1 | ||
kind: IAMPolicyMember | ||
|