皆さん、こんにちは。
GitLab (URLにトークン付き) から discourse_api, '0.38' を使用してAPI経由でリモートテーマをアップロードしようとして苦労しています。
これは 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
(これは、機能していたベータ版タグの直後です)
リクエストを許可するために、追加の設定が必要ですか?
関連するトピックがここにありましたが、閉じられています。