Security/sandbox system commands rebased#1667
Conversation
0ef046d to
34b7dc9
Compare
1698d35 to
0e08430
Compare
ba2a673 to
41d42bb
Compare
41d42bb to
795c7ac
Compare
|
@RinZ27 Here's a revised PR. Let me know if this meets your concerns. In the previous PR, some commands did not report $Failed, but instead returned empty lists or some sort of value of the type that was supposed to be returned. I think it is better to report $Failed, since errors are caught earlier and do not cascade too much beyond the point where things start to go wrong. |
|
Thanks for the cleanup, @rocky. The decorator approach is much cleaner and avoids the boilerplate I was adding to each function. I also agree that returning |
Thanks for noting the problem, working on it, and keeping with it. (Side note: some of the commits and mistakes feel like the kinds of responses I get when I use various AI tools. These things sometimes make these weird, wacky changes tacitly.)
Thanks. We could use help on the Django side to fix this. I'd appreciate it if you would put in PRs for the adjustments. Also, we probably need to alter mathicsscript so that it rejects Lots to do! |
|
BTW, I suspect this won't be the last of this, and that there's more to do. Expect more iterations. |
|
@rocky I'm up for the next steps. I'll dive into |
Revise #1660 Disallow various shell escape and OS/environment queries in a sandboxed environment. Rename SANDBOX variable MATHICS3_SANDBOX