Skip to content
Snippets Groups Projects
Verified Commit f16b194c authored by Arie Peterson's avatar Arie Peterson
Browse files

Do not populate s3 credentials from env vars in cli

parent 23bbff64
No related branches found
No related tags found
No related merge requests found
......@@ -192,17 +192,6 @@ PROMETHEUS_ENABLE_INGRESS={prometheus_enable_ingress}
))
log.info("Created %s", self.dotenv_file)
# Store some secrets that are passed to us as env vars.
env_secrets = [
('S3_ACCESS_KEY','s3_access_key'),
('S3_SECRET_KEY','s3_secret_key'),
]
for (secret_env_var, secret_filename) in env_secrets:
value = os.environ.get(secret_env_var)
if value is not None:
with open("{}/{}".format(self.secret_dir, secret_filename), 'w') as f:
f.write(value)
# Set self.data_loaded to True because the data in the class now
# reflects the data in the file.
self.data_loaded = True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment