반응형

1. 일단 Jenkins > Manage crendeitals 페이지에 간다.

2. Update (수정) 버튼 클릭 후 가려진 scret key 혹은 password를 F12 클릭 > 검사할 요소 선택 후,

해당 html 태그에 클릭하낟.

 

3. 요소 보기 후 암호화된 코드가 나온다. 해당 암호를 복사해준다.

4. Jenkins > Console 로 들어가서 아래의 코드처럼 decrpt안에 매개변수로 아까 복사한 암호를 붙여넣는다.

println hudson.util.Secret.decrypt("{AQAAABAAchtaGPT3cbBVgyWiivobt0CcLCY2P0lB3uyTc+T5WBvVk6cyG6BKASO1Fkj46MVc}")

5. 암호를 확인한다.

 

참고자료

https://inspireworld.tistory.com/76

- https://www.codurance.com/publications/2019/05/30/accessing-and-dumping-jenkins-credentials

[Accessing and dumping Jenkins credentials | Codurance

Jenkins offers a credentials store where we can keep our secrets. Of someone stole your source code and dumped your databases, you might think it's game over, but that's not always true...

 

반응형