Managing multiple GCP configurations with full isolation

gcloud config configurations works fine if you’re switching between regions or clusters in the same project. It breaks down the moment you’re working across different projects, identities, or service accounts — because application_default_credentials.json is global, not per-configuration. The actual problem Two separate things need authenticating: gcloud CLI commands (via gcloud auth login) and third-party tools like Terraform (via gcloud auth application-default login). The second command writes credentials to ~/.config/gcloud/application_default_credentials.json, and that file is shared across all named configurations. ...

April 26, 2026 · 2 min · 340 words · Petr Vala

Granting access to Gitlab repositories

Disclaimer: This is only relevant for Gitlab Enterprise Edition Objective I have several GitLab Projects (repositories) in several Groups and Subgroups. I have another set of Gitlab Groups and Subgroups which contain Members. Each of the projects can use a CODEOWNERS file to determine who can approve Merge Requests. The goal is to have everyone being able to contribute code everywhere and at the same time have dedicated groups of merge request approvers. ...

November 22, 2022 · 5 min · 913 words · Petr Vala