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

Reliable identification of primary cloud #403

Open
mbaumann-broad opened this issue Jan 19, 2023 · 0 comments
Open

Reliable identification of primary cloud #403

mbaumann-broad opened this issue Jan 19, 2023 · 0 comments

Comments

@mbaumann-broad
Copy link
Collaborator

mbaumann-broad commented Jan 19, 2023

Objective

TNU now supports both Terra GCP and Terra Azure, yet a more reliable mechanism is needed to identify which should be used.

Background

When running in a Terra GCP or Terra Azure Interactive Analysis Cloud Environment, TNU must be able to reliably identify which cloud it is running in so it can auth correctly for access to Terra services.
An initial implementation was provided in PR #401 based on environment variables such as WORKSPACE_BUCKET. Yet, the environment variables that will be available in Terra Azure Cloud Environments have not been fully identified/implemented yet (IA-3597). When these are available, the code TNU uses to identify the cloud/auth-system to use must be revisited.

If the value of a storage-related environment variable is checked to see which cloud platform it pertains to, it should not just check for 'https://` to identify Azure, instead it should perform a more detailed check using a regular expression, such as:

re.search("^https://.*\.(dfs|blob)\.core\.windows\.net$", workspace_bucket)

Additionally, TNU needs a way to reliablty identify which cloud to use when TNU is running outside of Terra, for example on a local/institutional system.

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

No branches or pull requests

1 participant