You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are working on a project where many developers can create and push their own branches in the repository. Since NuxtHub automatically deploys every branch by default, we are concerned that this could lead to some security issues. In particular, we are concerned that an attacker (using a hacked GitHub account) could push malicious code and gain access to our tokens from both NuxtHub and Cloudflare.
We could change our GitHub action to only deploy the main branch and only allow write actions to the main branch via pull requests. However, we would like to know more about this topic. I believe there are protections in place, but I have not been able to find clear documentation on the subject. Could someone on the team explain how this is handled?
We are also wondering if a breach in one project could affect the other projects in the team, or if there is a separation between them.
Thank you very much.
The text was updated successfully, but these errors were encountered:
If the attacker has the user token and the project key, he can deploy via local terminal (its a feature ^^)
I have a PR where I document how to build a gitlab-ci. I added rules, which deploys automatically only in main and staging branches. You have the ci code, so you are free to change the rules like you want.
The most valuable data is the user access token. Secure this as good as you can (do not store it in the repo), then you should be good.
Also change your nuxthub user access token every X months.
Hello everyone,
We are working on a project where many developers can create and push their own branches in the repository. Since NuxtHub automatically deploys every branch by default, we are concerned that this could lead to some security issues. In particular, we are concerned that an attacker (using a hacked GitHub account) could push malicious code and gain access to our tokens from both NuxtHub and Cloudflare.
We could change our GitHub action to only deploy the
main
branch and only allow write actions to themain
branch via pull requests. However, we would like to know more about this topic. I believe there are protections in place, but I have not been able to find clear documentation on the subject. Could someone on the team explain how this is handled?We are also wondering if a breach in one project could affect the other projects in the team, or if there is a separation between them.
Thank you very much.
The text was updated successfully, but these errors were encountered: