Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Mastodon instance in UBOS container: 422 Mastodon::PrivateNetworkAddressError #343

Closed
jernst opened this issue Sep 18, 2024 · 2 comments · Fixed by #344
Closed

Mastodon instance in UBOS container: 422 Mastodon::PrivateNetworkAddressError #343

jernst opened this issue Sep 18, 2024 · 2 comments · Fixed by #344
Assignees

Comments

@jernst
Copy link
Member

jernst commented Sep 18, 2024

  • Two Mastodon instances in a UBOS container
  • Both resolve to the IPv4 address of the container's virtual gateway interface (e.g. 192.168.89.236)
  • Running straight into the Mastodon server-side request forgery protection code
  • However, failing to set TRUSTED_PROXY_IP to disable this.
@jernst jernst self-assigned this Sep 18, 2024
@jernst jernst added this to the FediTest 0.4 released milestone Sep 18, 2024
@jernst
Copy link
Member Author

jernst commented Sep 18, 2024

See also mastodon/mastodon#31260, where they say this isn't a problem but it seems to be for me.

@jernst
Copy link
Member Author

jernst commented Sep 18, 2024

Reviewing the code shows it's a different setting: ALLOW_PRIVATE_ADDRESSES. That leads to:

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
1 participant