Class ModuleUploadOptions
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
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; }
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; }