Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Updated LiveSync Security
Live Sync API is now disabled by default.
Admins can enable or disable the Live Sync API from the Administration Configuration page.
Live Sync API now has an optional 'Auth Key.' When the auth key is set, anyone attempting to pull from the API must supply the auth key value in their request. Without the auth key, no data is provided by the Live Sync API endpoint.
When using the Auth Key, it must be added as a parameter to the URL value in the
liveimport
script:?auth=XXXXX_
Example (with an auth key of
1234567890
:hhvm -vRepo.Central.Path=/var/run/hhvm/.hhvm.hhbc_liveimport /var/www/fbctf/src/scripts/liveimport.php --url 'https://10.10.10.101/data/livesync.php?auth=1234567890'
Note: When using the Auth Key you should use a secure key.
The
livesync
API endpoint will provide error messages if the API is disabled, the key is missing or invalid, or if any general error is encountered.The
liveimport
script will check for errors and display those in the output if any are encountered.Updated LiveSync Security
Combined Awaitables throughout LiveSync endpoint.
Used hash_equals() for API key verification, mitigating timing attacks on the key.# Please enter the commit message for your changes. Lines starting