Skip to content
Cloud Governance Tools

Require OS Login

Require OS Login is a Google Cloud guardrail written in organization Policy Service. Enables OS Login on all newly created projects and blocks metadata updates that disable OS Login at the project or instance level. No documented way to test it before enforcement was found on 10 Nov 2026.

More identity and privilege guardrails ยท About Organization Policy Service

constraints/compute.requireOsLogin
This boolean constraint, when enforced, enables OS Login on all newly created Projects. All VM instances created in new projects will have OS Login enabled. On new and existing projects, this constraint prevents metadata updates that disable OS Login at the project or instance level.
By default, the OS Login feature is disabled on Compute Engine projects.
Blocks
Enables OS Login on all newly created projects and blocks metadata updates that disable OS Login at the project or instance level. (legacy managed constraint, boolean.)
Breaks
Google documents that setting OS Login metadata deletes the VM authorized_keys files and VMs no longer accept SSH keys stored in project or instance metadata. (source)
Test before applying
As for every Organization Policy Service guardrail: how to test before enforcing
Mechanism
Organization Policy Service (managed and legacy constraints): Resources in the organization, folder or project where the policy is set and its descendants; Google says application of new policies is usually not retroactive.
Taken from
provider documentation, provider documentation

What the source says

"This boolean constraint, when enforced, enables OS Login on all newly created Projects." (read 10 Nov 2026).

On what it breaks: "When you set OS Login metadata, Compute Engine deletes the VM's authorized_keys files and no longer accepts connections from SSH keys that are stored in project or instance metadata."

Sources

  1. Require OS Login, read 10 Nov 2026
  2. What it breaks, read 10 Nov 2026
  3. How to test it first, read 10 Nov 2026

Last reviewed 16 Nov 2026.