Generate STS endpoints to replace hard-coded lists#31217
Generate STS endpoints to replace hard-coded lists#31217
Conversation
|
Since we do not upgrade deps 😢 on old branches, can we do something like:
With this, we can keep older branches up-to-date without having to upgrade aws SDK as long as older AWS SDKs support new regions/sts endpoints. We can run the step using a crontab to ensure it's updated What do you think @greedy52 ? |
|
We update dependencies for security updates. Could we not also update certain other dependencies on an allowlist / case-by-case basis? Seems like a lot of extra complexity that could be avoided, while still working to keep certain stability "promises". |
I agree with this but I had the impression that the security updates were manual and nothing automatic runs. we can set that for release branches - it might involve some work when dealing with updates that break features or with major version updates but we can probably restrict the updates to minor versions only. |
Here is another case relying on newer SDKs for regions: teleport/lib/config/fileconf.go Lines 497 to 506 in 709b980 Whatever we choose, we have to do for both. |
|
For history, I originally wrote this feature to dynamically generate these from the SDK within Teleport, switched to a static list based on this review discussion #15337 (comment) I do have dependabot+CI set up in https://github.com/nklaassen/sts-endpoints that alerted me that there is a new region, I would have opened a PR if I wasn't on paternity leave and had seen the email. But I don't object to pulling this directly into a Teleport CI step. |
This is an alternative to
Logic is copied from https://github.com/nklaassen/sts-endpoints with some minor modifications.
Note that
go.modmust be updated with a newer version ofaws-sdk-goto get newer regions on older release branches.