- Documentation
- Vigil Compiler
- Guide
- Upload and resource validation
Upload and resource validation
Before any compilation enters the queue, the Vigil Compiler API runs a full static preflight inspection on the uploaded .zip file.
Archive requirements
Section titled “Archive requirements”- Must be a valid ZIP archive (magic bytes verified, not just file extension).
- Must stay within your plan’s maximum upload size (see Plans & credits).
- Must contain a valid
meta.xmlat the resource root withoutDOCTYPEorENTITYdeclarations (anti-XXE protection).
File and path security checks
Section titled “File and path security checks”The analyzer automatically rejects uploads containing:
- Path traversal / Zip-Slip: absolute paths,
..segments, backslashes\, or null bytes. - Symlinks and special entries: symbolic links inside the ZIP archive.
- ZIP bombs: excessive compression ratios or uncompressed sizes.
- Disallowed extensions:
.exe,.dll,.so,.dylib,.bat,.cmd,.ps1,.sh,.bash,.msi,.jar,.com,.scr,.vbs,.php,.py,.rb. - Unsafe names: resource names or paths containing quotes, shell metacharacters, or characters outside safe ASCII (
[a-zA-Z0-9._/-]).
Static Lua 5.1 analysis
Section titled “Static Lua 5.1 analysis”During preflight, .lua files are inspected statically (never executed on build servers):
- Restricted Lua APIs:
loadstring,load,dofile,loadfile,debug,io,os.execute,string.dump,setfenv,getfenv, and mutable_G. - Disallowed native names:
_G,debug,io,os,package,require,dofile,loadfile,loadstring,load,setfenv,getfenv,rawset,rawget. - Server / client split: scripts declared as
server,client, orsharedinmeta.xmlare classified separately for packaging.
Next step
Section titled “Next step”Once preflight passes cleanly, see Compilation & downloads.