-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[tda] security: remove option for saucelabs over http (#302)
we should rotate the sauce credentials if someone has sent our creds in plaintext over http
- Loading branch information
1 parent
92e9895
commit 5824fcc
Showing
2 changed files
with
2 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,7 +40,6 @@ def get_current_time_iso_utc(adjust_seconds=0): | |
|
||
start_time = get_current_time_iso_utc() | ||
|
||
SAUCELABS_PROTOCOL = "https://" | ||
DSN = "https://[email protected]/5390094" | ||
ENVIRONMENT = os.getenv("ENVIRONMENT") or "production" | ||
# SE_TAG will be both: | ||
|
@@ -218,9 +217,9 @@ def selenium_endpoint(data_center): | |
access_key = environ['SAUCE_ACCESS_KEY'] | ||
|
||
if data_center and data_center.lower() == 'eu': | ||
return SAUCELABS_PROTOCOL + "{}:{}@ondemand.eu-central-1.saucelabs.com/wd/hub".format(username, access_key) | ||
return "https://{}:{}@ondemand.eu-central-1.saucelabs.com/wd/hub".format(username, access_key) | ||
else: | ||
return SAUCELABS_PROTOCOL + "{}:{}@ondemand.us-west-1.saucelabs.com/wd/hub".format(username, access_key) | ||
return "https://{}:{}@ondemand.us-west-1.saucelabs.com/wd/hub".format(username, access_key) | ||
|
||
@pytest.fixture | ||
def set_tags(request): | ||
|