-
Notifications
You must be signed in to change notification settings - Fork 2k
Travis CI webhooks shouldn't be static #898
Comments
Good point @mleanos Yeah @ilanbiala I actually don't think we even need it because it already exists in gitter's integration area, and if not we can add it manually from gitter. |
@lirantal I'm pretty sure Gitter's integration menu says to add that in, but if you see somewhere in the settings that says otherwise, go for it. |
I would think this is required, but I am not sure. Technically the only time this would come in to play is when someone opens a PR. Yes, it might show events if someone opens a PR to another fork, but I don't think it would happen that often. I guess the only thing we should be concerned about is if we are ok with this webhook being public? |
@rhutchison You're right about when this would show up, as a notification in the Gitter room. Whenever someone has that webhook in their travis.yml file, it will trigger the event notifications if their repo is ran through the Travis CI build process. I'm not sure if the only likely cause would be from PR's from a fork. What happens if someone is running their codebase through Travis CI by other means. My concern is mostly with the privacy of the user's of this project. A few times this week, I saw notifications coming into the Gitter room from a fork. The user probably didn't even know this was happening; and I think this could have privacy implications. |
imho, we should leave this as-is. I value information over any privacy concerns. RE: security, if someone takes the webhook and we start to see unrelated project activity on this webhook, then the project owners can just delete the webhook. |
I'll take a look and see if we can somehow integrate it without sharing the webhooks key on the repository |
Guys, I couldn't find anything specific about the webhooks integration. I've taken a look at other projects and they also specify the webhooks key in their .travis.yml. I'm fine if you want to research this a bit more, otherwise I'll close it. |
@lirantal What about exploring the use of env/config's for the webhook? Or what is described here.. http://docs.travis-ci.com/user/environment-variables/#Defining-Variables-in-Repository-Settings |
I'll try that and we'll see if it works. |
@codydaig I'm resolved to think this isn't really an issue; at least not as much as I thought it was initially. In order for this to cause issues for a user, they'd have to enable the Travis Web Hooks on their repository. So that seems like a conscious effort on their part. |
@lirantal do we want to bother with this or should we just close? |
…-coded into the travis config file
PR for it: #1004 - I noticed that when the build triggers then it sends information to the gitter room. I'm not sure if that's because travis is parsing the I created a variable in travis-ci.org for us, and added it to the |
@lirantal if it works, sounds good! |
@lirantal I couldn't quite figure out if Travis parsing the |
Ok, so I'll go ahead and merge. |
# By Liran Tal (89) and others # Via Liran Tal (159) and others * 'master' of https://github.com/meanjs/mean: (306 commits) Enable log options for Morgan Lock mongoose version to a working version updating profile upload with a new version of multer fixes meanjs#898 - addressing the issue where the webhook API is hard-coded into the travis config file Favicon invalid path [docs] Information about Contributing Update package.json adding karma coverage for grunt Added Ruby and Sass to requirements with install directions removing keepAlive conf to fail travis if e2e tests fail Add ESLint support Format code according to ESLint rules adding tests for directives renaming strength meter, hiding when password field is empty, and refactoring directives to use $validators updating travis to support installing a local mail server adding more API tests Global Mocha timeout Synchronous tests Formatting and Indentation Seed options - logResults ... Conflicts: config/config.js
The webhooks defined here are static. This will cause activity notifications, for repo's originating from this codebase, to be sent to the meanjs/mean Gitter room. https://github.com/meanjs/mean/blob/master/.travis.yml#L19
If a user of this project doesn't change the settings in travis.yml, their project will use this webhook whenever it runs through the Travis CI build process. I don't think this is a desirable behavior.
I'm not too familiar with Travis CI, but I did some research on this subject. This led me to two possible options to solve this issue...
I don't really have a way (that I know of) to test these types of settings/variables for Travis CI. I'm hoping someone might have some insight into this issue.
@lirantal @ilanbiala @codydaig @rhutchison Any thoughts/ideas?
The text was updated successfully, but these errors were encountered: