Administrators
Deployment
8 min read
This page brings together what IT needs to put Versora on the company's machines: what to install first, how the installer behaves, what to allow on the network, how to prepare OAuth sign-in and where the app keeps each thing.
- Windows with git installed (Git for Windows) and on the
PATH. Versora uses the machine's git: hooks, credentials, SSH and settings work just like on the command line. - git 2.28 or newer ("New repository (init)" uses
git init -b); 2.40 or newer to have every feature. With an older git, the app works, but a bar at the top warns what's unavailable (conflict preview, commit surgery and others). See Git version. - Git LFS, if the repositories use LFS.
- HTTPS access to the company's GitLab/GitHub servers and to the Versora website (for updates).
Without git, Versora warns: "Git wasn't found. Install Git (git-scm.com) and make sure it's on the system PATH."
Versora is distributed as a Windows installer (NSIS), in Brazilian Portuguese, English and Spanish, with the publisher MCK2. The installer and the uninstaller follow the Windows display language, with no language picker; on Windows in any other language, they're in English. The same installer does both installation modes:
| Just for the user | For all users | |
|---|---|---|
| On the Choose Users page | Install just for me | Install for anyone using this computer |
| On the command line | /CurrentUser | /AllUsers |
| Asks for administrator | No | Yes, on installation and on every update |
| Where it writes in the registry | HKCU (the user's part) | HKLM (the machine's part) |
| Status icons in File Explorer | Don't exist | Asked about |
The Choose Users page only appears on an administrator account. On an account without administrator rights, the installer goes straight to the installation just for the user. See both modes in Install Versora.
The keys go in HKCU for the installation just for the user and in HKLM for the installation for all users.
| Item | Where | When |
|---|---|---|
The versora:// link protocol | Software\Classes\versora | Always, without asking |
| "Open with Versora" in the folder menu | Software\Classes\Directory\shell\Versora and …\Directory\Background\shell\Versora | Only if the person accepts |
| The Versora submenu in the file menu (Blame, File history, Diff with the last commit, Open the repository in Versora) | Software\Classes\*\shell\Versora | Only if the person accepts |
The status icons in File Explorer (the versora_shell_ext.dll extension, five COM classes and the status icon entries) | HKLM\Software\Classes\CLSID\… and HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers | Only in the installation for all users, if the person accepts |
In the interactive installation, the installer asks: "Add "Open with Versora" to the folder context menu in File Explorer?", "Add the "Versora" submenu to the file context menu in File Explorer?" and, in the installation for all users, "Show git status icons (modified, committed, conflict, untracked, ignored) on repository files in File Explorer?". Afterward, each person turns "Open with Versora" on or off in Home › File Explorer menu or in Preferences › Windows integration (what was written for the whole machine can only be removed by the installer or an administrator). See File Explorer.
The texts of these items ("Open with Versora" and the submenu names) are in the installer's language. On an update or reinstall, including the automatic update from 1.1.0, which wrote these texts in Portuguese on any Windows, the installer rewrites the existing items in that language, without asking. Once installed, the texts don't follow the app's language.
Uninstalling removes all these items.
The silent installation (/S) has no way to ask. That's why it does not create "Open with Versora", the file submenu or the status icons. The versora:// protocol goes in just the same. Give the mode on the command line:
# For all users (the distribution tool runs as administrator)
.\Versora_1.1.1_x64-setup.exe /S /AllUsers
# Just for the user (the tool runs in the context of whoever will use Versora)
.\Versora_1.1.1_x64-setup.exe /S /CurrentUser
Caution
The status icons on File Explorer files (conflict, modified, untracked…) only exist in the installation for all users, and only go in if someone answers Yes to the installer's question: the silent installation doesn't turn them on. The "Open with Versora" menu and the file submenu work in both modes.
Versora looks for new versions on its own on the https://versora.mck2.com.br website: 1 minute after opening, every 4 hours and 30 minutes after a failure. The package is downloaded in the background and only accepted if the signature matches Versora's key and it's the announced version. The installation runs in passive mode, with just the progress bar. See Automatic update.
The update keeps the installation mode (just for the user or for all users):
- Just for the user: it installs without asking for administrator rights.
- For all users: Windows asks for administrator permission (UAC) on every update. If the person declines, nothing is installed, the app explains it in Preferences › Updates ("The administrator prompt to install ‹version› was declined. …") and, on close, doesn't ask again for that version; Restart now tries again. On an account that can't approve as an administrator, the app doesn't even try and warns: "This Versora was installed for all users, and this account can't approve as an administrator: the update isn't installed from here. Ask an administrator to update it."
If people don't have administrator rights and the installation is for all users, distribute the new versions with the company's tool (and, if you want, turn off the automatic update with updates: off).
- HTTPS to
versora.mck2.com.br, through the same proxy as Preferences › Network (or the one locked by the policy). - The policy's
allowed_serverslist does not apply to the update site. It neither blocks nor allows the update.
| Goal | updates value |
|---|---|
| The update follows the default (checks, downloads and installs when the person restarts or closes) | without the key |
| Ensure only versions from the Stable channel | stable |
| Only notify; the person downloads whenever they want | notify |
| Both | [stable, notify] |
| Never look for new versions (IT distributes the installer) | off |
With off, IT needs to distribute the new versions with the installer itself. An automatic update doesn't ask the File Explorer questions ("Open with Versora", the file submenu and the status icons): it rewrites the items that already exist and doesn't create the ones that don't.
- Decide what's a rule (goes into the policy) and what's a suggestion (goes into the default settings).
- Distribute the policy through GPO and registry or the policy.yml file. The reference is in Policy keys.
- Prepare the default settings on a reference Versora, with Export settings on Home, without credentials.
- If the company uses OAuth sign-in, distribute the client ids with the
oauth_client_idskey (see below).
With OAuth sign-in, each person signs in with their GitLab or GitHub account through the browser, with the company's SSO, without creating a personal access token. The token stays in the Windows vault and renews itself. For that, the server's administrator registers an OAuth application once.
- As an administrator: Admin › Applications › New application (instance application). A group application also works: Group › Settings › Applications.
- Name: Versora. Redirect URI:
http://127.0.0.1/callback. - Uncheck Confidential: Versora is a desktop app and uses PKCE, without a secret.
- Scopes: check
api(it also covers git over HTTPS). Trusted is optional: it skips the authorization screen. - Save and give the Application ID (client id) to people, or distribute it through the policy (
oauth_client_ids). The code sign-in (GitLab 17.2+) uses the same application.
- Settings › Developer settings › OAuth Apps › New OAuth App, in the organization, for the company.
- Check Enable Device Flow. The Authorization callback URL isn't used by Versora (it can be
http://127.0.0.1/callback). - Give the Client ID to people (it isn't a secret; Versora doesn't use the client secret). The requested scopes are
repoandread:org.
oauth_client_ids: ['gitlab.empresa.com.br=<Application ID>', 'github.com=<Client ID>']
In the sign-in, the client id field comes filled in and locked: "Set by your organization's policy."
- "The browser didn't come back to Versora in time. If … showed a redirect URI error, an administrator needs to add http://127.0.0.1/callback (opens another site) to the OAuth application."
- "… didn't accept the client ID: the OAuth application doesn't exist on that instance, was removed, or is marked as confidential (Versora needs a non-confidential application)."
- "The OAuth application on … doesn't grant the "…" scope. An administrator needs to enable that scope on the application."
- "… no longer recognizes the OAuth application used in …'s sign-in (it was removed or changed by the administrator). Contact the administrator and sign in again in Preferences › Accounts."
See also Servers and accounts.
| What | Where |
|---|---|
| List of registered servers | %APPDATA%\com.mck2.versora\servers.json |
| Accounts and saved OAuth client ids | %APPDATA%\com.mck2.versora\accounts.json |
| Tokens, proxy passwords and OAuth tokens | Windows Credential Manager, under Generic Credentials, with names ending in .Versora (for example gitlab.empresa.com.Versora). Uninstalling doesn't remove them: see "Uninstall" in Install Versora |
| Error and operation logs | %LOCALAPPDATA%\com.mck2.versora\logs\ (up to 5 files of 1 MiB) |
| Preferences, Home projects and groups | In the app's own storage (WebView2's, in %LOCALAPPDATA%\com.mck2.versora). They're included in Export settings. |
None of this goes in a push, unless the team versions it on purpose:
| What | Where |
|---|---|
| Copies for Ctrl+Z | refs/versora/undo/* (the 20 most recent) |
| Timeline named points | refs/versora/points/* |
| Local history of files | .git/versora-history |
| Trust in team commands | versora/policy-consents.json, inside the common .git folder |
| Chosen workflow | local git configuration (versora-flow.*) |
| Branch stacks | local git configuration (branch.<name>.versora-parent) |
| Team rules | .versora.yml at the root (versioned by the team) |
| What | Where |
|---|---|
| Policy by GPO | HKLM\SOFTWARE\Policies\MCK2\Versora and HKCU\SOFTWARE\Policies\MCK2\Versora |
| Policy by file | %ProgramData%\MCK2\Versora\policy.yml |
| Default settings | %ProgramData%\MCK2\Versora\default\settings.json |
When someone opens a ticket, ask for the Diagnostics for support: Preferences › About and diagnostics › Copy diagnostics, or the Copy diagnostics button in the error notice itself. The text comes out without tokens, passwords, emails, user name or machine name, and includes versions, git configuration, network, servers and the latest errors. See Support diagnostics.
- Install git (2.40 or newer) on a test machine.
- Apply the policy (or run Versora with
VERSORA_POLICY_EXTRApointing to a test YAML; see Company policy). - Install Versora in the mode the company will use (
/AllUsersor/CurrentUser) and check the Installation line in Preferences › Updates. - Open the app and check, in Preferences › Policy and team:
- the policy source "in effect";
- no item in Ignored values and no "unknown keys";
- the Default settings line "in effect", if there is one.
- In Preferences › Network, use Connection test with the address of the company's GitLab.
- Clone a real repository and do a fetch, a test commit on a branch and a push.
- Try a commit outside the rules to see the The message doesn't follow the rules window.
- In Preferences › Updates, click Check now and check the Connection line.
- Generate a diagnostics report and check that it doesn't include personal data.