Skip to content

Default masterKeyIps does not work on localhost #8316

Closed
@dblythy

Description

@dblythy

New Issue Checklist

Issue Description

Introduced in #8281, the new default does not allow local IPs.

This is due to the fact that getClientIp returns an ipv6 IP (::1), whereas the masterKeyIps default is 127.0.0.1

Steps to reproduce

Run a local instance of Parse Server alpha with Dashboard

Actual Outcome

Dashboard should load

Expected Outcome

"MasterKey is required"

Environment

Server

  • Parse Server version: alpha
  • Operating system: macos
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): localhost

Database

  • System (MongoDB or Postgres): mongo
  • Database version: 5.0
  • Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): atlas

Client

  • SDK (iOS, Android, JavaScript, PHP, Unity, etc): js
  • SDK version: 3.4.4

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    block:majorNeeds to be resolved before next major release; remove label afterwardsstate:releasedReleased as stable versionstate:released-alphaReleased as alpha versionstate:released-betaReleased as beta versiontype:bugImpaired feature or lacking behavior that is likely assumed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions