Requirement
I am archiving workflows to s3. However its an inhouse s3 and doesn’t support bucket operations
I want to disable bucket URI validation which happens at the time of namespace creation.
Approach 1
Comment out the bucket validation line in the existing s3 provider (line 349 in historyArchiver.go & line 269 in visibilityArchiver.go)
Approach 2
Write a new provider (exact as s3 one, but with the bucket validation commented out). Follow the steps in the archival documentation to config the new custom provider. Which involves editing /common/archiver/provider/provider.go and a few other files.
What’s the problem?
In both approaches, I’m modifying the temporal files, and risking a break when I upgrade to a higher version of temporal involving a change to these files?
Question
- Which approach should I take?