Skip to content

Commit

Permalink
Mijn 7136 add az condition (#102)
Browse files Browse the repository at this point in the history
* Maintenance run 2023-12-16

* MIJN-7136-add-az-condition

---------

Co-authored-by: timvanoostrom <[email protected]>
  • Loading branch information
timvanoostrom and timvanoostrom authored Dec 18, 2023
1 parent d7a63e8 commit 5153b77
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
IS_TAP = IS_PRODUCTION or IS_ACCEPTANCE or IS_TEST
IS_AP = IS_ACCEPTANCE or IS_PRODUCTION
IS_OT = IS_DEV or IS_TEST
IS_AZ = os.getenv("IS_AZ", False)

# App constants
VERIFY_JWT_SIGNATURE = os.getenv("VERIFY_JWT_SIGNATURE", IS_AP)
Expand All @@ -38,7 +39,7 @@
MKS_CLIENT_KEY = os.getenv("MIJN_DATA_CLIENT_KEY", os.getenv("MKS_CLIENT_KEY"))

# TODO: Add other AZ env conditions after migration.
if IS_TAP and MIJN_DATA_CLIENT_CERT is not None:
if IS_AZ and IS_TAP and MIJN_DATA_CLIENT_CERT is not None:
# https://stackoverflow.com/a/46570364/756075
# Server security / certificates
cert = tempfile.NamedTemporaryFile(delete=False)
Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ click==8.1.7
# via
# black
# flask
coverage==7.3.2
coverage==7.3.3
# via -r requirements-root.txt
cryptography==41.0.7
# via
Expand All @@ -49,7 +49,7 @@ flask==3.0.0
# sentry-sdk
flask-httpauth==4.8.0
# via -r requirements-root.txt
frozenlist==1.4.0
frozenlist==1.4.1
# via
# aiohttp
# aiosignal
Expand Down Expand Up @@ -96,7 +96,7 @@ python-dateutil==2.8.2
# via -r requirements-root.txt
requests==2.31.0
# via -r requirements-root.txt
sentry-sdk[flask]==1.39.0
sentry-sdk[flask]==1.39.1
# via -r requirements-root.txt
six==1.16.0
# via python-dateutil
Expand Down

0 comments on commit 5153b77

Please sign in to comment.