diff --git a/bag/get_imds_db_token.sh b/bag/get_imds_db_token.sh deleted file mode 100755 index 24764b55..00000000 --- a/bag/get_imds_db_token.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env sh - -# This script echoes a shortlived token for connecting to a postgres instance -# It can only be used from a K8S node with the proper identities assigned. - - -url='http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01&resource=https%3A%2F%2Fossrdbms-aad.database.windows.net' -curl -s "$url" -H 'Metadata: true' | - python -c 'import json, sys; print(json.loads(sys.stdin.read())["access_token"])' diff --git a/requirements.txt b/requirements.txt index 45abd256..d585c6b1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -97,3 +97,4 @@ uritemplate==3.0.0 urllib3==1.26.15 websocket-client==0.54.0 Werkzeug==2.2.3 +azure-identity==1.14.0