1
0
Fork 0
mirror of https://github.com/external-secrets/external-secrets.git synced 2024-12-15 17:51:01 +00:00
external-secrets/docs/examples-jenkins-kubernetes-credentials.md
Moritz Johner 61340a78ed
feat: anchore and jenkins guides with snippets (#682)
Co-authored-by: Lucas Severo Alves <lucassalves65@gmail.com>
Co-authored-by: Surjit Bains <surjit.bains@gmail.com>
2022-02-07 12:14:06 +01:00

1.8 KiB

Getting started

Jenkins is one of the most popular automation servers for continous integration, automation, scheduling jobs and for generic pipelining. It has an extensive set of plugins that extend or provide additional functionality including the kubernetes credentials plugin. This plugin takes kubernetes secrets and creates Jenkins credentials from them removing the need for manual entry of secrets, local storage and manual secret rotation.

Examples

The Jenkins credentials plugin uses labels and annotations on a kubernetes secret to create a Jenkins credential.

The different types of Jenkins credentials that can be created are SecretText, privateSSHKey, UsernamePassword.

SecretText

Here are some examples of SecretText with the Hashicorp Vault and AWS External Secrets providers:

Hashicorp Vault

{% include 'vault-jenkins-credential-sonarqube-api-token-external-secret.yaml' %}

AWS Secrets Manager

{% include 'aws-jenkins-credential-sonarqube-api-token-external-secret.yaml' %}

UsernamePassword

Here are some examples of UsernamePassword credentials with the Hashicorp Vault and AWS External Secrets providers:

Hashicorp Vault

{% include 'vault-jenkins-credential-harbor-chart-robot-external-secret.yaml' %}

AWS Secrets Manager

{% include 'aws-jenkins-credentials-harbor-chart-robot-external-secret.yaml' %}

basicSSHUserPrivateKey

Here are some examples of basicSSHUserPrivateKey credentials with the Hashicorp Vault and AWS External Secrets providers:

Hashicorp Vault

{% include 'vault-jenkins-credential-github-ssh-access-external-secret.yaml' %}

AWS Secrets Manager

{% include 'aws-jenkins-credential-github-ssh-external-secret.yaml' %}