Skip to content

Commit

Permalink
Remove AWS key check for digital ocean
Browse files Browse the repository at this point in the history
  • Loading branch information
costrouc committed Jun 28, 2022
1 parent 25ada0b commit 3107a65
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
2 changes: 0 additions & 2 deletions qhub/initialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,8 +451,6 @@ def github_auto_provision(config, owner, repo):
# Secrets
if config["provider"] == "do":
for name in {
"AWS_ACCESS_KEY_ID",
"AWS_SECRET_ACCESS_KEY",
"SPACES_ACCESS_KEY_ID",
"SPACES_SECRET_ACCESS_KEY",
"DIGITALOCEAN_TOKEN",
Expand Down
17 changes: 0 additions & 17 deletions qhub/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,6 @@ def check_cloud_credentials(config):
)
elif config["provider"] == "do":
for variable in {
"AWS_ACCESS_KEY_ID",
"AWS_SECRET_ACCESS_KEY",
"SPACES_ACCESS_KEY_ID",
"SPACES_SECRET_ACCESS_KEY",
"DIGITALOCEAN_TOKEN",
Expand All @@ -165,21 +163,6 @@ def check_cloud_credentials(config):
f"""Missing the following required environment variable: {variable}\n
Please see the documentation for more information: {DO_ENV_DOCS}"""
)

if os.environ["AWS_ACCESS_KEY_ID"] != os.environ["SPACES_ACCESS_KEY_ID"]:
raise ValueError(
f"""The environment variables AWS_ACCESS_KEY_ID and SPACES_ACCESS_KEY_ID must be equal\n
See {DO_ENV_DOCS} for more information"""
)

if (
os.environ["AWS_SECRET_ACCESS_KEY"]
!= os.environ["SPACES_SECRET_ACCESS_KEY"]
):
raise ValueError(
f"""The environment variables AWS_SECRET_ACCESS_KEY and SPACES_SECRET_ACCESS_KEY must be equal\n
See {DO_ENV_DOCS} for more information"""
)
elif config["provider"] == "local":
pass
else:
Expand Down

0 comments on commit 3107a65

Please sign in to comment.