Prevent code execution #33511
Answered
by
rarkins
Coda1304
asked this question in
Request Help
Prevent code execution
#33511
Replies: 1 comment 2 replies
-
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
Coda1304
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How are you running Renovate?
Self-hosted Renovate
If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.
Gitlab - Renovate 39.62.3
Please tell us more about your question or problem
Hello,
we are setting up a central Renovate instance in our company. Users should have the option to invite themselves self-service.
In the documentation it is mentioned that there is an inherent risk of insider attacks as Renovate executes code from the repository. Link to there relevant part of the documentation. Due to the size of our company we can't check each repository manually as it is stated there.
In order to minimize this risk we are now disabling
postUpgradeTasks
and all wrapper that we find which execute arbitrary code from the repository. In the documentation onlygradlew
is mentioned, but we aren't sure ifgradlew
is the only one.Why are we trying to do this?
Someone inside the company was already showing in a POC that they could extract the used Renovate Token to interact with our Gitlab instance. With this token they have the option to impersonate our used Service Account and push any code changes with Developer/Maintainer permissions to all repositories. This obviously is a huge risk.
Therefore I have the following questions:
binarySource=docker
, but as we are running Renovate inside a Kubernetes cluster and the docker socket isn't available, this doesn't seem to be an option. In some Github issues this was mentioned to work, but unfortunately without any explanation or link to further documentation. See: Issue-19961Thank you very much for your support.
Logs (if relevant)
No response
Beta Was this translation helpful? Give feedback.
All reactions