[JIRA] (JENKINS-40045) Support for secret key credentials in Git Plugin

1 view
Skip to first unread message

srimanthula.radhakrishna@gmail.com (JIRA)

unread,
Nov 25, 2016, 1:47:03 PM11/25/16
to jenkinsc...@googlegroups.com
Radha Krishna Srimanthula created an issue
 
Jenkins / Improvement JENKINS-40045
Support for secret key credentials in Git Plugin
Issue Type: Improvement Improvement
Assignee: Mark Waite
Components: git-plugin
Created: 2016/Nov/25 6:46 PM
Priority: Major Major
Reporter: Radha Krishna Srimanthula

Need support for Secret key authentication credentials in Git Plugin

Currently, a user is able to create credentials (Secret Key) from within the SCM settings - however, the newly created credentials are not available in the drop down.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

srimanthula.radhakrishna@gmail.com (JIRA)

unread,
Nov 25, 2016, 1:47:04 PM11/25/16
to jenkinsc...@googlegroups.com
Radha Krishna Srimanthula updated an issue
Change By: Radha Krishna Srimanthula
Environment: Jenkins 2.33, git-plugin 1. 3 .0.1

srimanthula.radhakrishna@gmail.com (JIRA)

unread,
Nov 25, 2016, 1:47:05 PM11/25/16
to jenkinsc...@googlegroups.com
Radha Krishna Srimanthula updated an issue
 
Jenkins / Improvement JENKINS-40045
Support for secret key credentials in Git Plugin
Change By: Radha Krishna Srimanthula
Environment: Jenkins 2.33, git-plugin 1.3

mark.earl.waite@gmail.com (JIRA)

unread,
Nov 25, 2016, 3:04:01 PM11/25/16
to jenkinsc...@googlegroups.com
Mark Waite assigned an issue to Unassigned
Change By: Mark Waite
Assignee: Mark Waite

mark.earl.waite@gmail.com (JIRA)

unread,
Nov 25, 2016, 3:59:03 PM11/25/16
to jenkinsc...@googlegroups.com
Mark Waite commented on Improvement JENKINS-40045
 
Re: Support for secret key credentials in Git Plugin

The git plugin and git client plugin support username / password credentials (with https protocol URL's) and private key credentials (with ssh and scp protocol URL's).

Can you explain in more detail how you envision "secret key credentials" would work?

The "Injecting Secrets into Jenkins Builds" describes three techniques to inject credentials into a job.

The first, username / password, is supported by the git plugin and git client plugin.

The second, "secret file", seems like it would need significantly more definition of how to express the interaction between the contents of the "secret file" and the git program. Are the contents of the secret file intended to be a private key? If so, they why not express that directly as a private key credentials? Are the contents of the secret file intended to be a username / password pair? If so, then why not express that directly using a username / password credential?

The third "secret text", seems like it would require defining a convention for the environment variable(s) which would carry the private key or the username / password to the git command.

Please clarify how the user of a "secret file" or a "secret text" would use them with the git plugin

mark.earl.waite@gmail.com (JIRA)

unread,
Nov 29, 2016, 8:22:01 AM11/29/16
to jenkinsc...@googlegroups.com
Mark Waite resolved as Duplicate
 
Change By: Mark Waite
Status: Open Resolved
Resolution: Duplicate

tashoyan@gmail.com (JIRA)

unread,
Feb 3, 2019, 5:20:03 AM2/3/19
to jenkinsc...@googlegroups.com
Arseniy Tashoyan commented on Improvement JENKINS-40045
 
Re: Support for secret key credentials in Git Plugin

Currently we need to maintain two credentials for jobs working with GitHub:

  1. Username + private key: to setup a job that takes code from a Git repo by Jenkins Git plugin
  2. Secret Text: to enable the integration with GitHub webhooks provided by Jenkins GitHub plugin

The credentials from the point 1 are not always accessible. For example, a corporate GitHub setup may prohibit to create robot accounts, only personal accounts are allowed. In this case, GitHub leaves only the possibility for the point 2 - Secret Text credential (typically a link looks like this: https://github.com/settings/tokens). Without Secret Text support in Git plugin, the only remaining way is to use a personal GitHub account for Jenkins jobs.

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

mark.earl.waite@gmail.com (JIRA)

unread,
Oct 22, 2019, 9:32:23 PM10/22/19
to jenkinsc...@googlegroups.com
Mark Waite closed an issue as Duplicate
 
Change By: Mark Waite
Status: Resolved Closed
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages