-
Notifications
You must be signed in to change notification settings - Fork 25
Closed as not planned
Description
I see that's it's expected that when using obstore.store.from_url with an amazon s3 https url we get an S3 store but to me I would also expect that skip_signature: True would be set. Maybe I'm misunderstanding but https url should be considered as public 🤷
import obstore as obs
store = obs.store.from_url("https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/15/T/VK/2023/10/S2B_15TVK_20231008_0_L2A/TCI.tif")
store
>>> S3Store(bucket="sentinel-cogs", prefix="sentinel-s2-l2a-cogs/15/T/VK/2023/10/S2B_15TVK_20231008_0_L2A/TCI.tif")
obs.get_range(store, "", start=0, end=10)
>>> GenericError: Generic {
store: "S3",
source: Reqwest {
retries: 10,
max_retries: 10,
elapsed: 5.794443875s,
retry_timeout: 180s,
source: reqwest::Error {
kind: Request,
url: "http://169.254.169.254/latest/api/token",
source: hyper_util::client::legacy::Error(
Connect,
ConnectError(
"tcp connect error",
Os {
code: 64,
kind: Uncategorized,
message: "Host is down",
},
),
),
},
},
}
# with skip_signature
store = obs.store.from_url("https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/15/T/VK/2023/10/S2B_15TVK_20231008_0_L2A/TCI.tif", config={"skip_signature": True})
obs.get_range(store, "", start=0, end=10)
>>> Bytes(b"II*\x00\x08\x00\x00\x00\x13\x00")Metadata
Metadata
Assignees
Labels
No labels