AI 시대, 코드 품질과 SW공급망의 새로운 기준(Sonar & JFrog)

안녕하세요. Sonar & JFrog 조인트 세미나 개최합니다. 좌석이 한정되어 있으니, 서둘러 등록하세요.
2026.09.17 (목) 13:00 코엑스 300호


목적

Atlassian의 REST API 호출 할 때 코드에 ID/Password를 드러내고 싶지 않음

예) CURL 또는 script을 통해 rest API 접근

해결책

ID/Pasword를 base64로 생성하여 HTTP header에 적용

CURL 사용 예)
$ curl -D- -X GET -H "Authorization: Basic base64String" -H "Content-Type: application/json" "http://jira.almdemo.curvc.com/rest/api/latest/hello"

Base64 생성 방법:

Linux terminal 환경:
echo -n <userID>:<password> | openssl base64
Powershell 환경:
$ENCODED = [Convert]::ToBase64String([Text.Encoding]::Unicode.GetBytes('<userID>:<password>'))
Write-Output $ENCODED
  • 레이블 없음