Search code examples
google-cloud-platformgoogle-cloud-run

GCP Cloud Run 'Executed By'


I'm wondering if it's possible to get the source of the cloud run execution inside the job (or other 'default' variables).

E.g. I see different folks who are triggering this cloud run job but I wonder if I can find out who triggered it in a particular execution.

I don't have enough reputation to post images but here's a link...

I would like this to be automatic - I know that I could ask users to provide an environment override while triggering but would prefer not to do that.


Solution

  • Information on the principal is not made available inside a job.

    Information on the principal (identity) that started a job is stored in the audit logs.

    Cloud Run audit logging