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

CPLLoadConfigOptionsFromFile(): add a [credentials] section to load VSI credentials #5463

Merged
merged 1 commit into from Mar 23, 2022

Conversation

rouault
Copy link
Member

@rouault rouault commented Mar 17, 2022

Extract from doc

Starting with GDAL 3.5, credentials can be specified in a
:ref:`GDAL configuration file <gdal_configuration_file>`, either in a specific one
explicitly loaded with :cpp:func:`CPLLoadConfigOptionsFromFile`, or
one of the default automatically loaded by :cpp:func:`CPLLoadConfigOptionsFromPredefinedFiles`.

They should be put under a ``[credentials]`` section, and for each path prefix,
under a relative subsection whose name starts with ``[.`` (e.g. ``[.some_arbitrary_name]``),
and whose first key is ``path``.
`
.. code-block::

    [credentials]

    [.private_bucket]
    path=/vsis3/my_private_bucket
    AWS_SECRET_ACCESS_KEY=...
    AWS_ACCESS_KEY_ID=...

    [.sentinel_s2_l1c]
    path=/vsis3/sentinel-s2-l1c
    AWS_REQUEST_PAYER=requester

@rouault rouault added this to the 3.5.0 milestone Mar 17, 2022
@rouault rouault merged commit 3212605 into OSGeo:master Mar 23, 2022
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.

None yet

1 participant