Skip to content
Versora

Manual

Administrators

Policy keys

11 min read

On this page

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.

General rules

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.

KeyTypeValuesWhat it locks
proxytextsystem, none or http://host:portThe proxy (Preferences › Network).
proxy_bypasslistaddressesThe manual proxy's exceptions.
allowed_serverslisthosts, host:port, *.domainThe accepted servers: credentials, API and network git commands.
secrets_scanon/offrequired or offSecret scanning on commit and push.
telemetrytextoffNothing: it confirms there's no telemetry.
preferences_hiddenlistpage idsPages that disappear from Preferences.
preferences_lockedlistpage idsRead-only pages.
team_commandson/offdeny or allowThe .versora.yml commands.
welcome_wizardon/offskip or showThe first-run wizard.
defaults_foldertextfolderThe default settings folder.
commit_title_maxnumber10 to 500The ceiling for the commit title length.
commit_conventionalon/offrequiredConventional Commits in every repository.
commit_typeslisttypesThe allowed commit types.
commit_signoffon/offrequiredSigned-off-by in every repository.
ai_coauthortextoff, suggested, requiredThe minimum for the AI co-author trailer.
ai_trailertext or listKey: valueThe AI trailer text.
protected_brancheslistnames, with *Protected branches in every repository.
oauth_client_idslisthost=client_idEach server's OAuth sign-in client id.
updatestext or listoff, stable, notifyThe automatic update.

Locks the proxy used by the git commands Versora opens, by the calls to GitLab/GitHub and by the automatic update.

Typetext (REG_SZ)
Valuessystem (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.
EffectThe 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 screenPreferences › 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)"
Registry (.reg)
"Proxy"="http://proxy.empresa.com.br:3128"
YAML
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.

proxy_bypass

The manual proxy's exceptions: addresses that go direct, without the proxy.

Typelist
ValuesThe same syntax as the Exceptions (no proxy) field: *.domain, domain, 10.*, 10.0.0.0/8 and <local>.
EffectWith 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 screenWithout 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."
Registry (.reg)
"ProxyBypass"="localhost;*.empresa.com.br;10.*"
YAML
proxy_bypass: [localhost, '*.empresa.com.br', '10.*']

allowed_servers

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, with insteadOf already applied.
Typelist
Valuesgitlab.empresa.com.br (the host, on any port), gitlab.empresa.com.br:8443 (only that port), *.empresa.com.br (only the subdomains).
EffectLocal paths and file:// always pass. An address that can't be checked (an ext::… transport, for example) is refused while the list exists.
On screenPreferences › 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".
Registry (.reg)
"AllowedServers"="gitlab.empresa.com.br;*.empresa.com.br"
YAML
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.

Checks and data

secrets_scan

Locks secret scanning (tokens, keys, .env files) before commit and push.

Typeon/off
Valuesrequired (also on, enforced and the "on" values): always on. off (and the "off" values): locked off.
EffectWhen on, it applies on commit and push even if the person turned it off, including only in one repository.
On screenPreferences › 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".
Registry (.reg)
"SecretsScan"=dword:00000001
YAML
secrets_scan: required

See Secrets.

telemetry

Versora has no telemetry. The key exists so IT can record that in the policy.

Typetext
ValuesOnly off (or the "off" values).
On screenIn Policy and team: Telemetry "off (Versora doesn't collect data)".
ErrorWith on: "Versora has no telemetry; only "off" is accepted".
Registry (.reg)
"Telemetry"="off"
YAML
telemetry: off

Preferences and wizard

preferences_hidden

Pages that disappear from the Preferences list.

Typelist of page ids (see the id table below)
EffectThe 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 screenIn Policy and team: Hidden Preferences pages, with the names.
Registry (.reg)
"PreferencesHidden"="keys;custom-commands"
YAML
preferences:
  hidden: [keys, custom-commands]

preferences_locked

Pages that appear, but read-only.

Typelist of page ids
EffectAll the page's controls are disabled. The Policy and team page (policy) is never locked.
On screenAt the top of the page: "This page is set by your company and is read-only." In Policy and team: Read-only pages.
Registry (.reg)
"PreferencesLocked"="network;checks"
YAML
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.

Preferences page ids

The list also appears in the app, in Preferences › Policy and team › For the administrator.

IdPage
generalGeneral
profileProfile
commitCommit
toolsExternal tools
accountsAccounts
cilintCI validation
custom-commandsCustom commands
deeplinkCommand line and links
encodingEncodings
ergoOpsOperations
ergo-viewNavigation and appearance
flowsWorkflow
graph-viewGraph
checksChecks
hygieneBranch hygiene
identitiesIdentities
inspectPlus.linksLinks in messages
issuesIssues
keymapKeyboard shortcuts
keysSSH and GPG keys
networkNetwork
notificationsNotifications
policyPolicy and team (can't be hidden or locked)
pushrulesPush rules
releaseVersions and commits
stackStacks
terminalTerminal
timelineLocal history
updatesUpdates
worksafeCommit message
worktreesWorktrees
windowsWindows integration
aboutAbout and diagnostics

team_commands

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.

Typeon/off
Valuesdeny (also denied, block and the "off" values): turned off. allow (also allowed and the "on" values): allowed.
On screenIn 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"
Registry (.reg)
"TeamCommands"="deny"
YAML
team_commands: deny

welcome_wizard

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.

Typeon/off
Valuesskip or hide (and the "off" values): doesn't appear. show (and the "on" values): appears on first run.
On screenIn 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.
Registry (.reg)
"WelcomeWizard"="skip"
YAML
welcome_wizard: skip

defaults_folder

The folder with the first-run default settings, in place of %ProgramData%\MCK2\Versora\default. See Default settings.

Typetext (REG_SZ or REG_EXPAND_SZ)
ValuesA local or network folder, with settings.json inside. %NAME% variables are expanded.
On screenIn Policy and team: Default settings folder.
Registry (.reg)
"DefaultsFolder"="\\\\servidor\\versora\\default"
YAML
defaults_folder: '\\servidor\versora\default'

Commit message

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.

commit_title_max

The maximum length of the message's first line.

Typewhole number (REG_DWORD)
ValuesFrom 10 to 500.
CombinationThe 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 screenPreferences › 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 …."
Registry (.reg)
"CommitTitleMax"=dword:00000048
YAML
commit:
  title_max: 72

commit_conventional

Requires Conventional Commits (type(scope): description) in every repository.

Typeon/off
Valuesrequired (and the "on" values). Off only means "not required by the machine": the team can still require it.
On screenPreferences › Versions and commits: "In this repository, Conventional Commits is required (…)."
In commit"The title doesn't follow Conventional Commits (type(scope): description)."
Registry (.reg)
"CommitConventional"="required"
YAML
commit:
  conventional: required

commit_types

The accepted commit types (feat, fix, docs…).

Typelist
CombinationOnly 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 checkedWhenever the title has the form of the convention, even without commit_conventional.
In commit"The type … isn't one of the allowed ones: …."
Registry (.reg)
"CommitTypes"="feat;fix;docs;refactor;test;chore"
YAML
commit:
  types: [feat, fix, docs, refactor, test, chore]

commit_signoff

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.

Typeon/off
Valuesrequired (and the "on" values).
On screenIn the commit box: "Signed-off-by will be added (…)."
Error on commitWith no git identity: "No git identity (user.name and user.email): Signed-off-by can't be written."
Registry (.reg)
"CommitSignoff"=dword:00000001
YAML
commit:
  signoff: required

ai_coauthor

The minimum for the co-author trailer for code written with AI help. The app has no way to detect that code; it asks.

Typetext
Valuesoff (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.
CombinationThe strictest mode of the machine's and the team's applies.
Error"unrecognized value; use one of: off, suggested, required"
Registry (.reg)
"AiCoauthor"="suggested"
YAML
ai_coauthor: suggested

ai_trailer

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.

Typetext or list
ValuesLines in the Key: value format, for example Co-authored-by: AI Assistant <[email protected]>.
CombinationThe 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>)"
Registry (.reg)
"AiTrailer"="Co-authored-by: AI Assistant <[email protected]>"
YAML
ai_trailer: 'Co-authored-by: AI Assistant <[email protected]>'

Branches

protected_branches

Protected branches in every repository, added to the ones in .versora.yml and the ones the person marked.

Typelist
ValuesExact names (main) or with *, which matches any sequence, including / (release/* matches release/1.4 and release/2026/q4).
EffectThe 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 screenPreferences › Checks: "Protected branches (set by your company): …". In the protected branch dialog: "Protected by your company's policy: …".
Registry (.reg)
"ProtectedBranches"="main;release/*"
YAML
protected_branches: [main, 'release/*']

Accounts

oauth_client_ids

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.

Typelist of host=client_id pairs
ValuesThe 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.
EffectIn 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."
Registry (.reg)
"OAuthClientIds"="gitlab.empresa.com.br=abc123def456"
YAML
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.

Typetext or list
Valuesoff (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 screenPreferences › 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."
Registry (.reg)
"Updates"="stable;notify"
YAML
updates: [stable, notify]

The allowed_servers list doesn't apply to the update site. See Automatic update.

See also