Skip to content

Authentication Guide(KR)

ByoungSeob Kim edited this page Feb 24, 2026 · 1 revision

CB-Spider Authentication Guide

Language: English | 한국어

CB-Spider 서버 설정 및 spctl, curl을 이용한 인증 방법이 다음과 같습니다.

서버 환경변수 설정

./setup.env 파일에서 설정:

export SPIDER_USERNAME=admin
export SPIDER_PASSWORD=your-password

주의: 비밀번호는 반드시 다른 값으로 설정

변경 후에는 서버 재시작 필요


CLI (spctl) 인증 방법

방법 사용 예시
환경변수 설정 (권장) export SPIDER_USERNAME=admin
export SPIDER_PASSWORD=your-password
./spctl connection list
명령어 Flag ./spctl -u admin -p your-password connection list
  • 명령어 Flag이 환경변수보다 우선순위 높음

curl 인증 방법

방법 사용 예시
-u 옵션 직접 입력 curl -u admin:your-password http://localhost:1024/spider/connectionconfig
Authorization 헤더(base64 encoding) curl -H 'Authorization: Basic YWRtaW46c2FtcGxl' http://localhost:1024/spider/connectionconfig
작업 명령어 예시
인코딩 echo -n "username:password" | base64 admin:sampleYWRtaW46c2FtcGxl
디코딩 echo "인코딩값" | base64 -d YWRtaW46c2FtcGxladmin:sample

AdminWeb 인증 방법

방법 사용 예시
웹 브라우저 로그인 http://localhost:1024/spider/adminweb 접속 후 로그인

세션 관리

  • 세션 유효기간: 4시간 (Sliding Expiry)
  • 로그아웃: 즉시 세션 삭제
  • 서버 재시작: 모든 세션 소멸

Table of contents




Clone this wiki locally