Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mijn-7276 cert loading #60

Merged
merged 4 commits into from
Dec 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,12 @@
"": ["AO2", "AO5", "DBS", "KVB", "WMH", "AAN", "FIE"],
}

# Server security / certificates for ZorgNed
SERVER_CLIENT_CERT = os.getenv("MIJN_DATA_CLIENT_CERT")
SERVER_CLIENT_KEY = os.getenv("MIJN_DATA_CLIENT_KEY")

# TODO: Add other AZ env conditions after migration.
if IS_TEST:
if IS_TAP and SERVER_CLIENT_CERT is not None:
# https://stackoverflow.com/a/46570364/756075
# Server security / certificates
cert = tempfile.NamedTemporaryFile(delete=False)
Expand Down
2 changes: 0 additions & 2 deletions azure-pipelines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ variables:
- ${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
- name: btdDeploy
value: ${{ parameters.btdDeploy }}
- name: dtapName
value: t
- ${{ if ne(parameters.dtapName, 'none') }}:
- name: dtapName
value: ${{ parameters.dtapName }}
Expand Down
7 changes: 3 additions & 4 deletions conf/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
set -e

# AZ AppService allows SSH into a App instance.
if [ $MA_OTAP_ENV == "test" ]
then
# echo "Starting SSH ..."
service ssh start
if [ "$MA_OTAP_ENV" = "test" ]; then
echo "Starting SSH ..."
service ssh start
fi

uwsgi --uid www-data --gid www-data --ini /api/uwsgi.ini
Loading