Skip to content
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

Merged
merged 6 commits into from
Jun 12, 2023

Conversation

DennisHeimbigner
Copy link
Collaborator

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.

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.
Copy link
Member

@WardF WardF left a 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.

include/netcdf_meta.h.in Outdated Show resolved Hide resolved
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@
Copy link
Member

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.

WardF and others added 4 commits June 12, 2023 15:08
…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?
@WardF WardF merged commit 5909da2 into Unidata:main Jun 12, 2023
Copy link
Collaborator Author

@DennisHeimbigner DennisHeimbigner left a 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.

@DennisHeimbigner DennisHeimbigner deleted the netaccess.dmh branch September 27, 2023 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants