Google Cloud Storage¶
The Google Cloud Storage key-value store is a root key-value store for accessing Google Cloud Storage buckets.
URL syntax¶
gs://bucket/pathgs+ngauth+http://nguath-host/bucket/pathgs+ngauth+https://nguath-host/bucket/path
Capabilities¶
Supported |
|
Supported with |
Authentication¶
When not using the Python API:
The
gs://bucket/pathsyntax implies anonymous access, meaning thebucketmust allow public read access without requester pays. Refer to the GCS documentation for details on making buckets publicly accessible.To access private buckets, the
gs+ngauth+http://nguath-host/bucket/pathsyntax may be used to authenticate using credentials obtained from an ngauth server.
When using the Python API with credentials enabled:
The
gs://bucket/pathsyntax uses the Google Application Default Credentials, if available.The
gs+ngauth+http://nguath-host/bucket/pathbehaves the same asgs://bucket/pathand also uses the Google Application Default Credentials. The specifiedngauth-serveris not used.
Another method for keeping data private while still allowing Neuroglancer to
access it without the need for an ngauth server is to include a long, random
string as a suffix of the bucket name, such that the bucket name itself serves
as a capability URL.
Required permissions¶
The
storage.objects.getpermission is required for reading.Additionally, the
storage.objects.listpermission is required for listing directories.
CORS¶
Neuroglancer uses the Google Cloud Storage JSON API, which does not require any CORS configuration on the bucket.