codapi icon indicating copy to clipboard operation
codapi copied to clipboard

Feature Request: Include stdout and stderr for each step

Open Zxilly opened this issue 1 year ago • 4 comments

I'm using codapi as a compiled language backend. It should compile the source first then run the binary. During these actions, I want to get the warning compiler print and the stderr from the compiled binary, which is impossible with the current api design.

Zxilly avatar Aug 24 '24 20:08 Zxilly

Not currently planned, see #24 for details:

To be honest, I prefer the current behavior, and I'd rather not add a config switch. I don't currently see enough compelling reasons to complicate this behavior.

nalgeon avatar Nov 09 '24 11:11 nalgeon

Having the build output visible could introduce security risks. You may want to consider doing intake validation using Open Policy Agent or similar. Rego language is written in go, but Microsoft has a Rust port that's incredible fast.

https://github.com/microsoft/regorus

gengle avatar Dec 22 '24 06:12 gengle

@gengle Everything happens in the container. I don't think it poses any additional risk. In fact, the current design would get the same output, you'd just have a hard time separating those outputs.

Zxilly avatar Dec 22 '24 11:12 Zxilly