Class ModuleUploadOptions

Assembly: redb.Tsak.Core.dll

Deployment security options, bound from Tsak:Modules.

A module is executable code that Tsak loads in-process, so every default here is the safe one:
remote upload is off, and when signature enforcement is on, unsigned or tampered packages
are refused at the load boundary regardless of how they arrived.

public sealed class ModuleUploadOptions

Inheritance

Object→ModuleUploadOptions

Properties

Enabled

Enables POST /api/modules/upload and /rollback. Default: false. A node

public bool Enabled { get; set; }

KeepVersions

Previous package versions to keep on disk for rollback ({name}.tpkg.v{n}). Default: 3.

public int KeepVersions { get; set; }

MaxSizeMB

Maximum accepted .tpkg size in MB. Default: 100.

public int MaxSizeMB { get; set; }

RequireSignatureForUpload

Require a valid signature for uploads even when no public key is configured to be impossible —

public bool RequireSignatureForUpload { get; set; }

TargetPath

Directory the uploaded package is written to (must be one of Tsak:Modules:AssemblyPaths

public string? TargetPath { get; set; }