New plugin - Support for Azure credentials via the Kubernetes Credentials Provider

110 views
Skip to first unread message

Tue Sørensen Dissing

unread,
Jan 12, 2024, 10:52:40 AM1/12/24
to jenkin...@googlegroups.com

Hi Jenkins Dev,

 

We need to use Azure to provision build agents and therefore need to store the azure creds (service principal or a managed identity) as a jenkins credential. As we are deploying on Kubernetes we rely on the Kuberneters Credentials Provider plugin for all our credentials.

This plugin does not currently support the azure credentials types.

 

I have created this PR in order to support both the service principal and the managed identity, but as indicated here, this is best supported by a separate plugin.

 

Can’t find any existing support for this. I therefore believe the best way forward are to implement a new plugin to handle this – just as is the case with for example https://plugins.jenkins.io/bitbucket-kubernetes-credentials/. Please let me know if there’s another way that is preferred.

 

Suggested name: azure-kubernetes-credentials-plugin.

 

 

Venlig hilsen

 

Tue Sørensen Dissing

Chefkonsulent

DevOps

 

+45 72 37 77 61

Tue.D...@ufst.dk

 

Udviklings- og Forenklingsstyrelsen

 

Udviklings- og Forenklingsstyrelsen

Osvald Helmuths Vej 4, 2000 Frederiksberg

www.ufst.dk

 

Sådan behandler vi persondata

Udviklings- og Forenklingsstyrelsen er en del af Skatteforvaltningen

 

Valentin Delaye (jonesbusy)

unread,
Jan 13, 2024, 6:52:31 AM1/13/24
to Jenkins Developers
Hi,


Best way is to start with

mvn archetype:generate -B -DarchetypeGroupId=io.jenkins.archetypes -DarchetypeArtifactId=empty-plugin -DhostOnJenkinsGitHub=true -DarchetypeVersion=1.23 -DartifactId=<artifact id>

And then implement the extension and tests. It will ensure you have all the require files matching the archetype.

If you follow correctly all steps, the plugin can be hosted and released in matter of days on the plugin center.

Regards,

Tue Dissing

unread,
Jan 18, 2024, 3:52:05 AM1/18/24
to Jenkins Developers
Reply all
Reply to author
Forward
0 new messages