-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Default masterKeyIps
does not work on localhost
#8316
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
Comments
Thanks for opening this issue!
|
Solution is to change the default to |
How would that work on a machine where IPv6 is not enabled? Can't we just add both values as default? |
Yes, that would fix it also. Should masterKeyIps always allow localhost? Otherwise developer will have to configure I'm thinking internally it should be |
Why? |
I think it would be expected that |
How can the use of masterKey be completely disabled? |
Maybe by not setting a masterKey? |
Does Parse Server start without masterkey? |
Not at the moment |
Then setting |
🎉 This change has been released in version 6.0.0-alpha.11 |
I think we missed that still though, as the default options are always concatenated to any additional set https://github.com/parse-community/parse-server/blob/alpha/src/ParseServer.js#L471-L473 |
Oh, did #8339 aim to fix that and remove the concatenation? I reopened. |
I don't think so, I think #8339 was designed to make |
sort of, I misunderstood the idea initially but I think it's ok now. please take a 2nd look at the PR |
🎉 This change has been released in version 6.0.0-beta.1 |
🎉 This change has been released in version 6.0.0 |
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 themasterKeyIps
default is127.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
alpha
macos
localhost
Database
mongo
5.0
atlas
Client
js
3.4.4
Logs
The text was updated successfully, but these errors were encountered: