Access Google Cloud from GitHub Action Sans Keys - Workload Identity Federation

  Рет қаралды 9,081

Cloud Advocate

Cloud Advocate

Жыл бұрын

Creating service account keys in GCP is one of the biggest security risks often overlooked.
- cloud.google.com/blog/product...
- github.com/google-github-acti...
----------
PLEASE SUBSCRIBE ➡️bit.ly/36x6qQy ❤️
If you like my work consider buying me ☕bit.ly/3lumyqx
----------
PLAYLISTS:
- Associate Cloud Engineer Study Guide: bit.ly/37y1dYl
- Google Cloud Playlist: bit.ly/37uMZal
----------
- Questions? Thoughts? Disagreements? Tell us here in the comments.
----------
LET'S CONNECT:
👍 Facebook: / multicloudguy
📸 Instagram - / multicloudguy
🐦 Twitter - / multicloudguy

Пікірлер: 27
@ramsankarpandian9546
@ramsankarpandian9546 Жыл бұрын
Hi, I have gone through your videos on using Workflow identity federation to connect to GCP. They are very much helpful in understanding the feature and get to know how it is working. Can I use wfi for copying files from Linux server to GCS buckets? Could you please tell me in that case how this wfi pool has to be configured? Any help in this regard would be much appreciated.
@nightfury5124
@nightfury5124 Жыл бұрын
Thanks for the video😁👍. Can you tell how these attributes (timestamp- 3:34) work? And are these safe to use cuz I read somewhere in the document that if another repo has the same value or something it can allow that repo access too. Thanks in advance.
@saiteju8169
@saiteju8169 Жыл бұрын
Thanks for this video ❤
@ravinasty
@ravinasty Ай бұрын
Thanks for the video. How can we provision the gcp resources using terraform authenticating through wif without using service account keys?
@marcelomg1985
@marcelomg1985 Жыл бұрын
Hi, excellent video. My question is how can we set up this with Terraform? There is a way? Thanks for the content
@CloudAdvocate
@CloudAdvocate Жыл бұрын
Yes after the auth block you can use terraform action. You don’t have to use any keys
@eloscar3333
@eloscar3333 7 ай бұрын
my friends, thanks for your video but my output in github actions is: Error: Permission 'iam.serviceAccounts.getAccessToken' denied on resource (or it may not exist). and see when I follow your tutorial in the 4:24 minute , generate in your case principalSet, in my case principal :(
@yashvats7815
@yashvats7815 Жыл бұрын
Thanks gk for this great video Can we use this same flow for azure devops pipelines?
@CloudAdvocate
@CloudAdvocate Жыл бұрын
Yes, I believe
@yashvats7815
@yashvats7815 Жыл бұрын
@@CloudAdvocate one more question GK can we use this WIF in azure cloud
@CloudAdvocate
@CloudAdvocate Жыл бұрын
Shoud work. Pls try and let me know :D
@ShauryaShresht
@ShauryaShresht Жыл бұрын
1. Firewall Policy vs Firewall Rule (Where to use which one and why) 2. Create Firewall Policy and Implement it for Hybrid use case (Typically customer has dev and prod projects, hence a implement it considering both project) 3. Rules, Policy and Association (Understand use case in detail) 4. Automation of this using terraform (Hierarchical Firewall Policy Automation with Terraform | Google Cloud Blog) can you make a documentation on these ? Need help in understanding clearly kindly look into it, if you can answer all of them.
@jainjayantjjd5719
@jainjayantjjd5719 Жыл бұрын
Sir I am BCA graduate and i am fresher. Can i become a Devops Engineer????
@radekjanik2657
@radekjanik2657 14 күн бұрын
Why are the mappings the way they are? Why are these three necessary? What about other fields? What do they mean? You’re not explaining that 😢
@AleksandraGincheva
@AleksandraGincheva 6 күн бұрын
It would have been also very useful to explain a bit more about what the attribute mapping is and how does it work. Putting the values in there without any explanation what does what, does not really help the understand the whole picture.
@ramsharan4229
@ramsharan4229 Жыл бұрын
@CloudAdvocate what is the value of 'my-secret' in the yml file last line? I added this key in the github settings key-value but not sure about its value. Please help... @SnehaU-uj8rt
@LorDima666
@LorDima666 Жыл бұрын
1:15 🤣
@SnehaU-uj8rt
@SnehaU-uj8rt Жыл бұрын
Hi, Thanks for the video. It was really useful. I did the exact same thing as mentioned in the video but I faced the following error in the github actions. Can you help me resolve this issue? Why is this happening? (gcloud.secrets.versions.access) There was a problem refreshing your current auth tokens: ('Unable to acquire impersonated credentials', '{ "error": { "code": 403, "message": "Permission \'iam.serviceAccounts.getAccessToken\' denied on resource (or it may not exist).", "status": "PERMISSION_DENIED", "details": [ { "@type": "type.googleapis.com/google.rpc.ErrorInfo", "reason": "IAM_PERMISSION_DENIED", "domain": "iam.googleapis.com", "metadata": { "permission": "iam.serviceAccounts.getAccessToken" } } ] } } ') Please run: $ gcloud auth login to obtain new credentials. If you have already logged in with a different account: $ gcloud config set account ACCOUNT to select an already authenticated account to use. Error: Process completed with exit code 1.
@marcelomg1985
@marcelomg1985 Жыл бұрын
yeah, the same problem, I guess, the service account needs Service Account Token Creator role
@CloudAdvocate
@CloudAdvocate Жыл бұрын
That’s correct. Pls try that
@SnehaU-uj8rt
@SnehaU-uj8rt Жыл бұрын
@marcelomg1986 @CloudAdvocate i tried adding the service account token creator role. It wasn't working.
@CloudAdvocate
@CloudAdvocate Жыл бұрын
@@SnehaU-uj8rt oh, what command is throwing you this error?
@marcelomg1985
@marcelomg1985 Жыл бұрын
@@SnehaU-uj8rt try to follow, documentation, set up the commands in the gcp console. It helps me a lot.
AWS to GCP sans service account keys!! - Workload Identity Federation
14:56
One moment can change your life ✨🔄
00:32
A4
Рет қаралды 33 МЛН
ПРОВЕРИЛ АРБУЗЫ #shorts
00:34
Паша Осадчий
Рет қаралды 6 МЛН
HAPPY BIRTHDAY @mozabrick 🎉 #cat #funny
00:36
SOFIADELMONSTRO
Рет қаралды 17 МЛН
Google Cloud Secret Manager | Professional Architect Exam Essentials
15:20
How GitHub Actions 10x my productivity
8:18
Beyond Fireship
Рет қаралды 399 М.
How to use Github Actions with Google's Workload Identity Federation
11:33
Workload Identity in GKE to fetch data from Google Cloud Storage.
9:39
Service Account Impersonation in Google Cloud - IAM in GCP
11:27
Cloud Advocate
Рет қаралды 20 М.
How to deploy Cloud Run services with GitHub Actions
10:57
Google Cloud Tech
Рет қаралды 20 М.
Копия iPhone с WildBerries
1:00
Wylsacom
Рет қаралды 4,7 МЛН
Rate This Smartphone Cooler Set-up ⭐
0:10
Shakeuptech
Рет қаралды 2,1 МЛН
iPhone 15 Pro в реальной жизни
24:07
HUDAKOV
Рет қаралды 432 М.
تجربة أغرب توصيلة شحن ضد القطع تماما
0:56
صدام العزي
Рет қаралды 59 МЛН
Худшие кожаные чехлы для iPhone
1:00
Rozetked
Рет қаралды 1,4 МЛН