-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Repo bootstrap should fail if cannot commit to repo before creating any resources on the cluster #410
Comments
@roi-codefresh If I use |
@aperullo the Do you mean it should allow to |
@roi-codefresh thanks for responding. Yes in my case I've already bootstrapped a repo with installation-mode flat. So repo and app are the same repository. Giving it a token with write repository permission is a security concern for us because the autopilot secret becomes a credential template for the rest of the git source. (Which is still desirable, since we can then add other repos to watch after recover, we just don't want the token to have write permission over all of the git-server). |
Got you! I think that makes sense that we wouldn't need to commit anything when Thanks for pointing that out :) |
You're the best! Thank you so much! |
will be release with version |
Today if you try to bootstrap on an existing repo without proper write permissions or if the repository has branch protection rules we will only fail when trying to commit the manifests to the repository, which happens after we apply them to the cluster.
We need to fail early to prevent applying things to the cluster when we know we are going to fail to commit them later to the repository.
The text was updated successfully, but these errors were encountered: