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

  Рет қаралды 10,000

Cloud Advocate

Cloud Advocate

Күн бұрын

Creating service account keys in GCP is one of the biggest security risks often overlooked.
cloud.google.c...
github.com/goo...
----------
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
@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.
@ravinasty
@ravinasty 3 ай бұрын
Thanks for the video. How can we provision the gcp resources using terraform authenticating through wif without using service account keys?
@AleksandraGincheva
@AleksandraGincheva 2 ай бұрын
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.
@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
@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.
@radekjanik2657
@radekjanik2657 2 ай бұрын
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 😢
@eloscar3333
@eloscar3333 10 ай бұрын
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 :(
@saiteju8169
@saiteju8169 Жыл бұрын
Thanks for this video ❤
@jainjayantjjd5719
@jainjayantjjd5719 Жыл бұрын
Sir I am BCA graduate and i am fresher. Can i become a Devops Engineer????
@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
@LorDima666
@LorDima666 Жыл бұрын
1:15 🤣
@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
@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
Don't look down on anyone#devil  #lilith  #funny  #shorts
00:12
Devil Lilith
Рет қаралды 25 МЛН
Spongebob ate Patrick 😱 #meme #spongebob #gmod
00:15
Mr. LoLo
Рет қаралды 21 МЛН
Kluster Duo #настольныеигры #boardgames #игры #games #настолки #настольные_игры
00:47
Двое играют | Наташа и Вова
Рет қаралды 3,7 МЛН
Service Accounts in Google Cloud - IAM in GCP.
18:49
Cloud Advocate
Рет қаралды 53 М.
GitHub Workflow and Workload Identity Federation
7:24
OutOfDevOps
Рет қаралды 6 М.
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
Рет қаралды 21 М.
GitHub OIDC and Google Identity Federation
24:39
OutOfDevOps
Рет қаралды 4,2 М.
Deploy Python Applications From Source - Google Cloud Run
10:54
NeuralNine
Рет қаралды 4,4 М.
Secure access to GKE workloads with Workload Identity
6:34
Google Cloud Tech
Рет қаралды 16 М.
Google Cloud Workforce Identity Federation & Demo
20:54
Sandeep Agarwal
Рет қаралды 1,5 М.
Don't look down on anyone#devil  #lilith  #funny  #shorts
00:12
Devil Lilith
Рет қаралды 25 МЛН