[JIRA] (JENKINS-58683) Builds from untrusted source on Branch Indexing

2019-09-04 Thread bitwise...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Liam Newman commented on  JENKINS-58683  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Builds from untrusted source on Branch Indexing   
 

  
 
 
 
 

 
 Fair enough, I've returned the priority to Critical. I'm not the owner/maintainer of this plugin, just effected by it.   For security issues like this, you should file an issue under the Jenkins Jira "SECURITY" project. That will likely get more attention that a general functionality issue. See https://jenkins.io/security/ for details.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.200966.1564154958000.6750.1567619700356%40Atlassian.JIRA.


[JIRA] (JENKINS-58683) Builds from untrusted source on Branch Indexing

2019-09-04 Thread bitwise...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Liam Newman updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-58683  
 
 
  Builds from untrusted source on Branch Indexing   
 

  
 
 
 
 

 
Change By: 
 Liam Newman  
 
 
Priority: 
 Major Critical  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.200966.1564154958000.6711.1567611600287%40Atlassian.JIRA.


[JIRA] (JENKINS-58683) Builds from untrusted source on Branch Indexing

2019-09-03 Thread brian.murr...@intel.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Brian J Murrell commented on  JENKINS-58683  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Builds from untrusted source on Branch Indexing   
 

  
 
 
 
 

 
 Is it really appropriate to downgrade a security-impacting issue like this to Major? 
 
Have you tried setting Trusted to "Nobody" as suggested here:
 That's not the behaviour we are looking for though. We want members of the organisation to be able to push PRs from their own GitHub accounts (i.e. as opposed to using branches within the organisation) and have Jenkins build those.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.200966.1564154958000.6109.1567547460171%40Atlassian.JIRA.


[JIRA] (JENKINS-58683) Builds from untrusted source on Branch Indexing

2019-09-03 Thread bitwise...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Liam Newman commented on  JENKINS-58683  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Builds from untrusted source on Branch Indexing   
 

  
 
 
 
 

 
 Brian J Murrell  I agree this is a problem.  Tracking down where it is coming from is a bit more involved, partly because the basic-build-branch plugin currently often doesn't log output about what it observes.  This means that I can't really tell from this output what is going on - why it is choosing to build these PRs instead of rejecting them.  Have you tried setting Trusted to "Nobody" as suggested here: https://issues.jenkins-ci.org/browse/JENKINS-53752?focusedCommentId=373461=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-373461 From what I see that results in the correct behavior, so for truly untrusted cases the filter seems to work:   

Checking pull request#10 (not from a trusted source) ‘Jenkinsfile’ found Met criteria Changes detected: PR-10-head (badd9a4f697a55c573b4d4fbabb61870e8efa4ea → e9e963e7ebfd5a54874c8962a9108930edcbb421) Loading trusted files from base branch master at bc1bf622bedeb9a04debfa2236620eb0edac6dc6 rather than e9e963e7ebfd5a54874c8962a9108930edcbb421 No automatic build triggered for PR-10-head (not from a trusted source)
   You could then specific users to still build for.   To be clear, there is a bug here and it should be fixed, but it will take some work to isolate.       
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.200966.1564154958000.6107.1567544521163%40Atlassian.JIRA.


[JIRA] (JENKINS-58683) Builds from untrusted source on Branch Indexing

2019-09-03 Thread bitwise...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Liam Newman updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-58683  
 
 
  Builds from untrusted source on Branch Indexing   
 

  
 
 
 
 

 
Change By: 
 Liam Newman  
 
 
Priority: 
 Critical Major  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.200966.1564154958000.6105.1567544461672%40Atlassian.JIRA.


[JIRA] (JENKINS-58683) Builds from untrusted source on Branch Indexing

2019-07-26 Thread brian.murr...@intel.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Brian J Murrell created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-58683  
 
 
  Builds from untrusted source on Branch Indexing   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Unassigned  
 
 
Components: 
 basic-branch-build-strategies-plugin  
 
 
Created: 
 2019-07-26 15:29  
 
 
Environment: 
 Same as JENKINS-58618  
 
 
Priority: 
  Critical  
 
 
Reporter: 
 Brian J Murrell  
 

  
 
 
 
 

 
 Using the same configuration as is detailed in JENKINS-58618, I am also finding that PRs that should not be built because they are from untrusted sources will get built during the Branch Indexing: 

 
Checking pull request #814
 (not from a trusted source)
 'Jenkinsfile' found
 Met criteria
Changes detected: PR-814 (null → [redacted])
Connecting to https://api.github.com to check permissions of obtain list of [redacted] for [redacted]/[redacted]
Loading trusted files from base branch master at [redacted] rather than [redacted]
Scheduled build for branch: PR-814
 

 You can see that it was determined to be untrusted and reverted to the Jenkinsfile from the origin instead of the PR, but shouldn't the setting in: https://issues.jenkins-ci.org/secure/attachment/48061/image-2019-07-23-10-30-22-210.png mean that it's not even run at all?