Configuration file

nextPYP uses a single configuration file to provide all environmental information needed to run.

The file is written in TOML.

Placement

In web mode, the config.toml file must be placed in the shared executables folder, to ensure it’s visible on both the web server machine and any compute nodes, if you’re using a SLURM cluster.

The placement of the config.toml file is handled automatically by the installer. For convenience, the installer will also create a symlink to the config.toml file in your installation folder.

In command-line mode, The config.toml file can be placed anywhere you like on the shared filesystem, but you’ll need to let PYP know where to find it.

You can configure the location by setting the $PYP_CONFIG environment variable to the path to your configuration file.

If the $PYP_CONFIG environment variable is not set, nextPYP will look for the configuration file at the default location in the user’s home directory: ~/.pyp/config.toml

Changing the file

Edit config.toml in the shared executables folder. The symlink in the install directory points at that file. Then run nextpyp restart. It runs nextpyp check first and leaves the website running if the check fails.

nextpyp config diff shows what local/pending/config.toml would change in the live file. It prints key: old -> new for each setting that would change, with (default) on the left when the key is not set yet. A changed secret is named and its value is hidden. Settings that would stay the same are left out.

local/pending/config.toml records who saved a setting and when. A secret key is refused by nextpyp config apply and is never taken from there. nextpyp status and nextpyp doctor -v say when a pending configuration is waiting.

Every change made with nextpyp config (set, add, remove, unset, edit, apply, migrate) first saves config.toml.bak-<timestamp> with the same mode as the live file, and the five newest are kept. The installer never replaces a config.toml that is already in place. Doctor reports a backup that is more open than the live file and prints the chmod command. Doctor also reports a config.toml that contains a secret and is readable by everyone, and prints chmod 640.

Complete Example

Here’s an example of a minimal configuration to run nextPYP on the command line:

[pyp]
container = '/storage/singularity-images/pyp.sif'
scratch = '/tmp/pyp-scratch/'
binds = ['/data']

[slurm]
user = 'pyp'
host = 'slurm-login-01.example.org'
queues = ['common']
gpuQueues = ['gpu']
templatesDir = '/opt/nextpyp/templates'

Settings

PYP Section

[pyp]

Required:

yes

Occurs:

once

This section is for basic PYP configuration. PYP executes inside of a Singularity container, so much of this configuration is dedicated to configuring the container environment.

container

Type:

string

Required:

no in web mode, yes in CLI mode

Description:

Path to the PYP Singularity container on the SLURM cluster, ideally in a read-only location.

For web-enabled installations of nextPYP, this configuration option is not required. If this option is not explicitly specified, nextPYP will look for the pyp container at <web.sharedExecDir>/containers/pyp.sif, where <web.sharedExecDir> is the sharedExecDir configuration option in the [web] section, described below.

Examples:

container = '/storage/singularity-images/pyp.sif'

sources

Type:

string

Required:

no

Default:

pyp-code beside container: <web.sharedExecDir>/containers/pyp-code in web mode

Description:

Folder with PYP’s code. Its src, bin, config and nextpyp.toml are bound read-only over the same paths in the container. The programs and models in the container’s /opt/pyp/external stay as they are.

When this option is not set and the default folder does not exist, the code built into the container runs. A folder that is set here must exist: commands and jobs stop with an error when it does not, and no other code runs in its place.

A release ships PYP’s code beside the container, so an update to PYP’s code does not need a new container. The installers manage that folder and put it where this option looks by default, so most users do not need to set it.

Developers of PYP can set it to a checkout of PYP, to run the code they are editing. Jobs then run whatever the checkout holds when they start. Four packages that are developed alongside PYP are bound from the checkout too, read-only, when it has them: external/cet_pick, external/postprocessing, external/prismpyp and external/spr_pick.

Note

Earlier versions bound the whole folder over /opt/pyp, including its external folder. Now only the four packages above come from a checkout’s external folder; every other program and model comes from the container.

Examples:

sources = '/home/myuser/code/pyp'

scratch

Type:

string

Required:

yes

Description:

Directory for large (multi-GiB) temporary files on the compute nodes. This location should have fast read/write speeds, ideally in local storage.

Examples:

scratch = '/tmp/pyp-scratch'

binds

Type:

array of strings

Required:

no

Default:

empty list

Description:

List of filesystem paths to bind into the Singularity container.

Since the PYP runs inside of a Singularity container, by default, no files from outside of the container will be visibile to PYP. To make files visible to PYP, bind the directories containing those files into the container.

The following directories are not allowed to be bound because they will interfere with the PYP code inside the container:

  • /

  • /bin/**

  • /dev/**

  • /environment/**

  • /etc/**

  • /lib/**

  • /lib64/**

  • /opt/**

  • /proc/**

  • /root/**

  • /run/**

  • /sbin/**

  • /scif/**

  • /singularity/**

  • /apptainer/**

  • /srv/**

  • /sys/**

  • /usr/**

  • /var/**

The ** means any subdirectory under the listed directory is also not allowed to be bound.

Examples:

binds = ['/data']

binds = ['/storage1/cryoem-data', '/storage2/cryoem-data']

containerExec

Type:

string or table

Required:

no

Default:

singularity

Description:

The name or path of the container executable. To load a module, use a table with the key module instead. In module mode, the executable name will be the same as the module name by default. Override the default behavior by adding an exec key to the table with the name or path of the executable.

Examples:

containerExec = '/bin/singularity

containerExec = 'apptainer'

containerExec = { module = 'singularity' }

containerExec = { module = 'singularity', exec = 'apptainer' }

cudaLibs

Type:

array of strings

Required:

no

Default:

empty array

Description:

Path to a folder containing CUDA runtime libraries. When pyp is launched, these folder paths will be added to LD_LIBRARY_PATH.

Examples:

cudaLibs = ['/usr/bin/cuda']

SLURM Section

[slurm]

Required:

no

Occurs:

once

This section is used to configure properties of the SLURM cluster.

One [slurm] block can name several login nodes. Each login node is an SSH endpoint (or the web server itself, when host is omitted) that can run sbatch, squeue, and scancel. Login nodes that share an instance talk to the same SLURM controller. Login nodes with different instances talk to different controllers, and their job ids are not interchangeable.

A configuration with a single host and no [[slurm.login]] entries is still one login node, with id default. That is the form shown in the example above.

[[slurm.login]]

Required:

no

Occurs:

zero or more

One login node. When any login entry is present, do not also set host on [slurm]. Fields set on [slurm] (user, key, port, maxConnections, timeoutSeconds, path) are the defaults for every login that does not override them.

Examples:

[slurm]
user = 'pyp'
templatesDir = '/opt/nextpyp/templates'
defaultLogin = 'dcc-a'

[[slurm.login]]
id = 'dcc-a'
name = 'DCC'
instance = 'dcc'
host = 'dcc-login-01.example.org'

[[slurm.login]]
id = 'dcc-b'
instance = 'dcc'
host = 'dcc-login-02.example.org'

[[slurm.login]]
id = 'hardac'
name = 'HARDAC'
host = 'hardac-login.example.org'
path = '/opt/slurm/bin'
id

Login id stored on each submitted job. Letters, digits, ., _, and -.

name

Name shown in the project dialog and the queue. Defaults to the host, then the id.

instance

SLURM controller this login reaches. Defaults to id. Dependencies are allowed across logins that share an instance, and rejected across instances.

host

SSH host. Omit it only for a login that runs SLURM commands on the web server. At most one login may omit host.

user, key, port, maxConnections, timeoutSeconds, path

Same meaning as the [slurm] keys below. A login entry overrides the shared value.

defaultLogin

Type:

string

Required:

when more than one login is configured

Description:

Id of the login used for projects and sessions that do not choose one, and for jobs submitted before login nodes were recorded. default is accepted as an alias. When the old single host is split into several logins, set this to the login that replaces that host so in-flight jobs still cancel and report status.

Examples:

defaultLogin = 'dcc-a'

user

Type:

string

Required:

no

Default:

The username of the website process

Description:

The user name PYP will use to SSH into the SLURM login node.

Examples:

user = 'pyp'

host

Type:

string

Required:

no

Description:

Hostname of a login node for the SLURM cluster.

If no hostname is given, nextPYP will instead submit jobs by calling SLURM commands locally on the web server machine. This option requires that SLURM be installed and configured on the web server machine.

If SLURM commands are not directly available on the web server machine, then you’ll need to provide a hostname for the SLURM login node.

Examples:

host = 'slurm-login-01.example.org'

key

Type:

string

Required:

no

Default:

~/.ssh/id_rsa

Description:

Path to SSH private key to log into the SLURM login node. When ./install is given PYP_SLURM_HOST it creates ~/.ssh/id_ed25519 for the service account and writes this key with that path. A key that was made by hand is recorded with nextpyp config set slurm.key <path>.

Examples:

key = '/home/nextpyp/.ssh/id_ed25519'

port

Type:

int

Required:

no

Default:

22

Description:

Network port to use to connect to the SSH daemon on the SLURM login node.

Examples:

port = 2204

maxConnections

Type:

int

Required:

no

Default:

8

Description:

The maximum number of simultaneous connections to use to SSH into the SLURM login node. Many SSH daemons allow up to 10 connetions by default. Using more connections that that may require special configuration of the SSH daemon.

Examples:

maxConnections = 10

timeoutSeconds

Type:

int

Required:

no

Default:

300

Description:

The number of seconds to wait before closing an idle SSH connection.

Examples:

timeoutSeconds = 500

path

Type:

string

Required:

no

Default:

/usr/bin

Description:

Path to the slurm binaries on the cluster nodes.

Examples:

path = '/opt/slurm/bin'

queues

Type:

array of strings

Required:

no (CLI mode); unused by the website

Description:

SLURM partitions for CPU jobs on the command line. The first entry is the partition a pyp job is submitted to when the job does not name one; without it, sbatch is called with no -p and the cluster’s default partition applies. The website ignores this list and takes partitions from the SLURM templates. nextpyp config set slurm.queues a:b takes a colon-separated list.

Examples:

queues = ['common', 'highmem']

gpuQueues

Type:

array of strings

Required:

no (CLI mode); unused by the website

Description:

SLURM partitions that have GPUs for the command line. The first entry is used when a GPU job does not set slurm_queue_gpu. The website ignores this list and takes GPU partitions from the SLURM templates. nextpyp config set slurm.gpuQueues a:b takes a colon-separated list.

Examples:

gpuQueues = ['gpu-a100', 'gpu-h100']

templatesDir

Type:

string

Required:

yes

Description:

Path to the folder containing SLURM template files.

See also

(TODO: add a link to the templates documentation here)

Shared paths. The website writes the batch script and reads the job output on the web server. sbatch on the login node is given that same path, and the compute nodes have to see it too. web.sharedDir (the batch and log directories), the project directory, and the PYP container must be mounted at the same paths on every cluster that will run jobs.

SSH is non-interactive, so a login node’s shell startup files are not a reliable way to put sbatch on PATH. Set path to that cluster’s SLURM bin directory. When jobs run as an OS user, the user-processor program must exist at the same path on each remote login node.

Templates are shared. A template can branch on job.login, job.login_name, and job.slurm_instance when partitions or accounts differ between controllers. A new project chooses a login node in the UI when more than one is configured. Sessions and jobs that do not choose one use defaultLogin.

Standalone Section

[standalone]

Required:

no

Occurs:

once

This section is used to configure properties of the job launcher in non-cluster (aka standalone) mode.

availableCpus

Type:

int

Required:

no

Default:

One less than the number of processors in the system

Description:

The number of CPUs the standalone job launcher will use for jobs. You may want to set this to something less than the maximum your system supports, so there are always some CPU resources reserved to run the website, reverse proxy, database processes, and anything else your system needs to run.

Examples:

availableCpus = 4

availabileMemoryGiB

Type:

int

Required:

no

Default:

80% of the available total memory

Description:

The amount of memory, in GiB, the standalone job launcher will use for jobs. You may want to set this to something less than the maximum your system supports, so there is always some leftover memory to run the website, reverse proxy, database processes, and anything else your system needs to run.

Examples:

availabileMemoryGiB = 4

availableGpus

Type:

int

Required:

no

Default:

The total number of NVidia GPUs in your system

Description:

The number of NVidia GPUs the standalone job launcher will use for jobs. AMD, Intel, and other GPU types aren’t supported yet, unless they somehow are visible to and usable by the NVidia Cuda runtime.

Examples:

availableGpus = 4

Web Section

This section is used to configure the web interface to PYP. It is not required at all for the command line interface.

Throughout the web interface configuration, we will assume that the server running the web interface (the web server) can see the same filesystem as the SLURM nodes. Meaning, that if a file /data/project/file.dat is visible on a SLURM node, that same file will also be visible at /data/project/file.dat on the web server.

If this is not generally true, e.g. due to networked filesystems being mounted in different directories on different servers, there are two ways to fix it:

  • Reconfigure the web server so the networked filesystems are mounted in the same locations as on the SLURM nodes.

  • Add symbolic links to the web server filesystem so the networked filesystems appear to be mounted in the same locations as on the SLURM nodes.


[web]

Required:

for command line interface: no

for web interface: yes

Occurs:

once

host

Type:

string

Required:

no

Default:

127.0.0.1

Description:

The network interface to which the application HTTP server (not the reverse proxy HTTP server) should bind.

By default, the application HTTP server binds only to the loopback network interface, i.e. localhost, so the application HTTP server will only be reachable from the local computer.

To make the application HTTP server reachable from an external private network, set host to 0.0.0.0 to bind to all available network interfaces.

Warning

The application HTTP server is not designed to securely handle traffic from the public internet. Exposing the application HTTP server directly to the public internet increases your risk of a security compromise.

Only set host to 0.0.0.0 if the application HTTP server is isolated from the public internet by a firewall or a private network.

To make the website securely accessible from the public internet, install the reverse proxy HTTP server that is bundled with nextPYP, which is designed to operate securely in that environment.

Examples:

host = '10.0.3.4'

host = '0.0.0.0'

port

Type:

int

Required:

no

Default:

8080

Description:

The network port to which the application HTTP server (not the reverse proxy HTTP server) should bind.

By default, the application HTTP server binds to the port 8080, which is an unofficial secondary port for HTTP traffic. Since port 8080 is not a privileged port, the application HTTP server can run without root privileges.

Since port 8080 is a common port for locally-running HTTP applications, you may already have another service installed that uses that port. To avoid a port conflict, you can configure the application HTTP server to use a different port, but be sure to use a non-privileged port at or above 1024.

Warning

Using a privileged port (below 1024) like 80 or 443 for the application server requires root privileges, but the application HTTP server was not designed to run with root privileges. Doing so would be insecure, and any security compromise that had access to elevated permissions would be much more severe. If you wish to run the website on a canonical HTTP port like 80 or 443, you should use the reverse proxy HTTP server bundled with nextPYP, which is designed to operate securely when exposed to the public internet.

Examples:

port = 8082

localDir

Type:

string

Required:

yes

Description:

Directory for the database and web server assets.

This location should have fast read/write speeds, ideally in local storage on the web server.

This location does not need to be shared with the SLURM nodes.

Note

This setting is initially set by the installation script using the PYP_LOCAL environment variable.

Examples:

localDir = '/home/streamPYP/web'

sharedDir

Type:

string

Required:

yes

Description:

Directory for intermediate files and metadata for each user of the web interface.

Since this location holds the bulk of the intermediate Cryo-EM and Cryo-ET metadata for each user of the website, it should have a large amount of available space. This folder must also be available to both the website and the SLURM nodes at the same location in the filesystem.

This folder should also be writable by the service account running the website process.

Note

This setting is initially set by the installation script using the PYP_SHARED_DATA environment variable.

Examples:

sharedDir = '/network/streamPYP/sharedData'

sharedExecDir

Type:

string

Required:

yes

Description:

Directory for executables needed by both the web server and the SLURM nodes.

This location should have a enough space to host the executable files (mostly Apptainer containers, ~10s of GiB). This folder must also be available to both the website and the SLURM nodes at the same location in the filesystem.

Warning

Since this folder hosts executable files, for security reasons, it should not be writable by the service account running the website process.

Note

This setting is initially set by the installation script using the PYP_SHARED_EXEC environment variable.

Examples:

sharedExecDir = '/network/streamPYP/sharedExec'

auth

Type:

string

Required:

no

Default:

none

Description:

Which type of user authentication is used for the web interface:

  • login: Users log into the web interface with a username and password.

    Users are then assigned fine-grained permissions to website features by privileged administrator accounts.

    This option is suitable for most users of nextPYP.

  • none: No user authentication is performed by the web interface.

    All visitors to the website are associated with the administrator account and are granted full permissions to all website features.

    This option is suitable for single-user instances of nextPYP or developers.

  • reverse-proxy: Users are authenticated by a reverse-proxy server (perhaps implementing SSO for an organization) before reaching nextPYP.

    nextPYP will use the X-userid HTTP header to identify users, which must be securely provided by the reverse proxy server.

    Warning

    To provide the X-userid HTTP header securely, the reverse proxy server must block any submission of this HTTP header from the HTTP client (eg, the user’s web browser).

    Users are then assigned fine-grained permissions to website features by privileged administrator accounts.

Examples:

auth = 'login'

webhost

Type:

string

Required:

no

Default:

http://$host:$port, where $host and $port are the values of the web.host and web.port configuration values respectively.

Description:

The URL of the webserver as visible from the pyp process.

This value should include the full URL prefix for the web server, including the protocol (HTTP or HTTPs) and the port number (if non-standard). Do not include a trailing slash.

When running in standalone mode, the pyp process will run on the same machine as the web server. In this environment, the default value will be correct, and there should be no need to choose a different value.

When the pyp process runs on an external compute node (in, say, a SLURM cluster), this value must be the URL of the website from the point of view of the compute node. The default value will not be correct in this case, so be sure to set webhost to the correct value for your environment.

If the compute node is on a private network that is shared with the web server, then the correct value of webhost will be http://$hostname:$port where $port is the web.port configuration value and $hostname is the host name of the server from the point of view of the compute node. Note this configuration uses unencrypted HTTP rather than encrypted HTTPs.

Warning

In this private network configuration, if the web server has any public network interfaces, be sure to configure the firewall to only allow connections to the port defined by web.port over the private network interface. Connections over the public network interface should be blocked by the firewall.

If the compute node is not on a shared private network with the web server, then the correct value will be https://$domain where $domain is the domain name of the web server as configured in the DNS registry. This configuration requires using the reverse proxy HTTP server bundled with nextPYP to enable encrypted HTTPs connections, since the connection may travel over an untrusted network, like the public internet.

Examples:

webhost = 'https://streampyp.example.org'

webhost = 'http://dev.streampyp.example.org:8080'

publicUrl

Type:

string

Required:

no

Default:

unset (alarm links fall back to web.webhost)

Description:

Browser-facing origin used in Alarms notification links. Leave blank when web.webhost is already the URL people open in a browser. Set this when web.webhost is a private/cluster callback address (for example http://hostname:8080) and users reach the site through a public HTTPS name.

Do not include a trailing slash or /#. The website appends /#/… SPA paths itself (for example https://nextpyp.example.org/#/project/…).

Examples:

publicUrl = 'https://nextpyp.example.org'

debug

Type:

boolean

Required:

no

Default:

false

Description:

If true, enables extra features for PYP developers.

Most users will not need this option.

sendmail

Type:

string

Required:

no

Default:

unset

Description:

Path to a sendmail-compatible command used to deliver email from the website, including the email channel under Your Account → Alarms (see Alarms).

Treat this value as a secret: set it from the shell with nextpyp config set, not from the Setup tab (see Operate). When unset, Slack / Teams / Discord alarms still work; only email alarms fail.

Examples:

sendmail = '/usr/sbin/sendmail'

[[web.filesystem]]

Type:

table (may occur more than once)

Required:

no

Description:

Optional monitored path used for free-space reporting and low-space alarms.

Each table needs:

  • path (string): a directory on the filesystem to watch

  • name (string): a short label shown in the UI and in alarm messages

An optional nested lowSpaceAlert table enables low-space alarms for that path:

  • gib (int): notify when free space is below this many GiB

  • hrs (int): minimum hours between repeat notifications for the same filesystem (if not positive, the website uses 6 hours)

  • email (string): required by the configuration schema; low-space delivery goes to users who enabled Filesystem low space on an active alarm channel (see Alarms), not to this address alone

Examples:
[[web.filesystem]]
path = '/nfs/nextpyp/shared'
name = 'shared data'
lowSpaceAlert = { gib = 500, hrs = 6, email = 'ops@example.org' }

heapMiB

Type:

integer

Required:

no

Default:

2048

Description:

Number of MiB to use for the JVM heap for the website process.

If you find the website becoming slow and less responsive, try allowing the website to use more memory by increasing the maximum heap size.

databaseGB

Type:

float

Required:

no

Default:

1.0

Description:

Number of GB to use for the database cache in the web server memory (RAM).

jmx

Type:

boolean

Required:

no

Default:

false

Description:

True to enable remote monitoring for the JVM via JMX.

Most users will not need this option.

oomdump

Type:

boolean

Required:

no

Default:

false

Description:

True to enable heap dumps when the JVM runs out of memory. Heap dumps are useful to help diagnose memory issues, but are not needed for normal operation.

Most users will not need this option.

workflowDirs

Type:

array of strings

Required:

no

Default:

empty list

Description:

List of folder paths containing workflow files.

Any files found in these folders will be loaded as workflows when the web server starts. Any errors with reading the workflow files will be printed to the error log

Examples:

workflowDirs = ['/storage/workflows']

minPasswordLength

Type:

integer

Required:

no

Default:

12

Description:

The minimum length accepted for new passwords. This setting only applies when web.auth is login.

maxProjectsPerUser

Type:

integer

Required:

no

Default:

no limit

Description:

The most projects one user may own. Creating another one fails with a message.

allowParallelJobRuns

Type:

boolean

Required:

no

Default:

true

Description:

When true, blocks of a project that do not depend on each other run at the same time. When false, a project runs one block at a time.

maxCpusPerJob

Type:

integer, at least 1

Required:

no

Default:

no limit

Description:

The most threads one job may hold at once. A job that asks for more on its own is refused with a message that names the limit. For an array job, such as the Split step of a block, the website lowers how many elements run at once, so all the running elements together stay within the limit. Users can still choose a lower limit with Split, Total threads in the Resources tab.

Users with the Admin permission are not limited. The Resources tab stops the thread fields at this value for everyone else.

The limit applies to each job, not to each user. It becomes a limit per user when maxProjectsPerUser = 1 and allowParallelJobRuns = false, and the user does not also run a session. In standalone mode (no [slurm] section) only the refusal applies, not the array limit.

See Limits on shared sites.

Examples:

maxCpusPerJob = 64

maxGpusPerJob

Type:

integer, at least 0

Required:

no

Default:

no limit

Description:

The most GPUs one job may hold at once. It works like maxCpusPerJob. 0 refuses every job that asks for a GPU.

Examples:

maxGpusPerJob = 2

maxCpusPerGpu

Type:

integer, at least 1

Required:

no

Default:

no limit

Description:

The most threads a job that uses GPUs may ask for, for each GPU it asks for. With maxCpusPerGpu = 12, a job with one GPU may use 12 threads and a job with two GPUs may use 24. A job that asks for more is refused with a message that names the limit. Jobs that use no GPU are not affected.

Use it so a job that needs one card cannot book all the cores of a server with several cards. Users with the Admin permission are not limited.

Examples:

maxCpusPerGpu = 12

maxMemoryGiBPerCpu

Type:

integer, at least 1

Required:

no

Default:

no limit

Description:

The most memory a job may ask for, in GB for each thread it asks for. With maxMemoryGiBPerCpu = 8, a job with 4 threads may ask for up to 32 GB. A job that asks for more is refused with a message that names the limit, and so is a job that asks for all the memory of a node (a memory per thread of 0). The Resources tab stops the memory-per-thread fields at this value. Users with the Admin permission are not limited.

Examples:

maxMemoryGiBPerCpu = 8

userSwitch

Type:

string

Required:

no

Default:

setuid when the key is absent. A new install writes sudo.

Description:

How the website becomes a linked operating-system user on this machine. A new install reads PYP_USER_SWITCH (sudo or setuid; default sudo). setuid keeps a per-user copy under shared/user-processors. sudo runs /usr/libexec/nextpyp/user-processor through sudo. sshkey is not valid here. Set that on slurm.userSwitch.

jobPath

Type:

string

Required:

no

Default:

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

Description:

PATH passed to every command the sudo helper runs. The installer reads PYP_JOB_PATH. sudo’s secure_path omits /usr/local/bin, and a local job finds apptainer there. HOME becomes the target user’s home. The helper’s check command fails when that directory is missing or not writable. sudo’s umask is 0022 unless the drop-in sets Defaults!/usr/libexec/nextpyp/user-processor umask=0027.

usersGroup

Type:

string

Required:

no

Default:

nextpyp-users

Description:

The only accounts the service account may become. The installer reads PYP_USERS_GROUP. A local group is maintained with gpasswd. A directory group is edited in the directory, not by user-add.

slurm.userSwitch

Type:

string

Required:

no

Default:

the web.userSwitch value

Description:

setuid, sudo, or sshkey for hosts behind slurm.host. sshkey uses a per-user key in shared/os-users/<user>/ and an authorized_keys forced command. The web host stays on sudo or setuid.

slurm.helperPath

Type:

string

Required:

no

Default:

/usr/libexec/nextpyp/user-processor

Description:

Helper on the login node. Point it at the shared copy only for the one-file variant. That path must be owned by root and not group- or world-writable; nothing checks this for you.

/etc/nextpyp/user-processor.conf

A root-owned file, not group- or world-writable, may set min_uid. The helper ignores the file otherwise. Users below UID_MIN in /etc/login.defs (default 1000) are refused after a switch. Direct execution, with no switch, is not subject to the floor, so a system-range service account can still run the helper as itself.