Make the trust relationship specific#
On AWS, scope the role's trust to the intended principal and use the connection-specific external ID where the integration requires one. On Google Cloud, Workload Identity Federation lets an external workload exchange its identity for short-lived access. Restrict which workload can use that relationship and which project resources it can read.
Try one expected metadata read and one read outside the test scope. Record the identity and resources involved without recording the token. Temporary credentials limit lifetime. The role's permissions and the data returned by each tool still determine what the reviewer can see. Google Cloud Workload Identity Federation ยท Connect an AWS account