-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
sources: Allow configuring a custom AWS region #448
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, unless @jan-auer has objections?
Any chance we could add some unit tests for these various functionalities? |
I'm afraid that would exceed my rust abilities, I'm somewhat surprised that I managed to get this to work 😅 (I'm probably missing them entirely, I think I would have been able to add a single additional test case, but I can't find tests for deserializing at all, so creating entirely new tests probably exceeds my current rust abilities) |
heh, fair enough. Sad we don't have an existing test, I'm just a bit concerned that changes like this could easily break existing valid configs and we should have some way of avoiding this. Could you maybe update https://github.com/getsentry/symbolicator/blob/master/docs/api/index.md#amazon-s3-bucket to represent the current state though. People shouldn't have to read the source to figure this out. |
Also, adding a changelog entry in the same style as existing ones will make the CI happier too :) |
This can be useful when using an s3 compatible service, such as minio or Ceph.
Updated documentation and added a changelog entry. |
This test should work, but shows the existing region selection is broken currently.
I took the liberty of pushing a simple test, hope you don't mind. It might be simple but sadly it already shows that your change breaks the previous functionality, so all existing configurations will break. Could investigate this? |
Thank you! No problem at all, this will help me investigate alternative solutions such as the initially proposed string-or-struct type of construct. |
Ok, I tried, but it seems that this is out of my breadth 😅 ... does anyone think they might be able to take this over the finish line? |
I've pushed a few changes that should make this change compatible with old configs in addition to supporting custom AWS regions; @flub @Swatinem could I trouble the both of you to take a look at the changes? They're a little bit more involved now but it's honestly just a heavily modified version of https://serde.rs/string-or-struct.html. @brancz sorry it's taken so long to get to this. Hopefully this is the last push needed to get support for this into symbolicator proper 🤞 |
nice! 👍 |
This can be useful when using an s3 compatible service, such as minio or
Ceph.
This takes a slightly simpler approach than initially suggested in #447, since rusoto already supports parsing custom regions from tuples, I decided not to introduce yet-another-representation.
Tested with this configuration:
Closes #447
@jan-auer