Skip to content

[BUG] unnecessary warning about JWKS on JWT auth domain #6104

@rursprung

Description

@rursprung

What is the bug?
defining a JWT auth domain with a public key rather than JWKS leads to the following warnings in the logs:

{"type": "server", "timestamp": "2026-04-22T13:53:59,872+0000", "level": "WARN", "component": "o.o.s.a.h.j.k.HTTPJwtKeyByJWKSAuthenticator", "cluster.name": "test-opensearch", "node.name": "test-opensearch-0", "message": "jwks_uri is not configured, will use static JWT authentication fallback", "cluster.uuid": "KuIGqc7HSQ6myDn6WbTYcA", "node.id": "mPH-Bb3xSB-vgUbZszl0Gw"  }
{"type": "server", "timestamp": "2026-04-22T13:53:59,879+0000", "level": "WARN", "component": "o.o.s.a.h.j.k.HTTPJwtKeyByJWKSAuthenticator", "cluster.name": "test-opensearch", "node.name": "test-opensearch-0", "message": "jwks_uri is not configured, falling back to static JWT authentication", "cluster.uuid": "KuIGqc7HSQ6myDn6WbTYcA", "node.id": "mPH-Bb3xSB-vgUbZszl0Gw"  }

IMHO these should be DEBUG or at best INFO level messages.

How can one reproduce the bug?
define an auth domain like this:

      jwt_auth_domain:
        description: "Authenticate via Json Web Token"
        http_enabled: true
        transport_enabled: true
        order: 1
        http_authenticator:
          type: jwt
          challenge: false
          config:
            signing_key: your-public-key-here
            jwt_header: "Authorization"
            jwt_url_parameter: null
            roles_key: example_roles
            subject_key: null
            required_issuer: example
            required_audience: example
        authentication_backend:
          type: noop

What is the expected behavior?
defining a JWT auth domain with a public key rather than JWKS should be perfectly acceptable.

What is your host/environment?

  • OS: linux
  • Version OpenSearch 3.6.0
  • Plugins security

Do you have any screenshots?
n/a

Do you have any additional context?
this warning did not exist in 2.x

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriagedIssues labeled as 'Triaged' have been reviewed and are deemed actionable.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions