Sometimes, we need to get the credentials that are stored in Jenkins in plaintext. Jenkins does not allow to view the credentials rather only update the credentials. So in this blog post we will go through the steps to recover the credentials from Jenkins.
Credential Types
Jenkins gives the options of storing credentials in the following ways:
- Username with password
- GitHub App
- SSH Username with private key
- Secret file
- Secret text
- Certificate
Common key ids we are interested in that are used by Jenkins to store credentials:
hudson.util.Secret
: used for generic secretscom.cloudbees.plugins.credentials.SecretBytes.KEY
: used for some credentials types
Recovering Credentials
In this section, we will be recovering each type of credential. I have created sample credentials for each type as shown below:
Script Console
Groovy scripts can be run in the script console with the URL: <https://jenkins-url:jenkins-port/script>
Running below one-liner will display all the saved credentials:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
com.cloudbees.plugins.credentials.SystemCredentialsProvider.getInstance().getCredentials().forEach{println it.dump().replace(' ', '\n')} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl@a13690e7 | |
username=admin | |
password=JRINDIDK#KE#$23 | |
usernameSecret=false | |
id=admin-creds | |
description=admin-creds | |
scope=GLOBAL> | |
<org.jenkinsci.plugins.plaincredentials.impl.FileCredentialsImpl@83e47679 | |
fileName=secret.file | |
secretBytes={liIpkIvO5gUHlUwyMtt+SxDuIsFctDWUi+ftpLqdDUewWgcPU5+meBKANjBr+WiTDsaFm8nEPIW2rzD5Y5MCZA==} | |
data=null | |
id=secret-file | |
description=secret-file | |
scope=GLOBAL> | |
<org.jenkinsci.plugins.plaincredentials.impl.StringCredentialsImpl@83eac62a | |
secret=THIS_IS_A_SECRET_TEST | |
id=secret-text | |
description=secret-text | |
scope=GLOBAL> | |
<com.cloudbees.plugins.credentials.impl.CertificateCredentialsImpl@a976929b | |
keyStoreSource=UploadedKeyStoreSource{uploadedKeystoreBytes=******} | |
password=test@123 | |
keyStore=java.security.KeyStore@2df6e05 | |
keyStoreLastModified=0 | |
id=cert-test | |
description=cert-test | |
scope=GLOBAL> | |
<com.cloudbees.jenkins.plugins.sshcredentials.impl.BasicSSHUserPrivateKey@21bc2d37 | |
passphrase=pass@456$% | |
privateKeySource=com.cloudbees.jenkins.plugins.sshcredentials.impl.BasicSSHUserPrivateKey$DirectEntryPrivateKeySource@1fe33b71 | |
privateKeys=null | |
privateKeysLastModified=0 | |
username=local-admin | |
usernameSecret=false | |
id=ssh-test | |
description=ssh-test | |
scope=GLOBAL> | |
<org.jenkinsci.plugins.github_branch_source.GitHubAppCredentials@e24f2f68 | |
appID=345123567 | |
privateKey=null | |
apiUri= | |
owner=null | |
cachedToken=null | |
byOwner=null | |
id=github-app-test | |
description=github-app-test | |
scope=null> |
As seen above the script shows all the credential details in plaintext. However, you must have noticed that some of the credential types like SecretBytes are still not shown in plain text.
The XML file containing the credential details can be found at $JENKINS_HOME/credentials.xml
The credentials.xml file contents generated by Jenkins for this example:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version='1.1' encoding='UTF-8'?> | |
<com.cloudbees.plugins.credentials.SystemCredentialsProvider plugin="credentials@1271.v54b_1c2c6388a_"> | |
<domainCredentialsMap class="hudson.util.CopyOnWriteMap$Hash"> | |
<entry> | |
<com.cloudbees.plugins.credentials.domains.Domain> | |
<specifications/> | |
</com.cloudbees.plugins.credentials.domains.Domain> | |
<java.util.concurrent.CopyOnWriteArrayList> | |
<com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl> | |
<scope>GLOBAL</scope> | |
<id>admin-creds</id> | |
<description>admin-creds</description> | |
<username>admin</username> | |
<password>{AQAAABAAAAAQVuOX1eEHPfIccZePpiM0dzQpUzwEaHWQQjLGLf+gsAA=}</password> | |
<usernameSecret>false</usernameSecret> | |
</com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl> | |
<org.jenkinsci.plugins.plaincredentials.impl.FileCredentialsImpl plugin="plain-credentials@143.v1b_df8b_d3b_e48"> | |
<scope>GLOBAL</scope> | |
<id>secret-file</id> | |
<description>secret-file</description> | |
<fileName>secret.file</fileName> | |
<secretBytes>{liIpkIvO5gUHlUwyMtt+SxDuIsFctDWUi+ftpLqdDUewWgcPU5+meBKANjBr+WiTDsaFm8nEPIW2rzD5Y5MCZA==}</secretBytes> | |
</org.jenkinsci.plugins.plaincredentials.impl.FileCredentialsImpl> | |
<org.jenkinsci.plugins.plaincredentials.impl.StringCredentialsImpl plugin="plain-credentials@143.v1b_df8b_d3b_e48"> | |
<scope>GLOBAL</scope> | |
<id>secret-text</id> | |
<description>secret-text</description> | |
<secret>{AQAAABAAAAAgz/HEpcKgi0OJaIQfIG/riXUHMqfxiphcS+V6NEmseyw6aEeEEOZEc3A67jq7TJAY}</secret> | |
</org.jenkinsci.plugins.plaincredentials.impl.StringCredentialsImpl> | |
<com.cloudbees.plugins.credentials.impl.CertificateCredentialsImpl> | |
<scope>GLOBAL</scope> | |
<id>cert-test</id> | |
<description>cert-test</description> | |
<keyStoreSource class="com.cloudbees.plugins.credentials.impl.CertificateCredentialsImpl$UploadedKeyStoreSource"> | |
<uploadedKeystoreBytes>{U3UYQkP64q0HXi21gHXfan6BJXNDOPcKpUxzXP3/3uiaY6PeYq/CH7RMSUl8jdYIPP/0AcHc7W+TY/1wEnFoDg3DkNUxLKUm0azwbEycN0oozpR8hCZTCgSZTVW4QVEwCdVruVioQzyPd1PljWcx8hCMrZYC3nyr1Ngk6OZAcQlQT7kz1oOO3mlXELRuySES4QaiwuzxEqLpUQiTFEqiFS3LnMg7/lYOHJeb0zSlpui4i8n4pCHadxm+b4r9nB5KlzbXWemfAJoVM5cVVt/T9shM8tVm9hcLkenDG8rw0iwW/I5lZCFbk7LvGz3aEe+QzOTj5TmxBBONAlvTAi9xDdBGQju7BdPWVzznczO2Y+G9pxk7QEehI+f6ulVx8uq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+LFbnu7H6QGumMzG8Dr/SLSqkMQEI2NtK8VVPEXC9A4xeFIhSHVZL4S7rA442yRFQhOXxuH0Y8nyGlGAMJFh1c8ZD92tcI4roP3oKZzJrqTmJKbzL1Nw6qQuOWadFLFIPfhdexGRBLjMKLaCYbSilcywmMI5D0ldbJiVXeqyuiZGF0MfIknPNn63250VavyLjKpJocgUfByKwNgDKY+zCd6TS0C9xUIFMEXIJOVV4QbVVZmfAUHRXXWUjLfYZliloWXHEc3RkfEzyBcYT3FW2MnCPpn5DdQuusLG9mQ94OPU1rxMxfhrBMKn5kk6UM7r8QnKD1UGoD/akY6+khfIE8ghWeT2ZU//FxWUUC28H+DUaHVWwmoesP8jaIL46uw2rUtVylX5L/7MCp3MBw052CDV56Z9H0N2bN2GDJjrkSB4WUMiEtFgJQJtc1tD/Bnwj/wSv0kcRrutRMVAJIUSuZt1QJjvSxtzXseLTKGRluHZFIwtiUx5gblhMFa6reskYYwpcmVIBIew9J+9VLMtGEDrXfCbAjm1zRcXsGzvZiJqQvqfpw56gNOMLw03KESn4isrD8e/P+WQ66M+4aUHrCdBLdDtQQBBChyYCE4vrGa6zzihaqejSkue0IkmAWalWB75uCU/PrxOibUD0CJ0JHRSXA1n8pcn0lqAVR2QwoyP0NUsUyF0ieJpIAyz9m6Jvz16gXxNjqSyHR/ej49npg6SOQijePqwwKxOrqF8z7JawsN+C6Ql3Ovo6XtWC+Kd4DwNKHteMObz3LbcqDt4+mPKzPBsojnxCJhunKg==}</uploadedKeystoreBytes> | |
</keyStoreSource> | |
<password>{AQAAABAAAAAQbOBDcQye98wBa1vTXGb8//RgzUGaNKC5HdL1YY55bXg=}</password> | |
</com.cloudbees.plugins.credentials.impl.CertificateCredentialsImpl> | |
<com.cloudbees.jenkins.plugins.sshcredentials.impl.BasicSSHUserPrivateKey plugin="ssh-credentials@308.ve4497b_ccd8f4"> | |
<scope>GLOBAL</scope> | |
<id>ssh-test</id> | |
<description>ssh-test</description> | |
<username>local-admin</username> | |
<usernameSecret>false</usernameSecret> | |
<passphrase>{AQAAABAAAAAQ7Q9S9E81HXmAn7z9aHREwUUMoEjc2wzm4SIMSDkkf9k=}</passphrase> | |
<privateKeySource class="com.cloudbees.jenkins.plugins.sshcredentials.impl.BasicSSHUserPrivateKey$DirectEntryPrivateKeySource"> | |
<privateKey>{AQAAABAAAAoA6ruIV+0CJ5z3NZ/Kp0g/s+pb9a1GdFIYVMpt8iINWQFjj2TVF5xRSI+N18fpx6M+fs30KTyo7JKMlemZ317p+DuumhnAkLBNZL1iJph1+OC3DBnsc2FHkdRt9kNjQ6+Rz3Ek0QzM4SSK5xY7iEnERewB3XAG9F2wO2/cBZDNUw8Jjsz1mwrCNOJ2ixBoT21o6uylZ5kFjhA8RI/i8hTEZuEL8UoqrSg5f2Hz/d4v7Ul+FMz7d6B8edjLRf0jbl38ZPUbtkgOnS4lnWme+NJ8i+52fBVrgRaTh4bDpbforG9wJplT2+YGgeHTqZqKAL93oCs937uVlmQkkEfQvjkh95OGbUp+SHDXHbipmbJ+78Wxq8QnhB6NDEwoAWkZ97N+IadL1NsPO57Sy9858PzLAqZS32zBbxY38O33Na/ub7sssOzIdePOgyFaBQo9nLYIjiBVoI7xWJ7LMcGUKWUultQ6XhZTBADEOkxw77euYGXVGGxx5F08dml4fTbSkSkRvA7I+zZKVidYopFgvuvINIfNCIpd9Q8DlPpu1fU7rR4WHMOZDKVHI3U+xlvcNia7zrfkZLeTDXU+CJ2o3qtRHY7RyeGkd3sV1Mk6K7f/Ev4pV5pEI+5Bc+F/eM9eg1lCG+jn3Nft+dR1hNUy2rocLM+buWT4rHj74D9VCZnE1WBWzdpna4td6ryuxKhjMkMBcEttI7SY73SVCqpXxOl3Zjc3+WUtnAyyyG+ZqhBoGva159DxVT/PT7HWEfzZd7OgvVIzKqoQ8yI4mIy4AyBJJ5JDU7WpsbbfriDr7Nrqor1jB+X8CURKQXfroNke5iVznCSGiwl429QrciplsiqUSRHe/K9Ai3qNs3UAE1uRGNYVllyyh8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HpfTjHL8rLTMAMvxmRUTe8761zNws7alD4t22RfFRumb4xbMvuJNhcUrs1zjIzv1IvNoVpFDz+tYdAcoCYGpbn6t8UOe3dSL2l6v9QQ/7M73pruP9R51STcki60eJotzb0zv0KLi094sqGIg5v2hA0pwKpWB2E4TnJy9h2qbdb0auzTOMGIg3IpYLCBNrAy++vXhHE0Yf0pSyjrugDODuiby+zhElDoxH/1dcDNdqaRBKKehOPDzJy0Zk2vfkVL7LX+IwzwjRDzw0roMO6uO4vnOSp6gFImo6L04xmllEqEpMySlHPk0vSLloSVQe1xX8N0a9RP24GIv2tXpM26ITzONOcxCWPVOd9JgVPCyWHpaSA4+Uht4evuRsrNuJc1zM5zMhzxdBrxHEdiU/IRdSppu2so1I=}</privateKey> | |
</privateKeySource> | |
</com.cloudbees.jenkins.plugins.sshcredentials.impl.BasicSSHUserPrivateKey> | |
<org.jenkinsci.plugins.github__branch__source.GitHubAppCredentials plugin="github-branch-source@1741.va_3028eb_9fd21"> | |
<id>github-app-test</id> | |
<description>github-app-test</description> | |
<appID>345123567</appID> | |
<apiUri></apiUri> | |
</org.jenkinsci.plugins.github__branch__source.GitHubAppCredentials> | |
</java.util.concurrent.CopyOnWriteArrayList> | |
</entry> | |
</domainCredentialsMap> | |
</com.cloudbees.plugins.credentials.SystemCredentialsProvider>% |
So we will go through each credential type and decrypt them.
1. Username with password
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl> | |
<scope>GLOBAL</scope> | |
<id>admin-creds</id> | |
<description>admin-creds</description> | |
<username>admin</username> | |
<password>{AQAAABAAAAAQVuOX1eEHPfIccZePpiM0dzQpUzwEaHWQQjLGLf+gsAA=}</password> | |
<usernameSecret>false</usernameSecret> | |
</com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl> |
For decrypting the password we run the below script:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
println(hudson.util.Secret.decrypt("{AQAAABAAAAAQVuOX1eEHPfIccZePpiM0dzQpUzwEaHWQQjLGLf+gsAA=}")) |
The password is shown in plaintext:
2. Secret File
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<org.jenkinsci.plugins.plaincredentials.impl.FileCredentialsImpl plugin="plain-credentials@143.v1b_df8b_d3b_e48"> | |
<scope>GLOBAL</scope> | |
<id>secret-file</id> | |
<description>secret-file</description> | |
<fileName>secret.file</fileName> | |
<secretBytes>{liIpkIvO5gUHlUwyMtt+SxDuIsFctDWUi+ftpLqdDUewWgcPU5+meBKANjBr+WiTDsaFm8nEPIW2rzD5Y5MCZA==}</secretBytes> | |
</org.jenkinsci.plugins.plaincredentials.impl.FileCredentialsImpl> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
println(new String(com.cloudbees.plugins.credentials.SecretBytes.fromString("{liIpkIvO5gUHlUwyMtt+SxDuIsFctDWUi+ftpLqdDUewWgcPU5+meBKANjBr+WiTDsaFm8nEPIW2rzD5Y5MCZA==}").getPlainData(), "ASCII")) |
3. Secret Text
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<org.jenkinsci.plugins.plaincredentials.impl.StringCredentialsImpl plugin="plain-credentials@143.v1b_df8b_d3b_e48"> | |
<scope>GLOBAL</scope> | |
<id>secret-text</id> | |
<description>secret-text</description> | |
<secret>{AQAAABAAAAAgz/HEpcKgi0OJaIQfIG/riXUHMqfxiphcS+V6NEmseyw6aEeEEOZEc3A67jq7TJAY}</secret> | |
</org.jenkinsci.plugins.plaincredentials.impl.StringCredentialsImpl> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
println(hudson.util.Secret.decrypt("{AQAAABAAAAAgz/HEpcKgi0OJaIQfIG/riXUHMqfxiphcS+V6NEmseyw6aEeEEOZEc3A67jq7TJAY}")) |
4. Certificate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<com.cloudbees.plugins.credentials.impl.CertificateCredentialsImpl> | |
<scope>GLOBAL</scope> | |
<id>cert-test</id> | |
<description>cert-test</description> | |
<keyStoreSource class="com.cloudbees.plugins.credentials.impl.CertificateCredentialsImpl$UploadedKeyStoreSource"> | |
<uploadedKeystoreBytes>{U3UYQkP64q0HXi21gHXfan6BJXNDOPcKpUxzXP3/3uiaY6PeYq/CH7RMSUl8jdYIPP/0AcHc7W+TY/1wEnFoDg3DkNUxLKUm0azwbEycN0oozpR8hCZTCgSZTVW4QVEwCdVruVioQzyPd1PljWcx8hCMrZYC3nyr1Ngk6OZAcQlQT7kz1oOO3mlXELRuySES4QaiwuzxEqLpUQiTFEqiFS3LnMg7/lYOHJeb0zSlpui4i8n4pCHadxm+b4r9nB5KlzbXWemfAJoVM5cVVt/T9shM8tVm9hcLkenDG8rw0iwW/I5lZCFbk7LvGz3aEe+QzOTj5TmxBBONAlvTAi9xDdBGQju7BdPWVzznczO2Y+G9pxk7QEehI+f6ulVx8uqGL6/kkukMOgQqXZqhW6QwquKpPZRW0EFuVse00c5JvMgzM5gRx8QLz8oCvxRy/YU+3gimTucC12vwGszGuEFRbfiS5slXrDFudcKXq+FUQZRCVLIQY5t2kmdhdeZRBhkve+ALFuL1byalxviVA2W2vCRZ6tQ4bkBDy8ifm01rdv7nxASOmd0T0p32x2mVAIbzE/jD13B+3MH/6mIIt30aJLxVcQrmC3smPFqb+WlkDDXoSwloYHjmBsIK1UHItmK8DOKcIJSoyD0RmjWxzFzHin2T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FW2MnCPpn5DdQuusLG9mQ94OPU1rxMxfhrBMKn5kk6UM7r8QnKD1UGoD/akY6+khfIE8ghWeT2ZU//FxWUUC28H+DUaHVWwmoesP8jaIL46uw2rUtVylX5L/7MCp3MBw052CDV56Z9H0N2bN2GDJjrkSB4WUMiEtFgJQJtc1tD/Bnwj/wSv0kcRrutRMVAJIUSuZt1QJjvSxtzXseLTKGRluHZFIwtiUx5gblhMFa6reskYYwpcmVIBIew9J+9VLMtGEDrXfCbAjm1zRcXsGzvZiJqQvqfpw56gNOMLw03KESn4isrD8e/P+WQ66M+4aUHrCdBLdDtQQBBChyYCE4vrGa6zzihaqejSkue0IkmAWalWB75uCU/PrxOibUD0CJ0JHRSXA1n8pcn0lqAVR2QwoyP0NUsUyF0ieJpIAyz9m6Jvz16gXxNjqSyHR/ej49npg6SOQijePqwwKxOrqF8z7JawsN+C6Ql3Ovo6XtWC+Kd4DwNKHteMObz3LbcqDt4+mPKzPBsojnxCJhunKg==}</uploadedKeystoreBytes> | |
</keyStoreSource> | |
<password>{AQAAABAAAAAQbOBDcQye98wBa1vTXGb8//RgzUGaNKC5HdL1YY55bXg=}</password> | |
</com.cloudbees.plugins.credentials.impl.CertificateCredentialsImpl> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
println(new String(com.cloudbees.plugins.credentials.SecretBytes.fromString("{U3UYQkP64q0HXi21gHXfan6BJXNDOPcKpUxzXP3/3uiaY6PeYq/CH7RMSUl8jdYIPP/0AcHc7W+TY/1wEnFoDg3DkNUxLKUm0azwbEycN0oozpR8hCZTCgSZTVW4QVEwCdVruVioQzyPd1PljWcx8hCMrZYC3nyr1Ngk6OZAcQlQT7kz1oOO3mlXELRuySES4QaiwuzxEqLpUQiTFEqiFS3LnMg7/lYOHJeb0zSlpui4i8n4pCHadxm+b4r9nB5KlzbXWemfAJoVM5cVVt/T9shM8tVm9hcLkenDG8rw0iwW/I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iIHYxQmNDJsKhyNa+5rNGrLLUavYNfrSDNnEg7EwYLZ57iECMl3k/IuZIOpNdMlVZZYGBpQU13RWET+pt+LFbnu7H6QGumMzG8Dr/SLSqkMQEI2NtK8VVPEXC9A4xeFIhSHVZL4S7rA442yRFQhOXxuH0Y8nyGlGAMJFh1c8ZD92tcI4roP3oKZzJrqTmJKbzL1Nw6qQuOWadFLFIPfhdexGRBLjMKLaCYbSilcywmMI5D0ldbJiVXeqyuiZGF0MfIknPNn63250VavyLjKpJocgUfByKwNgDKY+zCd6TS0C9xUIFMEXIJOVV4QbVVZmfAUHRXXWUjLfYZliloWXHEc3RkfEzyBcYT3FW2MnCPpn5DdQuusLG9mQ94OPU1rxMxfhrBMKn5kk6UM7r8QnKD1UGoD/akY6+khfIE8ghWeT2ZU//FxWUUC28H+DUaHVWwmoesP8jaIL46uw2rUtVylX5L/7MCp3MBw052CDV56Z9H0N2bN2GDJjrkSB4WUMiEtFgJQJtc1tD/Bnwj/wSv0kcRrutRMVAJIUSuZt1QJjvSxtzXseLTKGRluHZFIwtiUx5gblhMFa6reskYYwpcmVIBIew9J+9VLMtGEDrXfCbAjm1zRcXsGzvZiJqQvqfpw56gNOMLw03KESn4isrD8e/P+WQ66M+4aUHrCdBLdDtQQBBChyYCE4vrGa6zzihaqejSkue0IkmAWalWB75uCU/PrxOibUD0CJ0JHRSXA1n8pcn0lqAVR2QwoyP0NUsUyF0ieJpIAyz9m6Jvz16gXxNjqSyHR/ej49npg6SOQijePqwwKxOrqF8z7JawsN+C6Ql3Ovo6XtWC+Kd4DwNKHteMObz3LbcqDt4+mPKzPBsojnxCJhunKg==}").getPlainData(), "ASCII")) |
5. SSH Username with private key
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<com.cloudbees.jenkins.plugins.sshcredentials.impl.BasicSSHUserPrivateKey plugin="ssh-credentials@308.ve4497b_ccd8f4"> | |
<scope>GLOBAL</scope> | |
<id>ssh-test</id> | |
<description>ssh-test</description> | |
<username>local-admin</username> | |
<usernameSecret>false</usernameSecret> | |
<passphrase>{AQAAABAAAAAQ7Q9S9E81HXmAn7z9aHREwUUMoEjc2wzm4SIMSDkkf9k=}</passphrase> | |
<privateKeySource class="com.cloudbees.jenkins.plugins.sshcredentials.impl.BasicSSHUserPrivateKey$DirectEntryPrivateKeySource"> | |
<privateKey>{AQAAABAAAAoA6ruIV+0CJ5z3NZ/Kp0g/s+pb9a1GdFIYVMpt8iINWQFjj2TVF5xRSI+N18fpx6M+fs30KTyo7JKMlemZ317p+DuumhnAkLBNZL1iJph1+OC3DBnsc2FHkdRt9kNjQ6+Rz3Ek0QzM4SSK5xY7iEnERewB3XAG9F2wO2/cBZDNUw8Jjsz1mwrCNOJ2ixBoT21o6uylZ5kFjhA8RI/i8hTEZuEL8UoqrSg5f2Hz/d4v7Ul+FMz7d6B8edjLRf0jbl38ZPUbtkgOnS4lnWme+NJ8i+52fBVrgRaTh4bDpbforG9wJplT2+YGgeHTqZqKAL93oCs937uVlmQkkEfQvjkh95OGbUp+SHDXHbipmbJ+78Wxq8QnhB6NDEwoAWkZ97N+IadL1NsPO57Sy9858PzLAqZS32zBbxY38O33Na/ub7sssOzIdePOgyFaBQo9nLYIjiBVoI7xWJ7LMcGUKWUultQ6XhZTBADEOkxw77euYGXVGGxx5F08dml4fTbSkSkRvA7I+zZKVidYopFgvuvINIfNCIpd9Q8DlPpu1fU7rR4WHMOZDKVHI3U+xlvcNia7zrfkZLeTDXU+CJ2o3qtRHY7RyeGkd3sV1Mk6K7f/Ev4pV5pEI+5Bc+F/eM9eg1lCG+jn3Nft+dR1hNUy2rocLM+buWT4rHj74D9VCZnE1WBWzdpna4td6ryuxKhjMkMBcEttI7SY73SVCqpXxOl3Zjc3+WUtnAyyyG+ZqhBoGva159DxVT/PT7HWEfzZd7OgvVIzKqoQ8yI4mIy4AyBJJ5JDU7WpsbbfriDr7Nrqor1jB+X8CURKQX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4dhLRYZ15fjwmSKvq6rxiMpUodrTn+xbJGyt72rwJhmQJE2SKbr9zOOHpfTjHL8rLTMAMvxmRUTe8761zNws7alD4t22RfFRumb4xbMvuJNhcUrs1zjIzv1IvNoVpFDz+tYdAcoCYGpbn6t8UOe3dSL2l6v9QQ/7M73pruP9R51STcki60eJotzb0zv0KLi094sqGIg5v2hA0pwKpWB2E4TnJy9h2qbdb0auzTOMGIg3IpYLCBNrAy++vXhHE0Yf0pSyjrugDODuiby+zhElDoxH/1dcDNdqaRBKKehOPDzJy0Zk2vfkVL7LX+IwzwjRDzw0roMO6uO4vnOSp6gFImo6L04xmllEqEpMySlHPk0vSLloSVQe1xX8N0a9RP24GIv2tXpM26ITzONOcxCWPVOd9JgVPCyWHpaSA4+Uht4evuRsrNuJc1zM5zMhzxdBrxHEdiU/IRdSppu2so1I=}</privateKey> | |
</privateKeySource> | |
</com.cloudbees.jenkins.plugins.sshcredentials.impl.BasicSSHUserPrivateKey> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
println(hudson.util.Secret.decrypt("{passphrase}")) | |
println(new String(com.cloudbees.plugins.credentials.SecretBytes.fromString("{SSH-PrivateKey}").getPlainData(), "ASCII")) |
6. GitHub App
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<org.jenkinsci.plugins.github_branch_source.GitHubAppCredentials@e24f2f68 | |
appID=345123567 | |
privateKey= | |
apiUri= | |
owner= | |
cachedToken= | |
byOwner= | |
id=github-app-test | |
description=github-app-test | |
scope=null> |