-
Notifications
You must be signed in to change notification settings - Fork 267
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
Provide a single option to disable all network access and testing. #2708
Conversation
Add the option "--disable-network-access" (automake) or "-DENABLE_NETWORK_ACCESS=OFF" (cmake). When disabled, this option transitively disables all network access capabilities and testing. If set, this option implies the following: * --disable-dap * --disable-byterange * --disable-s3 This PR answers a request for a feature from Ed Hartnett. ## Misc. Other changes * Take the opportunity to clean up some old, unused options; e.g. --enable-multifilters. * Fix bug in using S3 urls.
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.
I'm concerned that 'network access' might be ambiguous; I can imagine questions, down the line, around 'what about networked drives? What about X?'. I think a single-switch shortcut which acts as a master switch to set existing remote data access options to off is a fine idea, but I wonder about overstating what it's doing.
libnetcdf.settings.in
Outdated
Quantization: @HAS_QUANTIZE@ | ||
Logging: @HAS_LOGGING@ | ||
SZIP Write Support: @HAS_SZLIB_WRITE@ | ||
Standard Filters: @STD_FILTERS@ | ||
ZSTD Support: @HAS_ZSTD@ | ||
Parallel Filters: @HAS_PAR_FILTERS@ | ||
|
||
Allow Network Access: @DO_NETWORK_ACCESS@ |
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.
I will make a change to this summary, I don't want to mislead or overstate what we're doing; 'Network Access' is ambiguous and can mean a lot.
…s in nc-config, and I can see where people might want to use this define to write code that works with modern and older versions of netCDF.
…ood, did it refer to networked drives? Other things that are network adjacent?
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.
This seems like a good choice.
Add the option "--disable-network-access" (automake) or "-DENABLE_NETWORK_ACCESS=OFF" (cmake).
When disabled, this option transitively disables all network access capabilities and testing.
If set, this option implies the following:
This PR answers a request for a feature from Ed Hartnett.
Misc. Other changes