File tree Expand file tree Collapse file tree 5 files changed +15
-1
lines changed
plugin/security/src/main/java/org/elasticsearch/xpack/security/authc
qa/rolling-upgrade/src/test
java/org/elasticsearch/upgrades
resources/rest-api-spec/test Expand file tree Collapse file tree 5 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ public final class TokenService {
180180 private static final String TOKEN_DOC_ID_PREFIX = TOKEN_DOC_TYPE + "_" ;
181181 static final int MINIMUM_BYTES = VERSION_BYTES + SALT_BYTES + IV_BYTES + 1 ;
182182 static final int MINIMUM_BASE64_BYTES = Double .valueOf (Math .ceil ((4 * MINIMUM_BYTES ) / 3 )).intValue ();
183- static final Version VERSION_TOKENS_INDEX_INTRODUCED = Version .V_8_0_0 ; // TODO change upon backport
183+ static final Version VERSION_TOKENS_INDEX_INTRODUCED = Version .V_7_1_0 ;
184184 static final Version VERSION_ACCESS_TOKENS_AS_UUIDS = Version .V_7_1_0 ;
185185 static final Version VERSION_MULTIPLE_CONCURRENT_REFRESHES = Version .V_7_1_0 ;
186186 // UUIDs are 16 bytes encoded base64 without padding, therefore the length is (16 / 3) * 4 + ((16 % 3) * 8 + 5) / 6 chars
Original file line number Diff line number Diff line change 77
88import org .apache .http .HttpHeaders ;
99import org .apache .http .HttpHost ;
10+ import org .apache .lucene .util .LuceneTestCase ;
1011import org .elasticsearch .Version ;
1112import org .elasticsearch .client .Request ;
1213import org .elasticsearch .client .RequestOptions ;
2526import java .util .List ;
2627import java .util .Map ;
2728
29+ @ LuceneTestCase .AwaitsFix (bugUrl = "https://github.com/elastic/elasticsearch/pull/41673" )
2830public class TokenBackwardsCompatibilityIT extends AbstractUpgradeTestCase {
2931
3032 private Collection <RestClient > twoClients = null ;
Original file line number Diff line number Diff line change 22" Get the indexed token and use if to authenticate " :
33 - skip :
44 features : headers
5+ version : " all"
6+ reason : " Backport https://github.com/elastic/elasticsearch/pull/41673"
57
68 - do :
79 cluster.health :
5961" Get the indexed refreshed access token and use if to authenticate " :
6062 - skip :
6163 features : headers
64+ version : " all"
65+ reason : " Backport https://github.com/elastic/elasticsearch/pull/41673"
6266
6367 - do :
6468 get :
111115" Get the indexed refresh token and use it to get another access token and authenticate " :
112116 - skip :
113117 features : headers
118+ version : " all"
119+ reason : " Backport https://github.com/elastic/elasticsearch/pull/41673"
114120
115121 - do :
116122 get :
Original file line number Diff line number Diff line change 22" Create a token and reuse it across the upgrade " :
33 - skip :
44 features : headers
5+ version : " all"
6+ reason : " Backport https://github.com/elastic/elasticsearch/pull/41673"
57
68 - do :
79 cluster.health :
Original file line number Diff line number Diff line change 22" Get the indexed token and use if to authenticate " :
33 - skip :
44 features : headers
5+ version : " all"
6+ reason : " Backport https://github.com/elastic/elasticsearch/pull/41673"
57
68 - do :
79 cluster.health :
4951" Get the indexed refresh token and use if to get another access token and authenticate " :
5052 - skip :
5153 features : headers
54+ version : " all"
55+ reason : " Backport https://github.com/elastic/elasticsearch/pull/41673"
5256
5357 - do :
5458 get :
You can’t perform that action at this time.
0 commit comments