Skip to content

Support Bearer Authorisation for http based object stores #539

@CommanderStorm

Description

@CommanderStorm

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

It would be great to support Bearer Authorization for e.g. PMTiles URLs.

Databricks Files API requires setting Bearer headers.
Adding the ability to specify the header would allow to load a PMTiles file from Unity Catalog Volumes.

Describe the solution you'd like

I think the simplest solution would be to allow configuring the following for http stores:

pub fn with_default_headers(mut self, headers: HeaderMap) -> Self {

The difficult part here is mainly the "how do I configure this in the config file" part.
I am not sure if the ideas I have there are good and would like to hear others oppinons first ^^

Describe alternatives you've considered

Alternatively, this functionality could be made public api:

#[cfg(feature = "gcp")]
pub(crate) fn bearer_auth(mut self, token: &str) -> Self {

Not sure what is the best approach.

Additional context

This issue was originally raised by @danielsparing in maplibre/martin#2353

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions