Thread (7 messages) flat view 7 messages, 5 authors, 2016-06-15

Re: [Proposal] Clonable scripts

From: Niels Basjes <hidden>
Date: 2016-06-15 22:58:42

On Mon, Sep 9, 2013 at 11:13 PM, Hilco Wijbenga
[off-list ref] wrote:
On 9 September 2013 13:48, Niels Basjes [off-list ref] wrote:
quoted
So I propose the following new feature:

1) A scripting language is put inside git. Perhaps a version of python
or ruby or go or ... (no need for a 'new' language)
That sounds nice but ...
quoted
2) If a project contains a folder called .githooks in the root of the
code base then the rules/scripts that are present there are executed
ONLY on the system doing the actual commit. These scripts are run in
such a limited way that they can only read the files in the
repository, they cannot do any networking/write to disk/etc and they
can only do a limited set op actions against the current operation at
hand (i.e. do checks, parse messages, etc).
... how would you prevent Ruby/Python/Go/$GeneralProgLang from
executing arbitrary code?
Some kind of sandbox?
quoted
Like I said, this is just a proposal and I would like to know what you
guys think.
I love the idea but I'm not sure how feasible it is. I think you would
be forced to copy an existing language and somehow "make it secure"
(seems like a maintenance nightmare) or to create your own language
(potentially a lot of work). But perhaps something more declarative
might be usable?
As far as I'm concerned it should be the 'best suitable' language for
the task at hand.

-- 
Best regards / Met vriendelijke groeten,

Niels Basjes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help