Table of Contents
https://github.com/GoogleCloudPlatform/cloud-foundation-fabric/tree/master
AKS networking
GCP new stuff
Google, from Agentic AI to Google Unified Security, over Cloud Run and BigQuery, as well as Post Quantum Cryptography.
Gcp networking
🌐 𝙊𝙥𝙩𝙞𝙢𝙞𝙯𝙞𝙣𝙜 𝙃𝙮𝙗𝙧𝙞𝙙 𝘿𝙉𝙎 𝙧𝙚𝙨𝙤𝙡𝙪𝙩𝙞𝙤𝙣 𝙬𝙞𝙩𝙝 𝙂𝙤𝙤𝙜𝙡𝙚 𝘾𝙡𝙤𝙪𝙙 𝘼𝙧𝙘𝙝𝙞𝙩𝙚𝙘𝙩𝙪𝙧𝙚 🌐
#did_you_know_that For DNS resolution between Google Cloud and on-premises environments, Google recommends that you use a hybrid approach with two authoritative DNS systems.
📐 𝘾𝙚𝙣𝙩𝙧𝙖𝙡𝙞𝙯𝙚𝙙 𝘿𝙉𝙎 𝙃𝙪𝙗: 𝘼 𝙎𝙮𝙣𝙘𝙝𝙧𝙤𝙣𝙞𝙯𝙚𝙙 𝙉𝙚𝙩𝙬𝙤𝙧𝙠 𝘽𝙧𝙞𝙙𝙜𝙚 - 🔄 𝘿𝙉𝙎 𝙁𝙤𝙧𝙬𝙖𝙧𝙙𝙞𝙣𝙜: Enables seamless DNS queries between Google Cloud and on-premises through a harmonized setup. - 🌐 𝙎𝙝𝙖𝙧𝙚𝙙 𝙑𝙋𝘾 𝙄𝙣𝙩𝙚𝙜𝙧𝙖𝙩𝙞𝙤𝙣: Leverages the DNS hub within Shared VPC networks to centralize DNS operations.
🔐 𝙃𝙞𝙚𝙧𝙖𝙧𝙘𝙝𝙞𝙘𝙖𝙡 𝙁𝙞𝙧𝙚𝙬𝙖𝙡𝙡 𝙎𝙩𝙧𝙖𝙩𝙚𝙜𝙮: 𝘼𝙙𝙫𝙖𝙣𝙘𝙚𝙙 𝙎𝙚𝙘𝙪𝙧𝙞𝙩𝙮 𝙊𝙫𝙚𝙧𝙨𝙞𝙜𝙝𝙩 - 🛡️ 𝙊𝙧𝙜𝙖𝙣𝙞𝙯𝙖𝙩𝙞𝙤𝙣-𝙇𝙚𝙫𝙚𝙡 𝙍𝙪𝙡𝙚𝙨: Deploys organization-wide firewall rules for consistent and comprehensive security coverage. - 🔒 𝙑𝙋𝘾-𝙎𝙥𝙚𝙘𝙞𝙛𝙞𝙘 𝙋𝙤𝙡𝙞𝙘𝙞𝙚𝙨: Tailors firewall policies to each VPC network, addressing unique security needs.
🛑 𝙍𝙪𝙡𝙚 𝙀𝙣𝙛𝙤𝙧𝙘𝙚𝙢𝙚𝙣𝙩: 𝙏𝙖𝙧𝙜𝙚𝙩𝙚𝙙 𝙏𝙧𝙖𝙛𝙛𝙞𝙘 𝘾𝙤𝙣𝙩𝙧𝙤𝙡 - 🚫 𝙊𝙪𝙩𝙗𝙤𝙪𝙣𝙙 𝙏𝙧𝙖𝙛𝙛𝙞𝙘 𝙍𝙚𝙨𝙩𝙧𝙞𝙘𝙩𝙞𝙤𝙣𝙨: Enforces strict rules to deny non-compliant outbound traffic. - ✅ 𝙄𝙣𝙩𝙚𝙧-𝙑𝙋𝘾 𝘼𝙡𝙡𝙤𝙬𝙡𝙞𝙨𝙩𝙞𝙣𝙜: Permits necessary communications within the hybrid network infrastructure.
🏷️ 𝙏𝙖𝙜-𝘽𝙖𝙨𝙚𝙙 𝙁𝙞𝙧𝙚𝙬𝙖𝙡𝙡 𝙈𝙖𝙣𝙖𝙜𝙚𝙢𝙚𝙣𝙩: _𝙍𝙚𝙛𝙞𝙣𝙚𝙙 𝘼𝙘𝙘𝙚𝙨𝙨 𝘾𝙤𝙣𝙩𝙧𝙤𝙡𝙨_** - 🏷️ 𝙄𝘼𝙈-𝘾𝙤𝙣𝙩𝙧𝙤𝙡𝙡𝙚𝙙 𝙏𝙖𝙜𝙨: Integrates IAM features for precise control over firewall rule application. - 🛂 𝙉𝙚𝙩𝙬𝙤𝙧𝙠 𝙍𝙪𝙡𝙚 𝘾𝙪𝙨𝙩𝙤𝙢𝙞𝙯𝙖𝙩𝙞𝙤𝙣: Enables customized rules for intra-VPC communication and security compliance.
Storage test
GCP ssmples
Learn GCP
https://m.youtube.com/playlist?list=PLGDl-0H_IoH2MjEs9YOiRR5ahllXpYqFt&si=cRpe-3jcvLuwXKP5
https://m.youtube.com/playlist?list=PLGDl-0H_IoH13Cjln6TLSVhVW9fPFjhJh&si=PqJsbriW8adczLNr
https://m.youtube.com/playlist?list=PLGDl-0H_IoH0mWNg190ekfyia4LBtq55F&si=plyvo1Q-bD2iGYJD
VPC SC Automation
connecting with curl sing gcloud authentication
curl –header “Authorization: Bearer $(gcloud auth application-default print-access-token)” \
"https://api.example.com/endpoint"
Openwrt in GCP
Windows public GS GCE drivers
gs://gce-windows-drivers-public/
Cheat sheet
GCP python
VPC SC in 2 minutes
What is VPC SC
https://medium.com/google-cloud/gcp-vpc-sc-with-shared-vpc-network-526f85377cdd#:~:text=What%20is%20VPC%2DSC%20(VPC,words%20it%20disables%20data%20exfiltration.
Project
google modules
output
Aleks modules
BGP
IP ranges
Firewall AWS vs GCP
private-service-connect-to-connect
GCP VPN
terraform gcp cloud
DDoS
GCP peering projects
Cloud RUN VPC connector examples
services
Kubernetes
Netflix on GCP
Sentinel
https://learn.hashicorp.com/tutorials/terraform/sentinel-install?in=terraform/policy
https://medium.com/hashicorp-engineering/using-new-sentinel-features-in-terraform-cloud-c1ade728cbb
Headline
training
regions zones
list image types
gcloud compute images list
cheat sheet
https://cloud.google.com/sdk/docs/images/gcloud-cheat-sheet.pdf
gcloud cheat-sheet
- some gcloud cmds
gcloud compute images list gcloud compute disks list gcloud compute instances list gcloud compute zones list gcloud compute accelerator-types list gcloud compute addresses list gcloud compute backend-buckets list gcloud compute backend-services list gcloud compute commitments list gcloud compute disk-types list
gcloud list disks
gcloud compute disks list
VPC & VPC firewall rules
GCP setup with terraform
GCP VPC service controls
https://youtu.be/rGCU6Ajo0QE?t=862
Design
https://cloud.google.com/architecture/best-practices-vpc-design
VPC networks explained
You can think of a VPC as a virtual version of your traditional physical network. VPCs are global, spanning all regions. The instances within the VPC have internal IP addresses and can communicate privately with each other across the globe. This logical representation of your network infrastructure abstracts much of the complexities of dealing with on-premises architectures.
Auto mode networks create one subnet in each GCP region automatically when you create the network. As new regions become available, new subnets in those regions are automatically added to the auto mode network. IP ranges for the automatically created subnets come from a predetermined set of ranges. On the other hand, Custom mode networks start with no subnets, giving you full control over subnet creation and IP addressing.
If you create multiple auto mode VPC networks in your project, each VPC network will be spread across all the available zones and regions, and instances in each VPC network will communicate between each other, but both VPC networks will not communicate unless you configure a link between them ( VPC peering, Cloud VPN tunnel )
If you have two auto mode networks, both will use the same network IP ranges configured in the same regions, so if you create an instance in each VPC in the same region you will have two instances with the same internal IP address. But bear in mind that those instances could also have external IP addresses configured, so they could be able to communicate through their public IP addresses as long as the VPC firewall of the destination instance allows the ingress traffic.
If two VPC networks use the same IP address ranges, that is to say that they have overlapping IP ranges , you cannot link them because the routing will not be feasible between both VPC networks.
Note that you can configure an instance to have multiple network interfaces, each in different VPC networks, thus enabling the instance to communicate with both different worlds.
There are plenty of reasons why you could need multiple VPC networks in one project, especially because they are both segregated and not able to communicate between each other. If you want to interconnect VPC networks (being in the same project or not) you can use custom mode VPC networks and link them via VPC peering or VPN tunnels as long as their IP ranges do not match.
You will find extensive information on GCP public doc on VPC networking at this link.
https://cloud.google.com/vpc/docs/vpc
Storage API not protected from Service Controls
VPC SC
how to list google services which support vpc service controls / /usr/local/bin/list-vpc-sc-supported-services
https://binx.io/blog/2021/12/22/how-to-list-google-services-which-support-vpc-service-controls/
- Service violations
- terraform implementation sample
Storage
to make storage public need to grant access to allusers, for authenticated allauthenticatedusers
- Mount storage
https://medium.com/@antrixsh/how-to-mount-cloud-storage-bucket-with-gcp-compute-engine-ba7c95ad5349
DNS godaddy
https://www.siteyaar.com/setting-up-google-cloud-dns-for-your-godaddy-domain/
ns-cloud-d1.googledomains.com ns-cloud-d2.googledomains.com ns-cloud-d3.googledomains.com ns-cloud-d4.googledomains.com
ns-cloud-a1.googledomains.com cloud-dns-hostmaster.google.com
gcp home directory install
vpc pricing
Serverless
restricted APIs
Apigee API ApigeeConnect API BigQuery API BigQuery Data Transfer Service API Binary Authorization API Certificate Authority Service API Connect Gateway API Assured Workloads API Google Bigtable API Cloud Build API Google Cloud Asset API Google Cloud Data Catalog API Google Cloud Dataflow API Google Cloud Dataproc API Google Cloud Data Loss Prevention (DLP) API Cloud Dialogflow API Cloud Document AI Cloud Functions API Cloud Game Services API Cloud Healthcare API Cloud Life Sciences API Cloud Key Management Service (KMS) API Google Cloud Natural Language API Stackdriver Logging API Cloud Memorystore Memcache API Google Cloud OS Config API Google Cloud OS Login API Google Cloud Recommender API Google Cloud Resource Manager API Cloud Run API Google Cloud Pub/Sub API Cloud Pub/Sub Lite API Google Cloud Search API Secret Manager API Security Token Service API Google Cloud Spanner API Cloud SQL API Google Cloud Storage API Storage Transfer API Cloud Trace API Cloud Translation API Cloud Text-to-Speech API Cloud Speech-to-Text API Cloud Network Security API Cloud Network Services API Cloud Profiler API Google Cloud Vision API Google Compute Engine API Contact Center AI Insights Google Kubernetes Engine API Google Container Analysis API Google Container Registry API Cloud Service Mesh Certificate Authority API GKE Connect API GKE Hub API Cloud Monitoring API Cloud Composer API Cloud TPU API Cloud Memorystore Redis API Cloud AutoML API AI Platform Training & Prediction API AI Platform Notebooks API Cloud Data Fusion API Config Monitoring for Ops API Cloud VideoIntelligence API Managed Service for Microsoft Active Directory API Access Approval API Artifact Registry API Service Control API Service Directory API Serverless VPC Access API Dataproc Metastore API Identity-Aware Proxy TCP API Vertex AI API Network Management API Transcoder API Cloud IAM API reCAPTCHA Enterprise API Ads Data Hub API Cloud Network Connectivity API Cloud DNS API Traffic Director API Cloud Filestore API Container Threat Detection API Eventarc API Speaker ID Firebase Security Rules KMS Inventory API
- with IDs
apigee.googleapis.com apigeeconnect.googleapis.com bigquery.googleapis.com bigquerydatatransfer.googleapis.com binaryauthorization.googleapis.com privateca.googleapis.com connectgateway.googleapis.com assuredworkloads.googleapis.com bigtable.googleapis.com cloudbuild.googleapis.com cloudasset.googleapis.com datacatalog.googleapis.com dataflow.googleapis.com dataproc.googleapis.com dlp.googleapis.com dialogflow.googleapis.com documentai.googleapis.com cloudfunctions.googleapis.com gameservices.googleapis.com healthcare.googleapis.com lifesciences.googleapis.com cloudkms.googleapis.com language.googleapis.com logging.googleapis.com memcache.googleapis.com osconfig.googleapis.com oslogin.googleapis.com recommender.googleapis.com cloudresourcemanager.googleapis.com run.googleapis.com pubsub.googleapis.com pubsublite.googleapis.com cloudsearch.googleapis.com secretmanager.googleapis.com sts.googleapis.com spanner.googleapis.com sqladmin.googleapis.com storage.googleapis.com storagetransfer.googleapis.com cloudtrace.googleapis.com translate.googleapis.com texttospeech.googleapis.com speech.googleapis.com networksecurity.googleapis.com networkservices.googleapis.com cloudprofiler.googleapis.com vision.googleapis.com compute.googleapis.com contactcenterinsights.googleapis.com container.googleapis.com containeranalysis.googleapis.com containerregistry.googleapis.com meshca.googleapis.com gkeconnect.googleapis.com gkehub.googleapis.com monitoring.googleapis.com composer.googleapis.com tpu.googleapis.com redis.googleapis.com automl.googleapis.com ml.googleapis.com notebooks.googleapis.com datafusion.googleapis.com opsconfigmonitoring.googleapis.com videointelligence.googleapis.com managedidentities.googleapis.com accessapproval.googleapis.com artifactregistry.googleapis.com servicecontrol.googleapis.com servicedirectory.googleapis.com vpcaccess.googleapis.com metastore.googleapis.com iaptunnel.googleapis.com aiplatform.googleapis.com networkmanagement.googleapis.com transcoder.googleapis.com iam.googleapis.com recaptchaenterprise.googleapis.com adsdatahub.googleapis.com networkconnectivity.googleapis.com dns.googleapis.com trafficdirector.googleapis.com file.googleapis.com containerthreatdetection.googleapis.com eventarc.googleapis.com speakerid.googleapis.com firebaserules.googleapis.com kmsinventory.googleapis.com
