fix: IPv6 ranges not recognized for options masterKeyIPs, maintenanceKeyIPs#8501
fix: IPv6 ranges not recognized for options masterKeyIPs, maintenanceKeyIPs#8501dblythy wants to merge 48 commits intoparse-community:alphafrom
masterKeyIPs, maintenanceKeyIPs#8501Conversation
## [5.2.1-alpha.1](parse-community/parse-server@5.2.0...5.2.1-alpha.1) (2022-03-26) ### Bug Fixes * return correct response when revert is used in beforeSave ([parse-community#7839](parse-community#7839)) ([f63fb2b](parse-community@f63fb2b))
… Cloud Function validation (parse-community#7892)
## [5.2.1-alpha.2](parse-community/parse-server@5.2.1-alpha.1...5.2.1-alpha.2) (2022-03-26) ### Performance Improvements * reduce database operations when using the constant parameter in Cloud Function validation ([parse-community#7892](parse-community#7892)) ([48bd512](parse-community@48bd512))
# [5.3.0-alpha.1](parse-community/parse-server@5.2.1-alpha.2...5.3.0-alpha.1) (2022-03-27) ### Features * add MongoDB 5.1 compatibility ([parse-community#7682](parse-community#7682)) ([90155cf](parse-community@90155cf))
# [5.3.0-alpha.2](parse-community/parse-server@5.3.0-alpha.1...5.3.0-alpha.2) (2022-03-27) ### Bug Fixes * security upgrade parse push adapter from 4.1.0 to 4.1.2 ([parse-community#7893](parse-community#7893)) ([ef56e98](parse-community@ef56e98))
# [5.3.0-alpha.3](parse-community/parse-server@5.3.0-alpha.2...5.3.0-alpha.3) (2022-03-27) ### Features * add MongoDB 5.2 support ([parse-community#7894](parse-community#7894)) ([6b4b358](parse-community@6b4b358))
|
I will reformat the title to use the proper commit message syntax. |
Thanks for opening this pull request! |
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## alpha #8501 +/- ##
==========================================
+ Coverage 94.32% 94.34% +0.02%
==========================================
Files 186 186
Lines 14780 14795 +15
==========================================
+ Hits 13941 13959 +18
+ Misses 839 836 -3
☔ View full report in Codecov by Sentry. |
Moumouls
left a comment
There was a problem hiding this comment.
i'll send a pr, we are not going in the right way here...
|
? |
|
@dblythy i'll send a pr in 1hour hold on 🙂 |
|
Here my implementation suggestion #8510 |
Signed-off-by: Daniel <daniel-blyth@live.com.au>
|
Does this PR contain code of #8510, or is there anything it should contain? |
|
@andreisucman Could you test out this PR and see if it resolves the issue you described? |
|
@mtrezza Here is my test:
The operation ran with success on both localhost and production. No error logs. |
|
Maybe that's because it's via Cloud Function, could you try again with an actual client (or via REST API) from outside of Cloud Code? |
|
@mtrezza Ok, I tested again in live environment --- Test 1 Firstly I tested the current version - 6.3-alpha.3. just in case.
It worked with success even though the allowedIps has fake values different from the ingress ip. ----- Test 2
Nothing is hardcoded in my app, so I'm pretty sure that the app used the provided fake allowedIps. I recommend you to take my fake allowedIps values and test it on your end. And when you confirm that its working correctly on your dev server, I can test again in my live environment. These 2 tests were for And for this test Maybe you could test it in a simplified production environment on your end. |
|
The other pr is ready: #8510 |
|
Closing via #8510 |
Pull Request
Issue
Currently, an ipv6 range does not seem to validate ipv4 addresses
Closes: #8421
Approach
Adds cases to allow all IPs
Tasks