-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get ParseConfig parameters with Master Key #5954
Get ParseConfig parameters with Master Key #5954
Conversation
This feature requires parse-community/parse-dashboard#1233. |
Codecov Report
@@ Coverage Diff @@
## master #5954 +/- ##
==========================================
- Coverage 93.68% 93.66% -0.03%
==========================================
Files 156 156
Lines 10850 10857 +7
==========================================
+ Hits 10165 10169 +4
- Misses 685 688 +3
Continue to review full report at Codecov.
|
This feature already exists or did I miss something? |
The feature you are referring to restricts PUTs to the master key. The new feature allows for individual config parameters to be GETtable only with master key. See #5930 for feature description. |
@dplewis Any idea why the test is passing for mongodb but fails for postgres? |
I have an idea why, let me pull this down and see. |
You have to add the masterKeyOnly field to the SchemaController otherwise you get an undefined column error |
@dplewis Thanks, what are the implications when I add that field to the schema controller? That field is not always present, for example when upgrading from an existing parse server installation - could that cause any issues? |
Its automatically gets updated when the server starts. schemaUpgrade |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good to me. LGTM!
* added saving, retrieving * added tests * fixed typo * added masterKeyOnly to schema controller
Adds a property to Parse Config parameter to make it only retrievable with master key.