Skip to content

On branch edburns/o-647-update-identity-driver #352

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

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
Draft
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<properties>
<!-- versions start -->
<!-- weblogic azure aks versions -->
<version.wls-on-aks-azure-marketplace>1.0.90</version.wls-on-aks-azure-marketplace>
<version.wls-on-aks-azure-marketplace>1.0.91</version.wls-on-aks-azure-marketplace>
<!-- weblogic azure vm versions -->
<version.arm-oraclelinux-wls>1.0.31</version.arm-oraclelinux-wls>
<version.arm-oraclelinux-wls-admin>1.0.56</version.arm-oraclelinux-wls-admin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,10 @@ function install_utilities() {
--retry ${retryMaxAttempt} \
-fL ${wlsMSSQLDriverUrl} \
-o ${scriptDir}/model-images/wlsdeploy/${externalJDBCLibrariesDirectoryName}/${constMSSQLDriverName}
curl -m ${curlMaxTime} \
--retry ${retryMaxAttempt} \
-fL ${azureIdentityForMSSQLUrl} \
-o ${scriptDir}/model-images/wlsdeploy/${externalJDBCLibrariesDirectoryName}/${constAzureIdentityForMSSQLJarName}
validate_status "Install mssql driver."
fi

Expand Down
11 changes: 7 additions & 4 deletions weblogic-azure-aks/src/main/arm/scripts/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ export constFalse="false"
export constTrue="true"
export constIntrospectorJobActiveDeadlineSeconds=300 # for Guaranteed Qos
export constPostgreDriverName="postgresql-42.7.5.jar"
export constMSSQLDriverName="mssql-jdbc-11.2.3.jre17.jar"
export constMSSQLDriverName="mssql-jdbc-12.8.1.jre11.jar"
export constAzureIdentityForMSSQLJarName="azure-identity-1.12.2.jar"
export constAzureCoreVersion="1.34.0"
export constDbPodIdentitySelector="db-pod-identity" # do not change the value
export constPreclassDirectoryName="preclassLibraries"
Expand All @@ -54,7 +55,7 @@ export gitUrl4CpuImages="https://raw.githubusercontent.com/oracle/weblogic-azure
export gitUrl4AksWellTestedVersionJsonFile="https://raw.githubusercontent.com/oracle/weblogic-azure/main/weblogic-azure-aks/src/main/resources/aks_well_tested_version.json"
export gitUrl4AksToolingWellTestedVersionJsonFile="https://raw.githubusercontent.com/oracle/weblogic-azure/main/weblogic-azure-aks/src/main/resources/aks_tooling_well_tested_versions.json"
export gitUrl4WLSToolingFamilyJsonFile="https://raw.githubusercontent.com/oracle/weblogic-azure/main/weblogic-azure-aks/src/main/resources/weblogic_tooling_family.json"
export gitUrl4AzureIdentityExtensionsPomFile="https://raw.githubusercontent.com/oracle/weblogic-azure/main/weblogic-azure-aks/src/main/resources/azure-identity-extensions.xml"
export gitUrl4AzureIdentityExtensionsPomFile="https://raw.githubusercontent.com/oracle/weblogic-azure/b67a5f95a6c2f590fe8ff938daa298fe7adf7a45/weblogic-azure-aks/src/main/resources/azure-identity-extensions.xml" # PR https://github.com/oracle/weblogic-azure/pull/352 "https://raw.githubusercontent.com/oracle/weblogic-azure/main/weblogic-azure-aks/src/main/resources/azure-identity-extensions.xml"
export gitUrl4MySQLDriverPomFile="https://raw.githubusercontent.com/oracle/weblogic-azure/main/weblogic-azure-aks/src/main/resources/mysql-connector-java.xml"

export optUninstallMaxTry=5 # Max attempts to wait for the operator uninstalled
Expand All @@ -65,5 +66,7 @@ export retryInterval=10

export wlsContainerName="weblogic-server"
export wlsPostgresqlDriverUrl="https://jdbc.postgresql.org/download/postgresql-42.7.5.jar"
export wlsMSSQLDriverUrl="https://repo1.maven.org/maven2/com/microsoft/sqlserver/mssql-jdbc/11.2.3.jre17/mssql-jdbc-11.2.3.jre17.jar"
export jdkArm64Url="https://aka.ms/download-jdk/microsoft-jdk-11.0.23-linux-aarch64.tar.gz"
export wlsMSSQLDriverUrl="https://repo1.maven.org/maven2/com/microsoft/sqlserver/mssql-jdbc/12.8.1.jre11/mssql-jdbc-12.8.1.jre11.jar"
# The azure-identity is required by specified MSSQL driver, see https://learn.microsoft.com/en-us/sql/connect/jdbc/connecting-using-azure-active-directory-authentication?view=sql-server-ver17#connect-using-activedirectorymanagedidentity-authentication-mode
export azureIdentityForMSSQLUrl="https://repo1.maven.org/maven2/com/azure/azure-identity/1.12.2/azure-identity-1.12.2.jar"
export jdkArm64Url="https://aka.ms/download-jdk/microsoft-jdk-11.0.23-linux-aarch64.tar.gz"
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ module configDataSource '_deployment-scripts/_ds-datasource-connection.bicep' =
dbConfigurationType: dbConfigurationType
dbGlobalTranPro: dbGlobalTranPro
dbUser: dbUser
dsConnectionURL: uri(format('{0}{4}{1}{4}{3}={2}', const_connectionString, name_jdbcPlugins[databaseType], reference(items(dbIdentity.userAssignedIdentities)[0].key, const_identityAPIVersion, 'full').properties.clientId, array_msiClientId[databaseType], array_urlJoiner[databaseType]), '')
dsConnectionURL: format('{0}{4}{1}{4}{3}={2}', const_connectionString, name_jdbcPlugins[databaseType], reference(items(dbIdentity.userAssignedIdentities)[0].key, const_identityAPIVersion, 'full').properties.clientId, array_msiClientId[databaseType], array_urlJoiner[databaseType])
enablePswlessConnection: true
identity: identity
jdbcDataSourceName: jdbcDataSourceName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-identity-extensions</artifactId>
<version>1.2.0</version>
Copy link
Contributor

@galiacheng galiacheng Jun 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @edburns The latest azure-identity-extensions is 1.2.2, see https://mvnrepository.com/artifact/com.azure/azure-identity-extensions.

azure-identity is another library, 1.12.2 is in https://repo1.maven.org/maven2/com/azure/azure-identity/1.12.2/azure-identity-1.12.2.jar. We can create a new variable to manage this link.

<version>1.2.2</version>
</dependency>
</dependencies>
</project>
</project>