Skip to content

sign reference filesystems #34

Closed
@TomAugspurger

Description

@TomAugspurger

For kerchunk / reference file systems, we end up with an object like

{
  "version": 1,
  "templates": {
    "a": "https://nasagddp.blob.core.windows.net/nex-gddp-cmip6/NEX/GDDP-CMIP6/ACCESS-CM2/historical/r1i1p1f1/hurs/hurs_day_ACCESS-CM2_historical_r1i1p1f1_gn_1950.nc"
  ...
  }
...
}

For users to access the data, they must sign the URLs in the values of templates.

for k, v in references["templates"].items():
    references["templates"][k] = planetary_computer.sign(v)

Unfortunately for us, it's just a plain dictionary, so we have to actually dig into the mapping object to check its structure (version, templates, refs as top-level keys might be enough). It might be worth asking kerchunk to expose a class with the same mapping interface.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions