Skip to content

Commit

Permalink
Change the min supported version to 6.7.0 for API keys
Browse files Browse the repository at this point in the history
This commit changes the minimum supported version to 6.7.0
for API keys, the change for the API keys has been backported
to 6.7.0 version elastic#38399
  • Loading branch information
Yogesh Gaikwad committed Feb 6, 2019
1 parent 57600c5 commit a00d1e7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,11 @@ public void createApiKey(Authentication authentication, CreateApiKeyRequest requ
final Instant expiration = getApiKeyExpiration(created, request);
final SecureString apiKey = UUIDs.randomBase64UUIDSecureString();
final Version version = clusterService.state().nodes().getMinNodeVersion();
if (version.before(Version.V_7_0_0)) { // TODO(jaymode) change to V6_6_0 on backport!
if (version.before(Version.V_6_7_0)) {
logger.warn(
"nodes prior to the minimum supported version for api keys {} exist in the cluster;"
+ " these nodes will not be able to use api keys",
Version.V_7_0_0);
Version.V_6_7_0);
}

final char[] keyHash = hasher.hash(apiKey);
Expand Down

0 comments on commit a00d1e7

Please sign in to comment.