-
|
I would like to use yq to modify a user-supplied yaml file, with a user-supplied expression. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
I wouldn't recommend it - it wasn't designed for that and I can't guarantee any security for allowing end users to provide expressions. It would be like allowing end users to specify there own SQL query.
If you had to do it, I'd run |
Beta Was this translation helpful? Give feedback.
I wouldn't recommend it - it wasn't designed for that and I can't guarantee any security for allowing end users to provide expressions. It would be like allowing end users to specify there own SQL query.
loadexpression - https://mikefarah.gitbook.io/yq/operators/loadIf you had to do it, I'd run
yqin a container (e.g. docker/podman/vm) and make sure it only had access to …