Administrators
Policy keys
11 min read
This page lists every key the machine policy accepts. The same names apply in the registry (GPO) and in policy.yml. To find out where to write them, see GPO and registry and The policy.yml file.
Names. Case, _, -, . and spaces don't matter. CommitTitleMax, commit_title_max and commit-title-max are the same key. In YAML, a nested map works as a prefix: commit: { title_max: 72 } is the same as commit_title_max: 72, and preferences: { hidden: [keys] } is the same as preferences_hidden: [keys].
Accepted synonyms. ProxyServer = proxy; AllowedHosts = allowed_servers; AiCoauthorTrailer = ai_trailer; BranchesProtected = protected_branches.
On and off. Where the key turns something on or off, besides each key's own words, true, 1, yes, on, enabled (on) and false, 0, no, off, disabled (off) always work. In the registry, a REG_DWORD with 1 or 0 also works.
Lists. In YAML, [a, b] or one item per line with -. In the registry, one item per line in a REG_MULTI_SZ, or the items separated by ; or , in a REG_SZ.
Invalid value. It goes under "Ignored values", in Preferences › Policy and team, with the reason. The key moves on to the next source (HKLM → HKCU → policy.yml).
Without the key. Nothing is locked: the team rule applies, if there is one, or the person's preference.
| Key | Type | Values | What it locks |
|---|---|---|---|
proxy | text | system, none or http://host:port | The proxy (Preferences › Network). |
proxy_bypass | list | addresses | The manual proxy's exceptions. |
allowed_servers | list | hosts, host:port, *.domain | The accepted servers: credentials, API and network git commands. |
secrets_scan | on/off | required or off | Secret scanning on commit and push. |
telemetry | text | off | Nothing: it confirms there's no telemetry. |
preferences_hidden | list | page ids | Pages that disappear from Preferences. |
preferences_locked | list | page ids | Read-only pages. |
team_commands | on/off | deny or allow | The .versora.yml commands. |
welcome_wizard | on/off | skip or show | The first-run wizard. |
defaults_folder | text | folder | The default settings folder. |
commit_title_max | number | 10 to 500 | The ceiling for the commit title length. |
commit_conventional | on/off | required | Conventional Commits in every repository. |
commit_types | list | types | The allowed commit types. |
commit_signoff | on/off | required | Signed-off-by in every repository. |
ai_coauthor | text | off, suggested, required | The minimum for the AI co-author trailer. |
ai_trailer | text or list | Key: value | The AI trailer text. |
protected_branches | list | names, with * | Protected branches in every repository. |
oauth_client_ids | list | host=client_id | Each server's OAuth sign-in client id. |
updates | text or list | off, stable, notify | The automatic update. |
Locks the proxy used by the git commands Versora opens, by the calls to GitLab/GitHub and by the automatic update.
| Type | text (REG_SZ) |
| Values | system (also auto, automatic, windows): Automatic (system) mode. none (also direct, off, false): None mode. An http://host:port or https://host:port address: Manual mode. Without the scheme, http:// is added. |
| Effect | The person's choice in Preferences › Network stops applying. The proxy username and password are still each person's, in the Windows vault, and remain editable. |
| On screen | Preferences › Network: at the top, "The proxy is set by your company: …". In the Proxy group, the modes, Proxy (host:port), Exceptions (no proxy) and the Use this proxy button are disabled, with the company's values and the notice "Set by your company: …. These fields stay locked while the policy is active; what you had chosen applies again when it goes away. The proxy username and password are still yours." In Policy and team: Proxy, with the exceptions in parentheses. |
| Error | "invalid proxy: … (use system, none or http://host:port)" |
"Proxy"="http://proxy.empresa.com.br:3128"
proxy: http://proxy.empresa.com.br:3128
The system mode follows the same order as Automatic mode: first git's http.proxy, then the environment variables and, without them, the Windows proxy. See Proxy.
Tip
With proxy, the proxy fields are already locked. To lock the whole Network page (including the proxy username and password, the connection test and the certificates), add network to preferences_locked: the page becomes read-only.
The manual proxy's exceptions: addresses that go direct, without the proxy.
| Type | list |
| Values | The same syntax as the Exceptions (no proxy) field: *.domain, domain, 10.*, 10.0.0.0/8 and <local>. |
| Effect | With a manual proxy, they're its exceptions. With proxy: system, the Windows exceptions apply. Without the proxy key, it locks only the exceptions of the person's manual proxy: the mode and the address are still their choice. |
| On screen | Without the proxy key: in Preferences › Network, the Exceptions (no proxy) field is disabled, with the company's list and the notice "The proxy exceptions are set by your company: …. The mode and the address are still your choice." |
"ProxyBypass"="localhost;*.empresa.com.br;10.*"
proxy_bypass: [localhost, '*.empresa.com.br', '10.*']
Only the servers in the list are accepted. The check happens in the app's backend, at three points the interface has no way to skip:
- credentials: registering or importing a server outside the list is refused;
- GitLab/GitHub API: the call is refused before it goes out;
- git: every command that talks to a server (
fetch,pull,push,clone,ls-remote,remote update,submodule update,lfs fetch/pull/push) is checked before it runs. The address checked is the one git will actually use, withinsteadOfalready applied.
| Type | list |
| Values | gitlab.empresa.com.br (the host, on any port), gitlab.empresa.com.br:8443 (only that port), *.empresa.com.br (only the subdomains). |
| Effect | Local paths and file:// always pass. An address that can't be checked (an ext::… transport, for example) is refused while the list exists. |
| On screen | Preferences › Network: "Your company only allows these servers: …". In the first-run wizard: "Your company allows: …". |
| Errors | "invalid server: …" and "the list is empty" (in the policy). In the operation: "your company's policy doesn't allow the server … (allowed: …)" and "your company's policy only allows known servers, and the address … can't be checked". |
"AllowedServers"="gitlab.empresa.com.br;*.empresa.com.br"
allowed_servers: [gitlab.empresa.com.br, '*.empresa.com.br']
Caution
*.empresa.com.br does not include empresa.com.br. If the server answers on the domain without a subdomain, put both in the list.
What the list doesn't cover: the integrated terminal (it's the user's shell), Jira and Versora's update site. To block updates, use updates.
Locks secret scanning (tokens, keys, .env files) before commit and push.
| Type | on/off |
| Values | required (also on, enforced and the "on" values): always on. off (and the "off" values): locked off. |
| Effect | When on, it applies on commit and push even if the person turned it off, including only in one repository. |
| On screen | Preferences › Checks: "Secret scanning is set by your company: always on, on commit and on push." or "Secret scanning was turned off by your company." In Policy and team: Secret scanning "always on" or "off". |
"SecretsScan"=dword:00000001
secrets_scan: required
See Secrets.
Versora has no telemetry. The key exists so IT can record that in the policy.
| Type | text |
| Values | Only off (or the "off" values). |
| On screen | In Policy and team: Telemetry "off (Versora doesn't collect data)". |
| Error | With on: "Versora has no telemetry; only "off" is accepted". |
"Telemetry"="off"
telemetry: off
Pages that disappear from the Preferences list.
| Type | list of page ids (see the id table below) |
| Effect | The page doesn't appear. A shortcut that tries to open it opens the first visible page. The Policy and team page (policy) never disappears. |
| On screen | In Policy and team: Hidden Preferences pages, with the names. |
"PreferencesHidden"="keys;custom-commands"
preferences:
hidden: [keys, custom-commands]
Pages that appear, but read-only.
| Type | list of page ids |
| Effect | All the page's controls are disabled. The Policy and team page (policy) is never locked. |
| On screen | At the top of the page: "This page is set by your company and is read-only." In Policy and team: Read-only pages. |
"PreferencesLocked"="network;checks"
preferences:
locked: [network, checks]
Caution
The ids must be written exactly as in the table, with the same case and hyphens (custom-commands, ergoOps, inspectPlus.links). Key names are case-insensitive, but page ids are not.
The list also appears in the app, in Preferences › Policy and team › For the administrator.
| Id | Page |
|---|---|
general | General |
profile | Profile |
commit | Commit |
tools | External tools |
accounts | Accounts |
cilint | CI validation |
custom-commands | Custom commands |
deeplink | Command line and links |
encoding | Encodings |
ergoOps | Operations |
ergo-view | Navigation and appearance |
flows | Workflow |
graph-view | Graph |
checks | Checks |
hygiene | Branch hygiene |
identities | Identities |
inspectPlus.links | Links in messages |
issues | Issues |
keymap | Keyboard shortcuts |
keys | SSH and GPG keys |
network | Network |
notifications | Notifications |
policy | Policy and team (can't be hidden or locked) |
pushrules | Push rules |
release | Versions and commits |
stack | Stacks |
terminal | Terminal |
timeline | Local history |
updates | Updates |
worksafe | Commit message |
worktrees | Worktrees |
windows | Windows integration |
about | About and diagnostics |
Turns on or off the team commands, the ones in the commands: of .versora.yml. Each person's personal commands (Preferences › Custom commands) aren't affected.
| Type | on/off |
| Values | deny (also denied, block and the "off" values): turned off. allow (also allowed and the "on" values): allowed. |
| On screen | In Policy and team: Team commands "allowed" or "turned off", and in the repository's list: "Team commands were turned off by your company's policy." |
| In the operation | "team commands were turned off by your company's policy" |
"TeamCommands"="deny"
team_commands: deny
Shows or doesn't show the first-run wizard. It only appears for those who are just starting: with no Versora data and no registered servers.
| Type | on/off |
| Values | skip or hide (and the "off" values): doesn't appear. show (and the "on" values): appears on first run. |
| On screen | In Policy and team: First-run wizard "shown on first run" or "not shown". The person can still open it from the palette or with the Open the first-run wizard button. |
"WelcomeWizard"="skip"
welcome_wizard: skip
The folder with the first-run default settings, in place of %ProgramData%\MCK2\Versora\default. See Default settings.
| Type | text (REG_SZ or REG_EXPAND_SZ) |
| Values | A local or network folder, with settings.json inside. %NAME% variables are expanded. |
| On screen | In Policy and team: Default settings folder. |
"DefaultsFolder"="\\\\servidor\\versora\\default"
defaults_folder: '\\servidor\versora\default'
These keys define a floor for the message rules. Each repository's .versora.yml can tighten them, never loosen them. A message outside the rules isn't committed. Messages git writes itself (merge, revert, fixup!…) pass without being checked.
The maximum length of the message's first line.
| Type | whole number (REG_DWORD) |
| Values | From 10 to 500. |
| Combination | The smaller of the machine's and the team's applies. The summary counter in the commit box also starts using that limit when it's smaller than the person's. |
| On screen | Preferences › Commit: "In this repository, the commit title has at most … characters (…)." |
| Error | "use a whole number from 10 to 500" |
| In commit | "The title has … characters; the maximum is …." |
"CommitTitleMax"=dword:00000048
commit:
title_max: 72
Requires Conventional Commits (type(scope): description) in every repository.
| Type | on/off |
| Values | required (and the "on" values). Off only means "not required by the machine": the team can still require it. |
| On screen | Preferences › Versions and commits: "In this repository, Conventional Commits is required (…)." |
| In commit | "The title doesn't follow Conventional Commits (type(scope): description)." |
"CommitConventional"="required"
commit:
conventional: required
The accepted commit types (feat, fix, docs…).
| Type | list |
| Combination | Only the types both the machine and the team accept. If none are left, the page warns: "none of the team's types is allowed by the company: no conventional message will pass". |
| When it's checked | Whenever the title has the form of the convention, even without commit_conventional. |
| In commit | "The type … isn't one of the allowed ones: …." |
"CommitTypes"="feat;fix;docs;refactor;test;chore"
commit:
types: [feat, fix, docs, refactor, test, chore]
Requires the Signed-off-by trailer in every repository. Versora adds the line on its own when committing, with the name and email of whoever commits.
| Type | on/off |
| Values | required (and the "on" values). |
| On screen | In the commit box: "Signed-off-by will be added (…)." |
| Error on commit | With no git identity: "No git identity (user.name and user.email): Signed-off-by can't be written." |
"CommitSignoff"=dword:00000001
commit:
signoff: required
The minimum for the co-author trailer for code written with AI help. The app has no way to detect that code; it asks.
| Type | text |
| Values | off (also false, no, 0, disabled, desligado); suggested (also suggest, optional, sugerido): the commit box shows "Has code written with AI help"; required (also true, yes, 1, mandatory, obrigatorio): the person has to answer Yes or No before the commit. |
| Combination | The strictest mode of the machine's and the team's applies. |
| Error | "unrecognized value; use one of: off, suggested, required" |
"AiCoauthor"="suggested"
ai_coauthor: suggested
The trailer text that goes in when the person says there's AI-written code. With a list, the person chooses which one; the first is the default.
| Type | text or list |
| Values | Lines in the Key: value format, for example Co-authored-by: AI Assistant <[email protected]>. |
| Combination | The machine's text beats the team's. With none, Co-authored-by: AI Assistant <[email protected]> applies. It only has an effect with ai_coauthor on in the machine or in the team. |
| Error | "invalid trailer: … (use "Key: value", e.g. Co-authored-by: Name <email>)" |
"AiTrailer"="Co-authored-by: AI Assistant <[email protected]>"
ai_trailer: 'Co-authored-by: AI Assistant <[email protected]>'
Protected branches in every repository, added to the ones in .versora.yml and the ones the person marked.
| Type | list |
| Values | Exact names (main) or with *, which matches any sequence, including / (release/* matches release/1.4 and release/2026/q4). |
| Effect | The protected branch check on commit and push applies even if the person turned it off. The mode (ask for confirmation or refuse) comes from .versora.yml's protected_mode; without it, direct commit and push ask for confirmation. |
| On screen | Preferences › Checks: "Protected branches (set by your company): …". In the protected branch dialog: "Protected by your company's policy: …". |
"ProtectedBranches"="main;release/*"
protected_branches: [main, 'release/*']
The client id of each server's OAuth application, used in the "Sign in with GitLab" and "Sign in with GitHub" sign-in. With it, nobody needs to type the client id. See how to register the application in Deployment.
| Type | list of host=client_id pairs |
| Values | The host without a wildcard and the client id (GitLab's "Application ID" or GitHub's "Client ID"), up to 200 characters: letters, digits, ., _, - and ~. If the same host appears twice, the last one applies. |
| Effect | In OAuth sign-in, the client id field comes filled in and locked: "Set by your organization's policy." The policy's client id beats the one the person saved. |
| Error | "… isn't a valid host=client_id pair." |
"OAuthClientIds"="gitlab.empresa.com.br=abc123def456"
oauth_client_ids: ['gitlab.empresa.com.br=abc123def456']
The client id isn't a secret: Versora uses PKCE and doesn't need the client secret.
Decides how the automatic update works on this machine.
| Type | text or list |
| Values | off (also false, 0, no, disabled, never, none): Versora doesn't look for new versions. stable (also stableonly, estavel): only versions from the Stable channel. notify (also notifyonly, avisar): Versora tells you about the new version, and the person downloads it whenever they want. stable and notify combine ([stable, notify] or stable;notify). off doesn't combine with anything. |
| On screen | Preferences › Updates: Set by your company, with "Automatic updates are off: Versora doesn't look for new versions.", "Only the Stable channel." or "Versora tells you about the new version but downloads it only when you ask." |
| Errors | "Value "…" not recognized. Use one of: off, stable, notify." and ""off" turns updates off and can't be combined with other values." |
"Updates"="stable;notify"
updates: [stable, notify]
The allowed_servers list doesn't apply to the update site. See Automatic update.
- Company policy
- GPO and registry: the complete
.reg. - The policy.yml file: the complete
policy.yml. - Team rules (.versora.yml)