I create a node-pool under a GKE cluster while using a custom service account. When I created this service account, I did not associate it with any roles.
the Resource (node-pool) itself was created with scope required for logging. but, the service account used does not have policy to log and it still is able to generate logs!
my understanding was that in order for a resource to have enough permissions, it should stratify both:
- have required scope (or cloud_platform scope)
- have service account with required policy.
can someone throw some light on? am I missing something? I am fairly new to GCP.