Skip to content

Commit

Permalink
removed rogue env var (#1355)
Browse files Browse the repository at this point in the history
* removed rogue env var

* Added cpanel.cpanel to allowed hosts to silence error

* Ran black
  • Loading branch information
jamesstottmoj authored Oct 21, 2024
1 parent 661095c commit 2c95062
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions controlpanel/settings/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,9 @@
MANAGERS = []

# Whitelist values for the HTTP Host header, to prevent certain attacks
ALLOWED_HOSTS = [host for host in os.environ.get("ALLOWED_HOSTS", "").split() if host]
ALLOWED_HOSTS = [host for host in os.environ.get("ALLOWED_HOSTS", "").split() if host] + [
"cpanel.cpanel"
]


# set this before adding the IP address below
Expand Down Expand Up @@ -502,7 +504,6 @@
AWS_DATA_ACCOUNT_ID = os.environ.get("AWS_DATA_ACCOUNT_ID")
QUICKSIGHT_ACCOUNT_ID = os.environ.get("QUICKSIGHT_ACCOUNT_ID")
QUICKSIGHT_ACCOUNT_REGION = os.environ.get("QUICKSIGHT_ACCOUNT_REGION")
QUICKSIGHT_DOMAINS = os.environ.get("QUICKSIGHT_DOMAINS")
QUICKSIGHT_ASSUMED_ROLE = os.environ.get("QUICKSIGHT_ASSUMED_ROLE")

# The EKS OIDC provider, referenced in user policies to allow service accounts
Expand Down

0 comments on commit 2c95062

Please sign in to comment.