Skip to content

Commit

Permalink
Update com.azure to v4.4.0 {patch} (#104)
Browse files Browse the repository at this point in the history
* Update com.azure to v4.4.0 {patch}
- Sets 7.2 as fixed API version in client
- Migrates to temurin in workflows
- Sets 7.2 as fixed API version in testcontainers module tests

Co-authored-by: Renovate Bot <[email protected]>
Co-authored-by: Esta Nagy <[email protected]>
  • Loading branch information
3 people authored Apr 1, 2022
1 parent f9a757e commit 3081d4c
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
- name: Set up JDK 11
uses: actions/setup-java@f0bb91606209742fe3ea40199be2f3ef195ecabf # tag=v2.5.0
with:
distribution: adopt
distribution: temurin
java-version: 11
- name: Initialize CodeQL
uses: github/codeql-action/init@d39d5d5c9707b926d517b1b292905ef4c03aa777 # tag=v1.1.2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gradle-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Set up JDK 11
uses: actions/setup-java@f0bb91606209742fe3ea40199be2f3ef195ecabf # tag=v2.5.0
with:
distribution: adopt
distribution: temurin
java-version: 11
- uses: actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed # tag=v2.1.7
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gradle-oss-index-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Set up JDK 11
uses: actions/setup-java@f0bb91606209742fe3ea40199be2f3ef195ecabf # tag=v2.5.0
with:
distribution: adopt
distribution: temurin
java-version: 11
- name: Check dependencies with Gradle
run: ./gradlew ossIndexAudit -PossIndexUsername=${{ secrets.OSS_INDEX_USER }} -PossIndexPassword=${{ secrets.OSS_INDEX_PASSWORD }}
2 changes: 1 addition & 1 deletion .github/workflows/gradle-test-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Set up JDK 11
uses: actions/setup-java@f0bb91606209742fe3ea40199be2f3ef195ecabf # tag=v2.5.0
with:
distribution: adopt
distribution: temurin
java-version: 11
- uses: actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed # tag=v2.1.7
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Set up JDK 11
uses: actions/setup-java@f0bb91606209742fe3ea40199be2f3ef195ecabf # tag=v2.5.0
with:
distribution: adopt
distribution: temurin
java-version: 11
- uses: actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed # tag=v2.1.7
with:
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ findbugs = "3.0.2"
lombok = "1.18.22"
httpClient = "4.5.13"
commonsCodec = "1.15"
azureKeyVaultClient = "4.3.8"
azureKeyVaultClient = "4.4.0"
testcontainers = "1.16.3"
cucumber = "7.2.3"
mockitoCore = "4.4.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@
import com.azure.security.keyvault.keys.KeyAsyncClient;
import com.azure.security.keyvault.keys.KeyClient;
import com.azure.security.keyvault.keys.KeyClientBuilder;
import com.azure.security.keyvault.keys.KeyServiceVersion;
import com.azure.security.keyvault.keys.cryptography.CryptographyAsyncClient;
import com.azure.security.keyvault.keys.cryptography.CryptographyClient;
import com.azure.security.keyvault.keys.cryptography.CryptographyClientBuilder;
import com.azure.security.keyvault.keys.cryptography.CryptographyServiceVersion;
import com.azure.security.keyvault.secrets.SecretAsyncClient;
import com.azure.security.keyvault.secrets.SecretClient;
import com.azure.security.keyvault.secrets.SecretClientBuilder;
import com.azure.security.keyvault.secrets.SecretServiceVersion;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.github.nagyesta.lowkeyvault.http.management.LowkeyVaultManagementClient;
import com.github.nagyesta.lowkeyvault.http.management.impl.LowkeyVaultManagementClientImpl;
Expand Down Expand Up @@ -89,6 +92,7 @@ private KeyClientBuilder getKeyBuilder() {
.vaultUrl(getVaultUrl())
.credential(new BasicAuthenticationCredential(DUMMY, DUMMY))
.httpClient(createInstance())
.serviceVersion(KeyServiceVersion.V7_2)
.retryPolicy(new RetryPolicy(new FixedDelay(0, Duration.ZERO)));
}

Expand All @@ -97,6 +101,7 @@ private SecretClientBuilder getSecretBuilder() {
.vaultUrl(getVaultUrl())
.credential(new BasicAuthenticationCredential(DUMMY, DUMMY))
.httpClient(createInstance())
.serviceVersion(SecretServiceVersion.V7_2)
.retryPolicy(new RetryPolicy(new FixedDelay(0, Duration.ZERO)));
}

Expand All @@ -105,6 +110,7 @@ private CryptographyClientBuilder getCryptoBuilder(final String webKeyId) {
.keyIdentifier(Objects.requireNonNull(webKeyId))
.credential(new BasicAuthenticationCredential(DUMMY, DUMMY))
.httpClient(createInstance())
.serviceVersion(CryptographyServiceVersion.V7_2)
.retryPolicy(new RetryPolicy(new FixedDelay(0, Duration.ZERO)));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import com.azure.core.http.policy.RetryPolicy;
import com.azure.security.keyvault.secrets.SecretClient;
import com.azure.security.keyvault.secrets.SecretClientBuilder;
import com.azure.security.keyvault.secrets.SecretServiceVersion;
import com.azure.security.keyvault.secrets.models.KeyVaultSecret;
import org.junit.jupiter.api.Assertions;

Expand All @@ -25,6 +26,7 @@ protected void verifyConnectionIsWorking(final String vaultUrl, final HttpClient
.vaultUrl(vaultUrl)
.credential(credential)
.httpClient(httpClient)
.serviceVersion(SecretServiceVersion.V7_2)
.retryPolicy(new RetryPolicy(new FixedDelay(0, Duration.ZERO)))
.buildClient();

Expand Down

0 comments on commit 3081d4c

Please sign in to comment.