Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-35081

Separate authorization configuration page

XMLWordPrintable

      • Separate the authorization configuration from the project configuration. This allows Jenkins to decide the authorization of builds during configuring projects.
      • When a plugin lists up credentials,
        public ListBoxModel doFillCredentialsIdItems(@AncestorInPath Job project) {
            Authentication auth = Tasks.getAuthenticationOf(project);
            return new StandardUsernameListBoxModel()
                .includeEmptyValue()
                .includeAs(auth, project, StandardUsernameCredentials.class);
        }
        
      • Even if the authorization is changed after the project configuration is saved, it doesn't cause a security issue as the access to the credential is blocked at build time.

      Issues:

      • How to control permissions to configure jobs
        • You don't want to allow other users configure jobs when you use "Run as Specific User".
      • Should the configuration file be separated from config.xml?

            ikedam ikedam
            ikedam ikedam
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: