Need to understand the usage details for all of my service account and IAM keys and take proactive action in case of any unauthorized access. How do I check the usage logs for service account keys.
Regards,
Hridaya Patel
Hello @hridayapatel ,Welcome on Google Cloud Community.
You can check this activity from Policy Analyzer. But you must specify each key manually, which is odd. AFAIK, ServiceAccount Keys activity logs are stored at cloudaudit.googleapis.com/activity, so from Logs Explorer you should be also able to check it.
[1.] https://cloud.google.com/policy-intelligence/docs/analyze-iam-policies
--
cheers,
DamianS
LinkedIn medium.com Cloudskillsboost