Jenkins에 저장된 credential/password 값 알아내기

젠킨스에 크레덴셜로 저장된 비밀번호 등의 값을 알아내고 싶은 경우 두가지 방법이 있다 job을 만들어서 아래 파이프라인 스크립트를 수행 https://www.codurance.com/publications/2019/05/30/accessing-and-dumping-jenkins-credentials 내용을 기반으로 좀더 간단하게 작성했음 pipeline { agent any stages { stage('sshUserPrivateKey') { steps { script { withCredentials([ sshUserPrivateKey( credentialsId: 'gerrit', keyFileVariable: 'keyFile', passphraseVariable: 'passphrase', usernameVariable: 'username' ) ]) { print 'keyFile=' + keyFile print 'passphrase=' + passphrase print 'username=' + username print 'keyFile.collect { it }=' + keyFile.collect { it } print 'passphrase.collect { it }=' + passphrase.collect { it } print 'username.collect { it }=' + username.collect { it } print 'keyFileContent=' + readFile(keyFile) } } } } } } jenkins 서버에 직접 ssh 접속이 가능하다면 /var/jenkins_home/credential.xml 파일을 오픈 (젠킨스 설치 경로는 설치 방식에 따라 조금씩 다를 수 있음) 파일 안에서 원하는 password 또는 credential을 찾음. (암호화되어 저장되어있는 경우 {XXXXX==} 와 같은 식으로 표현되어있음) ...

2021년 10월 27일 · 1분 · 152단어

Shotcut – Size and Position filter

Size Filter Off Size Filter On Size Filter Off Size Filter On (There should NOT be grayish color on the borders of the image) ...

2018년 5월 20일 · 1분 · 24단어

작업 스케쥴러 크론(Cron) 간단 사용법

unix 계열 운영체제 (linux, MacOS 포함)를 사용하다보면 시간대별로 반복되는 작업들을 수행해야 하는 경우가 매우 자주 있다. 이때 작업들의 스케쥴링을 위해서 application을 데몬처럼 실행시켜두고 해당 application 안에 통해서 스케쥴링을 할수도 있지만, 이미 unix 계열 운영체제에 기본으로 설치되어있는 cron 을 이용하면 훨씬 더 간편하게 특정 작업들을 실행할 수 있다. 크론 스케쥴 편집하기 아래 명령어를 실행하면 현재 로그인된 유저에 대해 cron job을 등록 할 수 있다. crontab -e 만약 특정 작업이 root 권한이 필요하여 root 유저에 대해 cron job을 등록하고 싶다면 아래 명령어를 이용하면 된다. ...

2018년 3월 23일 · 3분 · 447단어

Serial comma

Serial comma serial comma (also known as an Oxford comma or a Harvard comma)는 세개 이상의 항목을 열거할 때 마지막 and/or 등의 접속사 앞에 쉼표를 찍는 방법을 말한다. (두개의 항목 열거시에는 쉼표가 필요하지 않다.) ham, chips, and eggs (includes a serial comma) ham, chips and eggs (omits a comma) 위에 주어진 두 스타일 모두 문법적으로는 올바르기 때문에 둘 다 사용가능하나, 동일 문서내에서는 한가지 스타일을 유지해야 하며. 전통적으로 serial comma를 더 많이 사용하는 편이다. 하지만 가끔 serial comma에 의해 의미가 모호해지는 경우가 종종 있는데 이를 주의해야 한다[^1] . ...

2013년 7월 21일 · 2분 · 285단어