A financial technology company operates an on-premises data processing engine that must securely ingest daily batch files into a Google Cloud Storage bucket in Project A. To enable access, a developer generated a service account JSON key file and deployed it directly to the on-premises servers. The lead security architect mandates that long-lived credentials must be completely eliminated while ensuring the on-premises application adheres strictly to the principle of least privilege. Which architectural solution should be implemented?
- Set up Workload Identity Federation between the on-premises identity provider and Google Cloud, allowing the application to exchange short-lived tokens to impersonate a service account granted the Storage Object Creator role.Cevap
- BGrant the Service Account Admin role to the service account, and write a custom automation script on the on-premises server to continuously request newly generated service account JSON keys every 24 hours.
- CAssign the primitive Editor role to the project service account and store the exported JSON key file inside a Customer-Supplied Encryption Key (CSEK) encrypted Cloud Storage bucket for local retrieval.
- DConfigure Customer-Supplied Encryption Keys (CSEK) to encrypt the batch files during transit while maintaining the existing static service account JSON key protected inside a VPC Service Controls perimeter.
Cevap
Configure Workload Identity Federation with an on-premises identity provider to exchange short-lived tokens for service account impersonation using the Storage Object Creator role.
Workload Identity Federation enables external on-premises workloads to authenticate to Google Cloud APIs by exchanging external credentials for short-lived OAuth 2.0 access tokens. Granting the Storage Object Creator role satisfies the principle of least privilege by allowing file upload capabilities without full bucket management access.
Adım Adım Çözüm
Anahtar Kavram
Workload Identity Federation for keyless authentication and service account least privilege
Tahmini Süre:1m 30s