-
Notifications
You must be signed in to change notification settings - Fork 493
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
Block /api/s/ after installation #976
Comments
This should also include the blocking of DatasetFieldServiceApi#loadDatasetFields |
I'm a bit surprised that even for some API With Apache as a (reverse) proxy in front of Glassfish, you could filter requests to this path, but it sounds like a job for the firewall. (I haven't fully thought this one through, but you want a balance between security and managability, i.e. making it secure in one place, but truly secure. In other words, the mechanism to make it secure must be transparent, but the key must be unbreakable.) |
There is nothing yet. There will be a key (most of them already have it), and there will be an option to shut it down. Java EE has a web filter mechanism that should be useful here. |
Just make sure we can make it a config issue. |
See explanation at post-install-api-block.sh for full description of the new API blocking options. |
I just ran post-install-api-block.sh on https://apitest.dataverse.org and now when I try a search with $ curl https://apitest.dataverse.org/api/search?q=* I'm getting this: { status:"error", message:"Endpoint available from localhost only. Please contact the dataverse administrator"} That... doesn't seem right. "search" is not in the list of BlockedApiEndpoints:
I'm getting the same at https://dataverse-demo.iq.harvard.edu/api/search?q=* @michbarsinai can you please adjust the script so the Search API is not disabled? |
@michbarsinai suggested looking at this part of the code (around line 144 of doFilter):
|
This is the api point where all the "admin" stuff goes. Currently no blocking is done there.
Options:
The text was updated successfully, but these errors were encountered: