URL에 토큰을 포함하여 GitLab에서 API로 테마를 가져오지 못함

여러분 안녕하세요,

discourse_api, '0.38'을 사용하여 GitLab에서 원격 테마를 API를 통해 업로드하는 데 어려움을 겪고 있습니다(토큰이 URL에 포함된 경우).

v2.9.0beta10에서는 잘 작동했지만 3.0.0에서는 실패하는 것 같습니다.

클라이언트 측에서 POST 요청이 다음과 같은 오류를 반환하고 있습니다:

/opt/bundle/gems/discourse_api-0.38.0/lib/discourse_api/client.rb:158:in `handle_error': DiscourseApi::Error
        from /opt/bundle/gems/discourse_api-0.38.0/lib/discourse_api/client.rb:141:in `request'
        from /opt/bundle/gems/discourse_api-0.38.0/lib/discourse_api/client.rb:90:in `post'

대상 개발용 Discourse 인스턴스 로그에서는 다음과 같은 메시지가 표시됩니다:

Failed to process hijacked response correctly : FinalDestination::SSRFDetector::DisallowedIpError : FinalDestination: all resolved IPs were disallowed

다음 커밋들을 참고했습니다: SECURITY: Expand and improve SSRF Protections (#18815) · discourse/discourse@68b4fe4 · GitHub , FIX: Theme import error handling needs to happen inside the hijack bl… · discourse/discourse@1398bd5 · GitHub ,
FIX: When following redirects before cloning, use the first git reque… · discourse/discourse@d9364a2 · GitHub

(이는 작동하던 베타 태그 직후에 이루어진 변경 사항입니다)

요청을 허용하기 위해 추가로 설정해야 하는 부분이 있을까요?

관련된 토픽이 여기에 있었지만, 이미 닫혀 있습니다:

참고로, 어떤 이유인지는 모르겠지만 3.1.0beta2 시점에 해결된 것으로 보입니다. :+1: