Skip to content

Commit

Permalink
Modify serverCertDn to unknowDn if it is empty. This is done in order…
Browse files Browse the repository at this point in the history
… to restore credential expectations. (#26)
  • Loading branch information
vallabhi-k authored Aug 9, 2023
1 parent b4d6ab5 commit 1b12369
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
Binary file added atp-monitoring/.DS_Store
Binary file not shown.
Binary file added atp-monitoring/modules/.DS_Store
Binary file not shown.
4 changes: 4 additions & 0 deletions atp-monitoring/modules/core_compute/cloud-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ oci --auth instance_principal db autonomous-database generate-wallet --autonomou
# Get SSL Server Cert DN
serverCertDn=$(oci --auth instance_principal db autonomous-database get --raw-output --autonomous-database-id ${db_ocid} --query "data.\"connection-strings\".\"profiles\"[?\"display-name\" == '${level}'].value | [0]" | grep -oP 'ssl_server_cert_dn="\K[^"]+')

if [ -z "$serverCertDn" ]; then
serverCertDn="unknownDn"
fi

# Unzip downloaded wallet and fix permissions
unzip $ATP_WALLET_ZIP -d $ATP_WALLET_DIR
chown -R oracle-cloud-agent:oracle-cloud-agent $ATP_WALLET_DIR
Expand Down

0 comments on commit 1b12369

Please sign in to comment.