-
Bug
-
Resolution: Fixed
-
Major
Various build steps (or other code run during builds) ought to be checking permissions. For example, you should only be able to trigger a downstream build if "you" would otherwise have permission to schedule that job manually. Similarly for accessing artifacts, running on secure slave nodes, and so on.
Unfortunately in Jenkins currently all builds run in SYSTEM, i.e. effectively having all permissions, and it is up to each build step to do its own checks. Worse, there is no clear authentication to associate with the build. If it was started manually by a particular user, you could use that authentication, but other causes do not lead to a clear user name.
There should be some (probably extensible) system of associating an Authentication with a given Run, either based on its Cause or something else such as the last User to configure the Job.
- depends on
-
JENKINS-18285 Executor should carry Authentication for better access control
- Resolved
-
JENKINS-22949 QueueItemAuthenticator fallback behavior cleanup
- Resolved
-
JENKINS-22397 A Trigger should be able to be a DependencyDeclarer
- Resolved
- is blocking
-
JENKINS-13502 Editing any job removes inaccessible downstream jobs from all accessible jobs
- Resolved
-
JENKINS-14999 Copy Artifact plugin: Unable to find project for artifact copy when using a build parameter
- Closed
-
JENKINS-13222 Allow job selection with fixed job names to contain variables without requiring job permissions for authenticated users
- Closed
- is duplicated by
-
JENKINS-19922 "Build after other projects are built" job trigger causes permission check errors in case of enabled security
- Resolved
- is related to
-
JENKINS-22472 CommandDuringBuild not automatically authenticated
- Resolved
-
JENKINS-22821 NPE when triggering downstream job
- Resolved
-
JENKINS-23191 ReverseBuildTrigger.threshold not consistently saved
- Resolved
-
JENKINS-23686 Trigger "Build after other projects" does not work
- Resolved
-
JENKINS-25758 NPE when triggering downstream job (again)
- Resolved
-
JENKINS-14992 Can add "build other projects" trigger to a project we cannot otherwise configure
- Resolved