Skip to content
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

Add static region list for (bootstrap) authentication to a subscribed… #4324

Merged
merged 1 commit into from
Dec 14, 2020

Conversation

jlamillan
Copy link
Contributor

@jlamillan jlamillan commented Dec 3, 2020

Proposed changes

This PR resolves a "chicken-and-egg" problem in the OCI node and OKE cluster drivers where a user is required to authenticate against a region they are subscribed to to in order to access the OCI API, but retrieving that list of available regions itself requires authentication.

We had previously worked around this issue by defaulting to us-phoenix-1 region. However, this does not work if the user is not subscribed to this region. The fix here is to add and maintain a static baootstrap list of available regions that the two drivers can share - everything else will continue to be fetched dynamically from the API.

Types of changes

Bugfix, New feature

Linked Issues

rancher-plugins/kontainer-engine-driver-oke#20

Further comments

This should probably be back-ported to 2.4 as well.

CC OCI Node
OKE Cluster

@westlywright westlywright merged commit ab3ccb1 into rancher:master Dec 14, 2020
@westlywright
Copy link
Contributor

@jlamillan Does this need to be in the next 2.5 release? If so, would you mind opening one more backport PR for the 2.5-fixes branch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants