Skip to content

Commit 9a5fc3f

Browse files
jfredenelasticsearchmachine
andauthored
[8.18] Bump json-smart and oauth2-oidc-sdk (elastic#122737) (elastic#122834)
* Bump json-smart and oauth2-oidc-sdk (elastic#122737) * Bump json-smart and oauth2-oidc-sdk --------- Co-authored-by: elasticsearchmachine <[email protected]> * fixup! Add back verification data for test dep --------- Co-authored-by: elasticsearchmachine <[email protected]>
1 parent 2f0951e commit 9a5fc3f

File tree

7 files changed

+43
-79
lines changed

7 files changed

+43
-79
lines changed

docs/changelog/122737.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 122737
2+
summary: Bump json-smart and oauth2-oidc-sdk
3+
area: Authentication
4+
type: upgrade
5+
issues: []

gradle/verification-metadata.xml

Lines changed: 14 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -979,36 +979,24 @@
979979
<sha256 value="e8c1c594e2425bdbea2d860de55c69b69fc5d59454452449a0f0913c2a5b8a31" origin="Generated by Gradle"/>
980980
</artifact>
981981
</component>
982+
<component group="com.nimbusds" name="nimbus-jose-jwt" version="10.0.1">
983+
<artifact name="nimbus-jose-jwt-10.0.1.jar">
984+
<sha256 value="f28dbd9ab128324f05050d76b78469d3a9cd83e0319aabc68d1c276e3923e13a" origin="Generated by Gradle"/>
985+
</artifact>
986+
</component>
982987
<component group="com.nimbusds" name="nimbus-jose-jwt" version="4.41.1">
983988
<artifact name="nimbus-jose-jwt-4.41.1.jar">
984989
<sha256 value="fbfd0d5f2b2f86758b821daa5e79b5d7c965edd9dc1b2cc80b515df1c6ddc22d" origin="Generated by Gradle"/>
985990
</artifact>
986991
</component>
987-
<component group="com.nimbusds" name="nimbus-jose-jwt" version="9.37.3">
988-
<artifact name="nimbus-jose-jwt-9.37.3.jar">
989-
<sha256 value="12ae4a3a260095d7aeba2adea7ae396e8b9570db8b7b409e09a824c219cc0444" origin="Generated by Gradle">
990-
<also-trust value="afc63b689d881439b95f343b1dca750391edac63b87392be4d90d19c94ccafbe"/>
991-
</sha256>
992-
</artifact>
993-
</component>
994992
<component group="com.nimbusds" name="nimbus-jose-jwt" version="9.8.1">
995993
<artifact name="nimbus-jose-jwt-9.8.1.jar">
996994
<sha256 value="7664cf8c6f2adadf600287812b32878277beda54912eab9d4c2932cd50cb704a" origin="Generated by Gradle"/>
997995
</artifact>
998996
</component>
999-
<component group="com.nimbusds" name="oauth2-oidc-sdk" version="11.10.1">
1000-
<artifact name="oauth2-oidc-sdk-11.10.1.jar">
1001-
<sha256 value="9e51b2c17503cdd3eb97f41491c712aff7783bb3c67185d789f44ccf2a603b26" origin="Generated by Gradle"/>
1002-
</artifact>
1003-
</component>
1004-
<component group="com.nimbusds" name="oauth2-oidc-sdk" version="11.9.1">
1005-
<artifact name="oauth2-oidc-sdk-11.9.1.jar">
1006-
<sha256 value="0820c9690966304d075347b88e81ae490213440fc4d2c84f3d370d41941b2b9c" origin="Generated by Gradle"/>
1007-
</artifact>
1008-
</component>
1009-
<component group="com.nimbusds" name="oauth2-oidc-sdk" version="9.37">
1010-
<artifact name="oauth2-oidc-sdk-9.37.jar">
1011-
<sha256 value="44a04bbed5ae3f6d198aa73ee6b545c476e528ec1a267ef3e9f7033f886dd6fe" origin="Generated by Gradle"/>
997+
<component group="com.nimbusds" name="oauth2-oidc-sdk" version="11.22.2">
998+
<artifact name="oauth2-oidc-sdk-11.22.2.jar">
999+
<sha256 value="64fab42f17bf8e0efb193dd34da716ef7abb7515234036119df1776b808dc066" origin="Generated by Gradle"/>
10121000
</artifact>
10131001
</component>
10141002
<component group="com.perforce" name="p4java" version="2015.2.1365273">
@@ -1774,34 +1762,24 @@
17741762
<sha256 value="0972bbc99437c4163acd09b630e6c77eab4cfab8a9594621c95466c0c6645396" origin="Generated by Gradle"/>
17751763
</artifact>
17761764
</component>
1777-
<component group="net.minidev" name="accessors-smart" version="2.5.0">
1778-
<artifact name="accessors-smart-2.5.0.jar">
1779-
<sha256 value="12314fc6881d66a413fd66370787adba16e504fbf7e138690b0f3952e3fbd321" origin="Generated by Gradle"/>
1765+
<component group="net.minidev" name="accessors-smart" version="2.5.2">
1766+
<artifact name="accessors-smart-2.5.2.jar">
1767+
<sha256 value="9b8a7bc43861d6156c021166d941fb7dddbe4463e2fa5ee88077e4b01452a836" origin="Generated by Gradle"/>
17801768
</artifact>
17811769
</component>
17821770
<component group="net.minidev" name="json-smart" version="2.3">
17831771
<artifact name="json-smart-2.3.jar">
17841772
<sha256 value="903f48c8aa4c3f6426440b8d32de89fa1dc23b1169abde25e4e1d068aa67708b" origin="Generated by Gradle"/>
17851773
</artifact>
17861774
</component>
1787-
<component group="net.minidev" name="json-smart" version="2.4.10">
1788-
<artifact name="json-smart-2.4.10.jar">
1789-
<sha256 value="70cab5e9488630dc631b1fc6e7fa550d95cddd19ba14db39ceca7cabfbd4e5ae" origin="Generated by Gradle"/>
1790-
</artifact>
1791-
</component>
17921775
<component group="net.minidev" name="json-smart" version="2.4.2">
17931776
<artifact name="json-smart-2.4.2.jar">
17941777
<sha256 value="64072f56d9dff5040b2acec477c5d5e6bcebfc88c508f12acb26072d07942146" origin="Generated by Gradle"/>
17951778
</artifact>
17961779
</component>
1797-
<component group="net.minidev" name="json-smart" version="2.5.0">
1798-
<artifact name="json-smart-2.5.0.jar">
1799-
<sha256 value="432b9e545848c4141b80717b26e367f83bf33f19250a228ce75da6e967da2bc7" origin="Generated by Gradle"/>
1800-
</artifact>
1801-
</component>
1802-
<component group="net.minidev" name="json-smart" version="2.5.1">
1803-
<artifact name="json-smart-2.5.1.jar">
1804-
<sha256 value="86c0c189581b79b57b0719f443a724e9f628ffbb9eef645cf79194f5973a1001" origin="Generated by Gradle"/>
1780+
<component group="net.minidev" name="json-smart" version="2.5.2">
1781+
<artifact name="json-smart-2.5.2.jar">
1782+
<sha256 value="4fbdedb0105cedc7f766b95c297d2e88fb6a560da48f3bbaa0cc538ea8b7bf71" origin="Generated by Gradle"/>
18051783
</artifact>
18061784
</component>
18071785
<component group="net.nextencia" name="rrdiagram" version="0.9.4">
@@ -4353,31 +4331,6 @@
43534331
<sha256 value="ca5b8d11569e53921b0e3486469e7c674361c79845dad3d514f38ab6e0c8c10a" origin="Generated by Gradle"/>
43544332
</artifact>
43554333
</component>
4356-
<component group="org.ow2.asm" name="asm" version="9.2">
4357-
<artifact name="asm-9.2.jar">
4358-
<sha256 value="b9d4fe4d71938df38839f0eca42aaaa64cf8b313d678da036f0cb3ca199b47f5" origin="Generated by Gradle"/>
4359-
</artifact>
4360-
</component>
4361-
<component group="org.ow2.asm" name="asm" version="9.3">
4362-
<artifact name="asm-9.3.jar">
4363-
<sha256 value="1263369b59e29c943918de11d6d6152e2ec6085ce63e5710516f8c67d368e4bc" origin="Generated by Gradle"/>
4364-
</artifact>
4365-
</component>
4366-
<component group="org.ow2.asm" name="asm" version="9.4">
4367-
<artifact name="asm-9.4.jar">
4368-
<sha256 value="39d0e2b3dc45af65a09b097945750a94a126e052e124f93468443a1d0e15f381" origin="Generated by Gradle"/>
4369-
</artifact>
4370-
</component>
4371-
<component group="org.ow2.asm" name="asm" version="9.5">
4372-
<artifact name="asm-9.5.jar">
4373-
<sha256 value="b62e84b5980729751b0458c534cf1366f727542bb8d158621335682a460f0353" origin="Generated by Gradle"/>
4374-
</artifact>
4375-
</component>
4376-
<component group="org.ow2.asm" name="asm" version="9.6">
4377-
<artifact name="asm-9.6.jar">
4378-
<sha256 value="3c6fac2424db3d4a853b669f4e3d1d9c3c552235e19a319673f887083c2303a1" origin="Generated by Gradle"/>
4379-
</artifact>
4380-
</component>
43814334
<component group="org.ow2.asm" name="asm" version="9.7.1">
43824335
<artifact name="asm-9.7.1.jar">
43834336
<sha256 value="8cadd43ac5eb6d09de05faecca38b917a040bb9139c7edeb4cc81c740b713281" origin="Generated by Gradle"/>

modules/repository-azure/build.gradle

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -62,20 +62,20 @@ dependencies {
6262
api "com.github.stephenc.jcip:jcip-annotations:1.0-1"
6363
api "com.nimbusds:content-type:2.3"
6464
api "com.nimbusds:lang-tag:1.7"
65-
api("com.nimbusds:nimbus-jose-jwt:9.37.3"){
65+
api("com.nimbusds:nimbus-jose-jwt:10.0.1"){
6666
exclude group: 'com.google.crypto.tink', module: 'tink' // it's an optional dependency on which we don't rely
6767
}
68-
api("com.nimbusds:oauth2-oidc-sdk:11.9.1"){
68+
api("com.nimbusds:oauth2-oidc-sdk:11.22.2"){
6969
exclude group: 'com.google.crypto.tink', module: 'tink' // it's an optional dependency on which we don't rely
7070
}
7171
api "jakarta.activation:jakarta.activation-api:1.2.1"
7272
api "jakarta.xml.bind:jakarta.xml.bind-api:2.3.3"
7373
api "net.java.dev.jna:jna-platform:${versions.jna}" // Maven says 5.14.0 but this aligns with the Elasticsearch-wide version
7474
api "net.java.dev.jna:jna:${versions.jna}" // Maven says 5.14.0 but this aligns with the Elasticsearch-wide version
75-
api "net.minidev:accessors-smart:2.5.0"
76-
api "net.minidev:json-smart:2.5.0"
75+
api "net.minidev:accessors-smart:2.5.2"
76+
api "net.minidev:json-smart:2.5.2"
7777
api "org.codehaus.woodstox:stax2-api:4.2.2"
78-
api "org.ow2.asm:asm:9.3"
78+
api "org.ow2.asm:asm:9.7.1"
7979

8080
runtimeOnly "com.google.code.gson:gson:2.11.0"
8181
runtimeOnly "org.cryptomator:siv-mode:1.5.2"
@@ -189,11 +189,6 @@ tasks.named("thirdPartyAudit").configure {
189189
'org.bouncycastle.cert.X509CertificateHolder',
190190
'org.bouncycastle.cert.jcajce.JcaX509CertificateHolder',
191191
'org.bouncycastle.cert.jcajce.JcaX509v3CertificateBuilder',
192-
'org.bouncycastle.crypto.InvalidCipherTextException',
193-
'org.bouncycastle.crypto.engines.AESEngine',
194-
'org.bouncycastle.crypto.modes.GCMBlockCipher',
195-
'org.bouncycastle.jcajce.provider.BouncyCastleFipsProvider',
196-
'org.bouncycastle.jce.provider.BouncyCastleProvider',
197192
'org.bouncycastle.openssl.PEMKeyPair',
198193
'org.bouncycastle.openssl.PEMParser',
199194
'org.bouncycastle.openssl.jcajce.JcaPEMKeyConverter',

x-pack/plugin/security/build.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,21 +79,21 @@ dependencies {
7979
runtimeOnly "joda-time:joda-time:2.10.10"
8080

8181
// Dependencies for oidc
82-
api "com.nimbusds:oauth2-oidc-sdk:11.10.1"
82+
api "com.nimbusds:oauth2-oidc-sdk:11.22.2"
8383
api project(path: xpackModule('security:lib:nimbus-jose-jwt-modified'), configuration: 'shadow')
8484
if (isEclipse) {
8585
/*
8686
* Eclipse can't pick up the shadow dependency so we point it at the unmodified version of the library
8787
* so it can compile things.
8888
*/
89-
api "com.nimbusds:nimbus-jose-jwt:9.37.3"
89+
api "com.nimbusds:nimbus-jose-jwt:10.0.1"
9090
}
91-
api "com.nimbusds:lang-tag:1.4.4"
91+
api "com.nimbusds:lang-tag:1.7"
9292
api "com.sun.mail:jakarta.mail:1.6.3"
9393
api "net.jcip:jcip-annotations:1.0"
94-
api "net.minidev:json-smart:2.5.1"
95-
api "net.minidev:accessors-smart:2.4.2"
96-
api "org.ow2.asm:asm:8.0.1"
94+
api "net.minidev:json-smart:2.5.2"
95+
api "net.minidev:accessors-smart:2.5.2"
96+
api "org.ow2.asm:asm:9.7.1"
9797

9898
testImplementation "org.elasticsearch:mocksocket:${versions.mocksocket}"
9999

x-pack/plugin/security/lib/nimbus-jose-jwt-modified-part1/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ apply plugin: 'com.gradleup.shadow'
1111
// See the build.gradle file in the parent directory for an explanation of this unusual build
1212

1313
dependencies {
14-
implementation "com.nimbusds:nimbus-jose-jwt:9.37.3"
14+
implementation "com.nimbusds:nimbus-jose-jwt:10.0.1"
1515
}
1616

1717
tasks.named('shadowJar').configure {

x-pack/plugin/security/lib/nimbus-jose-jwt-modified/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ apply plugin: 'com.gradleup.shadow'
1111
// See the build.gradle file in the parent directory for an explanation of this unusual build
1212

1313
dependencies {
14-
implementation "com.nimbusds:nimbus-jose-jwt:9.37.3"
14+
implementation "com.nimbusds:nimbus-jose-jwt:10.0.1"
1515
implementation project(path: xpackModule('security:lib:nimbus-jose-jwt-modified-part2'), configuration: 'shadow')
1616
}
1717

x-pack/plugin/security/lib/nimbus-jose-jwt-modified/src/main/java/com/nimbusds/jose/util/JSONObjectUtils.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import java.security.PrivilegedActionException;
1414
import java.security.PrivilegedExceptionAction;
1515
import java.text.ParseException;
16+
import java.util.Date;
1617
import java.util.List;
1718
import java.util.Map;
1819

@@ -192,6 +193,16 @@ public static Base64URL getBase64URL(final Map<String, Object> o, final String k
192193
}
193194
}
194195

196+
public static Date getEpochSecondAsDate(final Map<String, Object> o, final String key) throws ParseException {
197+
try {
198+
return AccessController.doPrivileged(
199+
(PrivilegedExceptionAction<Date>) () -> org.elasticsearch.nimbus.jose.util.JSONObjectUtils.getEpochSecondAsDate(o, key)
200+
);
201+
} catch (PrivilegedActionException e) {
202+
throw (ParseException) e.getException();
203+
}
204+
}
205+
195206
public static String toJSONString(final Map<String, ?> o) {
196207
return AccessController.doPrivileged(
197208
(PrivilegedAction<String>) () -> org.elasticsearch.nimbus.jose.util.JSONObjectUtils.toJSONString(o)

0 commit comments

Comments
 (0)