Skip to content
qgonDEV DOCSSDK 0.3.31
ENKR

Security and access

In the appSettings › Security·Settings › Action logAdmin

Server admins read this page when deciding security settings. It lets you decide which network the server sits on and what to allow from outside the server. It also shows where to find who did what and how far each key reaches.

qgon runs inside the server. It does not connect to outside servers and does not send usage statistics (telemetry). Updates arrive only as files signed by qgon, and only your organization holds the keys that open backups (Install, update and back up).

Know the ways the server reaches the internet as well. Training jobs and workspaces reach the internet (pip, Hugging Face, GitHub and so on) by default. The import center also connects to Hugging Face, GitHub and GitLab, and an admin can turn that off (see 'Import center' below).

Accounts exist only on this server. External authentication such as SSO or LDAP is not used. No Linux accounts are created on the server OS either.

Role Scope What it can do
Admin Whole server Create and delete accounts, reset passwords, create workspaces and assign resources, queues, quotas and run policies, manage agents, server settings
Workspace manager Per workspace Members of that workspace, start and stop, save and roll back environments
Member Assigned workspaces Develop, send training, manage own experiments, models and datasets

With teams, a team lead role is added inside each team (Teams and quotas).

Accounts are created on Settings › Users · accounts. The initial password is shown once, so pass it on to the user. The user changes it on Settings › Profile · environment after the first sign-in. To delete an account, type its exact account name in the confirmation dialog. Deleting blocks sign-in at once and cuts workspace access and SSH. The person's personal keys are revoked too. Records of experiments, models and datasets stay.

Reading is widely open. Signed-in users can see other people's experiments, models, datasets and projects. Only the author and admins change or delete them. Code and changes sent with qgon run can also be seen by other users of the server, so do not put values that must stay private into code you send.

When a member deletes a run or a model, the server deletes only files under that run's own path. Files that point into someone else's run folder or a shared folder are not deleted.

Users who lose their password ask an admin to reset it. For a lost admin password, follow the recovery steps in Install, update and back up.

Security settings screen with your connection type, the external access level choice and the list of basic actions allowed from outside
The demo server uses a documentation address range for its LAN, so the address next to Internal (LAN) looks like a public one.View full size(opens in a new tab)

The server splits connections into internal (LAN) and external by address. It does not care whether the client is a phone or a PC. These addresses count as internal.

  • The LAN ranges set by the admin. The default is the private address ranges (10.x, 172.16-31.x, 192.168.x), and up to 32 can be listed.
  • Connections that reach the server's public address from inside the LAN. Passing through the router, their source address shows up as the server's public address. 'Trust own public address' controls this, and it is on by default. Clients on any network that reaches the internet through the same public address as the server (a guest Wi-Fi, for example) also count as internal.
  • The networks of workspaces, training jobs and agents inside the server

The level does not apply to internal users. Only external connections get the level the admin chose.

Level What works from outside
Blocked Even sign-in is refused
Read-only View experiments, models and notifications, and download files. Registering runs, deleting, uploading, changing settings and the web IDE are blocked
Read + basic actions Read-only plus only the groups the admin picked. The web IDE does not open
Full access Same as inside, including the web IDE. LAN-only actions below are still blocked

There are three groups to pick for 'Read + basic actions'. Stop runs, start/stop workspaces covers stopping runs and dequeuing, starting and stopping workspaces, stopping hyperparameter searches and pipelines, and running saved pipelines. Run again covers running a finished run again with the same settings and continuing training from the last checkpoint. Manage workspace members covers adding members, changing roles and removing members by workspace managers. When these member changes are made from outside, every full admin is notified of who changed what and from where. With no group picked it is the same as read-only. Even for allowed actions, the usual permissions (author, admin, member) still apply.

LAN-only actions are always blocked from outside, whatever the level. They are creating, changing and deleting accounts, resetting passwords, external access settings, issuing personal keys and endpoint keys, creating and deleting teams and appointing leads and setting quotas, import policy and 'My connections' tokens, and actions that change backups or updates. Trying them from outside shows a message that the action works only from inside (LAN).

Model calls follow the level too. The test API can be called from outside only at full access. Endpoints need full access and the endpoint's 'Allow calls from outside' switch on.

Change the level under external access on Settings › Security. Saving works only from inside. Once saved, it applies at once without a restart and is recorded in the action log. If editing the LAN ranges would make your own connection external, you are asked to confirm again. A newly installed server starts at read-only.

Workspace SSH is not affected by this setting. SSH accepts only registered public keys and has no password sign-in.

Action log screen with time, user, action, target, result and source columns and filters
Filter by period, user, action and result at the top, and export with Download CSV at the top right.View full size(opens in a new tab)

The server records actions that change state, and refused requests, in the action log. That includes successful and failed sign-ins, adding and deleting accounts, role changes and password resets, queue and image rules, creating, deleting, starting and stopping workspaces, saving and rolling back environments and member changes, dataset mounts, new runs, first-run setup, external access settings, and admin recovery done from the console. Requests refused for lack of permission, and malformed requests that arrive without sign-in, are recorded as 'refused requests'. Ordinary allowed requests are not recorded.

Each record has the time, user, action, target, result, source IP with its internal or external class, and a request ID. Passwords, keys and tokens are never included.

  • Admins filter by period, user, action, target and result on Settings › Action log and export to CSV. Exports are recorded too.
  • Failed sign-ins and refusals from the same source within a short time are grouped into one line. The grouped line appears after that window ends, so it can show up about a minute late.
  • 'Unverified (claimed account: x)' in the user column means the request came before sign-in was verified and the server does not know who it was. The name the request gave for itself is shown only for reference. It does not mean that person did it.
  • Records of what people did are kept for 365 days, up to 2 million. Records of unverified requests are kept for 30 days, up to 200,000. Beyond that, the oldest are deleted first.
  • Every user sees their own records on Settings › My activity.
  • Error screens and responses carry a request ID (response header X-Request-Id). If a user gives you that ID, you can find the matching record.
  • Actions done with a workspace key are recorded under the key owner's name. The server cannot tell which Linux user inside the workspace sent the request. In a workspace with two or more members, the record carries a mark that another member may have done it. When you must know who did something, give each person their own workspace.

The action log is included in quick backups.

qgon has four keys with similar names. Using the wrong one gets refused, so keep their names straight.

Key Used for Reach
API key (access/secret) SDK setup outside the server, getting a REST token Acts with the owner's role. An admin's key can do admin actions
Workspace key SDK, terminal and notebooks inside that workspace Works only inside that workspace. Member rights even for an admin account
Personal key (qgk_…) Calling the test API, and endpoints within their scope Model calls only. Up to 5 per person
Endpoint key (qge_…) Calls to that endpoint Calls only that endpoint. Keeps working even if the issuer's account is deleted

API keys are created on Settings › API credentials. The secret is shown only once, at creation. A workspace key is created and placed in the workspace when you press 'Set up access' in a workspace. It stops working as soon as you leave the members. Personal keys are created under API usage on Deploy › Playground, and endpoint keys on Deploy › Endpoints. Both are issued only from the internal network, and the value is shown only once, at issue.

Actions done with a workspace key are judged by member rules, even for an admin account. Inside a workspace you cannot create or delete queues, reorder the queue directly, put jobs on admin-only queues, change or delete other people's experiments, models or projects, use images outside the allow list, or approve or reject urgent requests. This is because other members of the workspace can read that key with sudo.

The rule follows runs onto the server. Experiments created, changed in code or settings, or enqueued with a workspace key are recorded by the server. When such an experiment runs on a GPU agent, it is still judged with member rights. The same goes for pipeline steps, hyperparameter search trials, clones and automatically requeued runs that come from it. This record is never cleared. Create runs that need admin rights anew from the qgon screens or with your own API key. Such runs should not load result files, models or checkpoints made by other people. If they must, check the content first and open it safely (for example weights_only=True).

When an admin presses 'Set up access' in a workspace, a confirmation dialog appears. The admin account's key goes into that workspace, and other members of the workspace can use it there. Admins are safer not sharing a workspace with other people.

Workspaces and training job containers run on isolated networks. They reach internal server services only through a fixed entry point. The server firewall service puts the isolation rules in place and checks them again every 30 seconds. While this service is stopped, the isolation rules for workspaces and training jobs are gone too. When the service comes back up, it puts them back right away. Running ./install.sh shows the firewall status near the end of its output.

Target Open paths Blocked paths
Training jobs Server entry point (API and files), internet Internal server services, ports opened by other jobs, private addresses on the company network
Workspaces Server entry point, internet, company network Internal server services
Model containers of test serving and endpoints Only requests handed over by the server entry point Internet, company network, other serving
  • Multi-node or multi-container training where jobs talk to each other directly (DDP and the like) does not work on this network.
  • Training jobs cannot reach other servers, NAS or in-house git on the company network. Company ranges routed through a split-tunnel VPN are blocked too. From a workspace terminal, the company network is open.
  • Each serving container runs on its own network with no way out. It runs with all privileges dropped and a read-only root, and opens no ports outside the server.

If training jobs need an in-house pip mirror, repository or proxy, add the address on the server console to the exception file <install folder>/netguard/isolate-allow.conf. Write one entry per line in the form IPv4[/length][:TCP port]. Anything after # is a comment. Changes apply again within 30 seconds, with no need to rebuild services.

# in-house pip mirror
<mirror address>:443
# in-house HTTP proxy
<proxy address>:3128
# in-house DNS (UDP, so the whole address without a port)
<DNS address>
  • Exceptions work per TCP port. For destinations that use UDP, such as DNS, open the whole address without a port.
  • If the server reaches the internet only through an in-house HTTP proxy, you must add that proxy's address:port. Without it, pip, Hugging Face and git in jobs end in timeouts. ./install.sh check reports a [주의] (warning) when it finds proxy settings on the server.
  • On servers with docker older than 26 whose upstream DNS is an in-house address, name resolution in jobs is blocked too. Add that DNS address as an exception or upgrade docker.
  • Malformed entries, and entries that overlap the server's internal network range, are dropped. check and the firewall log report them. Exceptions wider than /16 are accepted with a warning.

Import center: isolation, checks and approval

Section titled “Import center: isolation, checks and approval”

The import center brings Hugging Face models and datasets and GitHub or GitLab repositories onto the server. The download path is isolated as below, and everything is checked again after download.

Isolation: The server's main service never connects out. Each preview and download starts a one-off container that is removed when done. This container runs as a non-root account. It runs with no privileges, a read-only root and a memory cap, and writes only to one work folder. It cannot reach docker, secrets or the qgon database. It is attached only to its own network, and the server firewall blocks connections from that network to the server and the company network. It goes out only to allowed hosts (Hugging Face, github.com, gitlab.com) and does not connect to names that resolve to private addresses. If the firewall is not running, imports do not start.

Tokens: Hugging Face and Git tokens stored in 'My connections' are never shown again and are used only for your own imports. Admins cannot use other people's tokens either. A token is handed to the container once and never appears in environment variables, command arguments, logs or the action log. Adding, changing and deleting tokens work only from the internal network.

Checks: The server does not trust what the container reports. It checks the file list, sizes and hashes (sha256) again before moving files into the model folder. Pickle files are never opened or run. Their instructions are read in a static check. If a dangerous call or an unknown call shows up, the import is blocked even for admins. Git repositories have links pointing outside the folder, special files and hooks removed before they are placed.

Licenses: The model card and the LICENSE file are read together to assign a grade. For models with a usage policy, or grades such as research-only or no license stated, you must tick the license check box to start. Who ticked it is recorded in the action log and the model information. The grade is a classification for showing warnings, not a legal judgment.

Approval: If a member's single import is larger than the admin setting, or that license grade is set to 'approval required', it waits for admin approval. Only admins approve or reject.

On Settings › Imports, admins turn sources (Hugging Face models, Git repositories) on and off, block internet access for the import center, and set the per-member import limit and server total limit, license grades and block list, and pickle warn or block. Changes work only from the internal network and are recorded in the action log. On a server where import center internet access is blocked, bring models in with file upload or ./install.sh import-model.

Check the following right after installation and at regular reviews.

  • After the first sign-in, the admin password was changed and the first sign-in file was deleted.
  • The server sits inside the organization's internal network or a VPN and is not open directly to the internet.
  • Only the web, SSH and workspace port range (plus the labeling tool port if used) are open on the organization firewall.
  • The server firewall service is healthy. Running ./install.sh shows this status near the end of its output.
  • The external access level opens only what the work needs. A new server starts at read-only.
  • The backup passphrase and recovery key are stored separately, away from the server.
  • Admin accounts do not share workspaces with other people.
  • The action log shows no source with a burst of refused requests or failed sign-ins.