Skip to content

Add --chat-id parameter to --ccserver for Telegram chat ID verification#2

Closed
KyongSik-Yoon wants to merge 148 commits intokstost:mainfrom
KyongSik-Yoon:claude/telegram-chat-id-verification-4ib0y
Closed

Add --chat-id parameter to --ccserver for Telegram chat ID verification#2
KyongSik-Yoon wants to merge 148 commits intokstost:mainfrom
KyongSik-Yoon:claude/telegram-chat-id-verification-4ib0y

Conversation

@KyongSik-Yoon
Copy link
Copy Markdown

Summary

  • Telegram 봇(--ccserver)에 --chat-id <ID> 옵션 추가
  • 지정된 chat ID에서 온 메시지만 처리하고, 그 외는 조용히 거부 (서버 로그에만 기록)
  • --chat-id 미지정 시 기존 imprinting 인증 방식 그대로 동작 (하위 호환)

Motivation

기존 imprinting 방식은 봇 이름만 알면 먼저 메시지를 보내는 사람이 owner로 등록되는 보안 취약점이 있음. --chat-id로 명시적으로 허용 대상을 지정하면 봇 이름이 노출되어도 권한 없는 사용자가 접근 불가.

Usage

# chat ID 제한 적용
cokacdir --ccserver <TOKEN> --chat-id <CHAT_ID>

# 기존 방식 (하위 호환)
cokacdir --ccserver <TOKEN>

@KyongSik-Yoon
Copy link
Copy Markdown
Author

@claude please code review

jpun added a commit to jpun/cokacdir that referenced this pull request Feb 26, 2026
…ication

Merged from kstost#2 with conflict resolution.
Combines chat-id restriction with existing public group chat access logic.
@kstost kstost closed this Mar 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants