Replies: 5 comments 7 replies
-
|
I have seen What is your usecase @ioquatix? |
Beta Was this translation helpful? Give feedback.
-
|
I am not a fan. Install scripts are a recurring cause of security issues, particularly credential harvesting. |
Beta Was this translation helpful? Give feedback.
-
|
@jchestershopify I agree with you, but according to the current interface, that is already possible. The only solution to that would be to use a sandbox for building native extensions. Which, I think is probably a good idea, but would be a totally separate issue. Assuming that we just create a My use case is to use custom build tools, i.e. code which doesn't use any of the existing mechanisms. To be frank, the fact we have things like |
Beta Was this translation helpful? Give feedback.
-
|
@ioquatix what kind of build tools? |
Beta Was this translation helpful? Give feedback.
-
|
I actually agree with ioquatix on this. There is no logical reason I can think of why this should not be possible. There is (at the least) one valid concern that needs to be handled, e. g. if is has a malicious goal, but this is a separate discussion and can be handled - it should not be used as rationale against this feature. So in short, I think ioquatix' request makes sense and should be implemented and documented. ioquatix wrote:
Right, and as stated I agree with the request. One still has to be careful, even without a malicious case, people may do something accidental and end up with something they may not have wanted. As said this can be handled, but I think we also need to specify what to do, how to handle it, how it is documented. Perhaps it may help if you could e. g. show the full tasks done by the proposed use cases, and look through what could possibly go awry (or not); and then ideally have this also documented so people clearly see what is done and how. It is IMO better to think this through and have everything documented up-front; and as I said, I agree with the idea behind the proposal. We have to keep in mind that: a) malicious use cases Edit: Another thing I was thinking ... does this create/delete files/directories? If so then we also should think about it, e. g. how people wanted to have reproducible builds. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
https://github.com/rubygems/rubygems/blob/451ac56078a3deaacef640906070d3d8f7502570/lib/rubygems/ext/builder.rb#L122-L138
Can we add
/\.rb/or something that matches scripts ending in.rband just run them with the Ruby interpreter? The current behaviour is inflexible.Beta Was this translation helpful? Give feedback.
All reactions