hoto / jenkins-credentials-decryptor Goto Github PK
View Code? Open in Web Editor NEWCommand line tool for dumping Jenkins credentials.
License: MIT License
Command line tool for dumping Jenkins credentials.
License: MIT License
It looks like most secrets are encrypted by the Secret class. This however does not seem to be the case with SecretBytes which has it's own implementation. This seems to invalidate the assumption made here which makes the code take the wrong branch (else). Forcing the use of decryptNewFormatCredentials
unfortunately doesn't fix the issue.
when migrating Jenkins, it would be better to let this tool optionally output in JSON format. So that we can automate the following process easier with other tools.
we have been requested to use Ansible vault to source control the Jenkins Credentials. But doing several dozens of them one by one is too tedious.
Hi there
I was trying to decrypt credentials from a Jenkins version 2.190.1. Then it went error with message:
`
2023/03/04 17:19:17 Error. Decrypted hudson secret does not contain expected checksum.
Expected checksum keyword:
::::MAGIC::::
Decrypted secret:
panic: Error. Decrypted hudson secret does not contain expected checksum.
Expected checksum keyword:
::::MAGIC::::
Decrypted secret:
goroutine 1 [running]:
log.Panic(0xc00003ff68, 0x1, 0x1)
/opt/hostedtoolcache/go/1.14.10/x64/src/log/log.go:351 +0xac
main.check(...)
/home/runner/work/jenkins-credentials-decryptor/jenkins-credentials-decryptor/cmd/jenkins-credentials-decryptor/main.go:38
main.main()
/home/runner/work/jenkins-credentials-decryptor/jenkins-credentials-decryptor/cmd/jenkins-credentials-decryptor/main.go:23 +0x23e
`
I also tried other tools to decrypt it. Every tool says it cant find ":::MAGIC:::".
We are using LDAP binding. We need to include the binding username and encrypted passwords in Jenkins config.xml file. We need to be able to the ability to generate the encrypted password in the case when the binding password gets updated. Thanks in advance.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.