Skip to content

[CI] JwtRealmSingleNodeTests testClientSecretRotation failing #122863

@elasticsearchmachine

Description

@elasticsearchmachine

Build Scans:

Reproduction Line:

./gradlew ":x-pack:plugin:security:internalClusterTest" --tests "org.elasticsearch.xpack.security.authc.jwt.JwtRealmSingleNodeTests.testClientSecretRotation" -Dtests.seed=DA59A1A6C6C81894 -Dtests.locale=ca-ES-VALENCIA -Dtests.timezone=America/Mendoza -Druntime.java=24

Applicable branches:
main

Reproduces locally?:
N/A

Failure History:
See dashboard

Failure Message:

org.elasticsearch.client.ResponseException: method [GET], host [http://127.0.0.1:9200], URI [/_security/_authenticate], status line [HTTP/1.1 401 Unauthorized]
{"error":{"root_cause":[{"type":"unavailable_shards_exception","reason":"at least one search shard for the index [.security-7] is unavailable"}],"type":"security_exception","reason":"error attempting to authenticate request","additional_unsuccessful_credentials":"oauth2 token: invalid token","caused_by":{"type":"unavailable_shards_exception","reason":"at least one search shard for the index [.security-7] is unavailable"},"header":{"WWW-Authenticate":["ApiKey","Basic realm=\"security\", charset=\"UTF-8\""]}},"status":401}

Issue Reasons:

  • [main] 2 failures in test testClientSecretRotation (0.4% fail rate in 472 executions)
  • [main] 2 failures in pipeline elasticsearch-periodic-platform-support (15.4% fail rate in 13 executions)

Note:
This issue was created using new test triage automation. Please report issues or feedback to es-delivery.

Metadata

Metadata

Labels

:Security/AuthenticationLogging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc)>test-failureTriaged test failures from CITeam:SecurityMeta label for security teamlow-riskAn open issue or test failure that is a low risk to future releases

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions