[JIRA] (JENKINS-57484) Improve API Token "API" capability, esp. for scripting

4 views
Skip to first unread message

wfollonier@cloudbees.com (JIRA)

unread,
May 15, 2019, 9:11:04 AM5/15/19
to jenkinsc...@googlegroups.com
Wadeck Follonier created an issue
 
Jenkins / New Feature JENKINS-57484
Improve API Token "API" capability, esp. for scripting
Issue Type: New Feature New Feature
Assignee: Wadeck Follonier
Components: core
Created: 2019-05-15 13:10
Priority: Major Major
Reporter: Wadeck Follonier

The idea is to provide ways for a script to create more easily API Tokens, revoke them. Also, to provide a default API Token for the admin user.

We need to have such capability for Jenkins X in order to reduce the dependence on the crumb issuer and thus, reduce the code complexity around the authentication they are required to use.

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

blastikman@gmail.com (JIRA)

unread,
Sep 25, 2019, 2:44:02 AM9/25/19
to jenkinsc...@googlegroups.com
blastik . commented on New Feature JENKINS-57484
 
Re: Improve API Token "API" capability, esp. for scripting

as requested in https://github.com/jenkinsci/jenkins/pull/4027#issuecomment-534558658

 
I'm deploying a new Jenkins from scratch on a single host using Docker all on top of AWS. Its authentication mode is set to SAML (using Okta) and we configure it using JCasC (Configuration as code). The deployment strategy we decided is to deploy a new instance each time a configuration change is made. However, in order to give a good experience to our end users, we want to make 2 steps before swapping between old and new release:

  1. Put the old instance in Quiet mode.
  2. Query running builds
  3. When running query builds = 0 then swap the instance. We have no problem on doing that with the API but... the problem is that we depend on one single thing: the API token!

Ideally we would like to add a fix token into JCasC file to be able to connect to the API once Jenkins the host has been configured.
jenkins saml

This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages