spotify / XCRemoteCache

Other
827 stars 50 forks source link

Load extra configuration in a chain #117

Closed polac24 closed 2 years ago

polac24 commented 2 years ago

Add chaining to the extra_configuration_file

extra_configuration_file allows overriding remote cache parameters from .yaml file. It has a limitation of only 2 files (by default .rcinfo + user.rcinfo) but in some more complex scenarios, it makes sense to have more files (e.g. to store AWS short-lived credentials).

This PR allows chaining them - XCRemoteCache reads and merges configurations transitively via extra_configuration_file until:

Fixes #114