Re:Yglu: YAML augmented with an expression language
by cppforlife on Saturday February 01, 2020 @05:05PM
(#22213564)
https://get-ytt.io (i am one of the authors), one of the tools that inspired yglu, has been designed from ground up with an eye towards security even though its turing complete.
it is based on starlark which is a runtime that does not have facilities to do networking, fs access, etc. building on that, ytt does not allow/provide any kind of non-deterministic operations (access to time, disk, network, random, etc). it expects user to specify explicitly which files to load via -f flag (ie ytt template cannot load random template from fs).
there are several computation attacks that are currently possible (eg infinite loop) but that could be easily addressed thru global timeout for example.
check out interactive playground at https://get-ytt.io
As for YAML itself, it is handy to have some advanced functionality in a non-turing complete serialization format for the sake of things like security. It's not perfectly analogous, but PostScript is an example of a format that ideally should have been just a descriptive format for the purposes it was intended for, but being Turing complete makes it a security risk