You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Default masterKeyIps does not work on localhost #8316
🚀 You can help us to fix this issue faster by opening a pull request with a failing test. See our Contribution Guide for how to make a pull request, or read our New Contributor's Guide if this is your first time contributing.
Yes, that would fix it also. Should masterKeyIps always allow localhost? Otherwise developer will have to configure masterKeyIps: ["::1", "127.0.0.1", "ip", "ip"],
I'm thinking internally it should be allowedIps = ["::1", "127.0.0.1", ...config.masterKeyIps],, masterKeyIps can default to [] (localhost only)
I think it would be expected that masterKeyIps is external ips, and that cloud code, code run on the same instance as Parse Server, should always be allowed.
I don't think so, I think #8339 was designed to make masterKeyIps: [] === access from anywhere, which is incorrect. We can open a new PR fixing the concatenation
I don't think so, I think #8339 was designed to make masterKeyIps: [] === access from anywhere, which is incorrect. We can open a new PR fixing the concatenation
sort of, I misunderstood the idea initially but I think it's ok now. please take a 2nd look at the PR
Activity
parse-github-assistant commentedon Nov 15, 2022
Thanks for opening this issue!
dblythy commentedon Nov 15, 2022
Solution is to change the default to
::1, or resolvegetClientIpto anipv4addressmtrezza commentedon Nov 15, 2022
How would that work on a machine where IPv6 is not enabled? Can't we just add both values as default?
['::1','127.0.0.1']dblythy commentedon Nov 15, 2022
Yes, that would fix it also. Should masterKeyIps always allow localhost? Otherwise developer will have to configure
masterKeyIps: ["::1", "127.0.0.1", "ip", "ip"],I'm thinking internally it should be
allowedIps = ["::1", "127.0.0.1", ...config.masterKeyIps],, masterKeyIps can default to[](localhost only)mtrezza commentedon Nov 15, 2022
Why?
dblythy commentedon Nov 15, 2022
I think it would be expected that
masterKeyIpsis external ips, and that cloud code, code run on the same instance as Parse Server, should always be allowed.mtrezza commentedon Nov 15, 2022
How can the use of masterKey be completely disabled?
dblythy commentedon Nov 15, 2022
Maybe by not setting a masterKey?
mtrezza commentedon Nov 15, 2022
Does Parse Server start without masterkey?
dblythy commentedon Nov 16, 2022
Not at the moment
mtrezza commentedon Nov 16, 2022
Then setting
masterKeyIpsto an empty array is the only way at the moment. So I'd say we should not set localhost as a non-removable allow-entry.parseplatformorg commentedon Nov 25, 2022
🎉 This change has been released in version 6.0.0-alpha.11
stewones commentedon Nov 27, 2022
it's not working currently @mtrezza
sent a PR to fix #8339
dblythy commentedon Nov 28, 2022
I think we missed that still though, as the default options are always concatenated to any additional set
masterKeyIpshttps://github.com/parse-community/parse-server/blob/alpha/src/ParseServer.js#L471-L473
mtrezza commentedon Nov 28, 2022
Oh, did #8339 aim to fix that and remove the concatenation? I reopened.
dblythy commentedon Nov 28, 2022
I don't think so, I think #8339 was designed to make
masterKeyIps: []=== access from anywhere, which is incorrect. We can open a new PR fixing the concatenationstewones commentedon Nov 28, 2022
sort of, I misunderstood the idea initially but I think it's ok now. please take a 2nd look at the PR
parseplatformorg commentedon Jan 31, 2023
🎉 This change has been released in version 6.0.0-beta.1
parseplatformorg commentedon Jan 31, 2023
🎉 This change has been released in version 6.0.0