-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Properly handle multiple webhook triggers for a BuildConfig #8551
Comments
not true... I like being able to trigger builds from different repos with different secrets so I can revoke just one |
@liggitt well you can't today since the existing implementation is broken :) |
then we should fix that |
the issue here is this code: I guess we should be iterating all the triggers of type Generic and checking if the supplied secret matches any of them, though something about that bothers me since it makes it easier to brute force guess a secret (each guess you make is automatically tried against all possible matches). |
i'm on it, will submit a PR shortly. |
Currently the buildConfig trigger array can hold multiple triggers per one type - eg. multiple github/generic triggers. This could lead to a confusion since there is no point to have multiple triggers of one type and so it should be limited one per type.
Based on conversation with @bparees
The text was updated successfully, but these errors were encountered: