This document describes how you can use an open source tool to implement just-in-time privileged access to Google Cloud projects. Just-in-time privileged access lets you grant temporary access to projects for a limited set of users only when the access is needed.
https://cloud.google.com/architecture/manage-just-in-time-privileged-access-to-project