Discourse MCP 사용자 API 키 생성기 오류 Nodejs >20

GitHub 저장소에서 이슈(Issues)가 비활성화되어 있지만, 다른 곳에 게시해야 한다면 알려주세요!

User API Key 생성기를 실행하면 다음 오류가 발생합니다:

Decrypting payload…
[2025-12-01T16:38:59.409Z] ERROR Failed to decrypt payload: RSA_PKCS1_PADDING is no longer supported for private decryption.

이것은 nodejs 20부터 기본적으로 더 이상 지원되지 않는 것 같습니다.

해당 게시물에는 패딩 옵션을 다시 활성화하는 우회 방법이 언급되어 있지만, 이후에는 그마저도 비활성화된 것으로 보입니다.

$ NODE_OPTIONS='--security-revert=CVE-2023-46809' npx @discourse/mcp@latest generate-user-api-key --site https://example.com --save-to discourse-mcp.json  --scopes "read"
node: --security-revert= is not allowed in NODE_OPTIONS

이 코드가 몇 개월 전 discourse-mcp/src/user-api-key-generator.ts at 51f144fff8847647d1ba7354d5bc1fe661110a43 · discourse/discourse-mcp · GitHub 에서 최근에 추가되었기 때문에 다소 혼란스럽습니다. 아마도 모두 관리자 생성 키를 사용하고 있는 것일까요?

어떤 OS, NodeJS, OpenSSL 버전을 사용 중이신가요?

저는 아래 환경에서 정상적으로 작동합니다.

Linux
Node 24.5
OpenSSL 3.6.0


◄ 0s ◎ npx @discourse/mcp@latest generate-user-api-key \
             --site https://meta.discourse.org \
             --save-to profile.json

🔑 Discourse User API Key Generator

Site: https://meta.discourse.org
Scopes: read,write

Generating RSA key pair...
✓ Key pair generated

Please visit this URL to authorize the application:

https://meta.discourse.org/user-api-key/new?application_name=Discourse+MCP&client_id=discourse-mcp&scopes=read%2Cwrite&public_key=-----BEGIN+PUBLIC+KEY-----blablabla----END+PUBLIC+KEY-----%0A&nonce=1764619683010

After authorizing, you will be redirected to a URL like:
  discourse://auth_redirect?payload=<encrypted_payload>

Or you may see the encrypted payload displayed on the page.

Paste the encrypted payload here:  longkey

Decrypting payload...
✓ User API Key retrieved successfully

✓ Saved to profile: profile.json

{
  "success": true,
  "profile": "profile.json"
}

◄ 16s ◎ node --version 
v24.5.0

◄ 0s ◎ openssl --version
OpenSSL 3.6.0 1 Oct 2025 (Library: OpenSSL 3.6.0 1 Oct 2025)
$ node --version
v22.15.0
$ openssl -v
OpenSSL 3.6.0 1 Oct 2025 (Library: OpenSSL 3.6.0 1 Oct 2025)

nvm을 통해 node 24로 전환했는데, 이제 잘 동작합니다! 덕분에 Unable to use RSA_PKCS1_PADDING with v22+ - `--security-revert` suggests CVE-2024-PEND · Issue #55628 · nodejs/node · GitHub 이슈를 발견했는데, 이 이슈의 결론은 node 24 미만에서는 절대 동작하지 않는다는 것입니다.

따라서 discourse-mcp/package.json at 858e5bd5092c7d31693554046db34f98671a8cb9 · discourse/discourse-mcp · GitHub 버전 요구사항은 >=24로 업데이트되어야 할 것 같습니다.

감사합니다!

좋은 생각입니다.