-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
validate base_path for s3 repository #93265
Comments
Pinging @elastic/es-distributed (Team:Distributed) |
I feel similarly, but this is a pretty tricky area and unfortunately not one we can address without making changes that would be breaking for at least some users. See #46869 for some related discussion of the problems. Yet, we haven't seen this as an actual problem when using the real S3, only when using something that claims (incorrectly) to be S3-compatible. Are you using something other than the real S3 @MarcinGinszt? |
@DaveCTurner We are using S3. |
Interesting. More detail would be helpful, yes. In particular, could you share a recursive listing of the bucket contents that seems not to be working for you? There shouldn't be any sensitive data in such a listing, the blob names are all random, so ideally use something like https://gist.github.com. If you'd rather not share it publically, let me know and I can arrange a private channel too. |
Ok, I'm ashamed of myself. Looks like the Elasticsearch works correctly, and just S3 path handling is making this complicated. The snapshot with Having a warning/ documentation about '/' prefix or suffix while creating the repository could save a lot of confusion. Currently, |
😁 I did say this was a tricky area... My understanding of your last message is that there's no problem to fix here, it's just that when looking at the bucket contents in the AWS UI you didn't see something you expected to see. I think that's really a problem with your expectations rather than because there's any action needed on the Elasticsearch side. We don't think we should push users towards a config that makes the repository contents appear in the AWS UI as you expect, so we won't be adjusting any docs or warnings as you suggest. Instead, I recommend you only interact with the repository contents via the Elasticsearch APIs. In particular:
As there's no action needed here I'm closing this. If you have any more questions, please open a thread on the Elasticsearch forum instead. |
Description
Documentation states, that base_path for s3_repository should not start or end with
/
.However, this is not obvious and not validated anyhow. We had a repository with base_path starting from
/
, that had statusverified
and it containedcompleted
snapshots- however, the snapshots were actually not synchronized with S3. I find that dangerously misleading.In addition to that, I wonder if the documentation is actually right on this topic- for us (Elasticsearch v7.9.3) repository doesn't work for base path without trailing
/
.The text was updated successfully, but these errors were encountered: