System Ubuntu 18.04.4 LTS
Security Config.yml Section
jwt_auth_domain:
description: "Authenticate via Json Web Token"
#enabled: true
http_enabled: true
transport_enabled: true
order: 0
http_authenticator:
type: jwt
challenge: false
config:
signing_key: |-
-----BEGIN PUBLIC KEY-----
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
JwIDAQAB
-----END PUBLIC KEY-----
jwt_header: "Authorization"
jwt_url_parameter: "jwtToken"
roles_key: "roles"
subject_key: "sub"
authentication_backend:
type: noop
When I try to authenticate, like this:
curl -k https://127.0.0.1:9200/content/ -H 'Authorization: Bearer eyJ0eAAAAAA.AAAAAAAA.AAAAAA'
my logs show
[2020-07-20T20:45:14,499][ERROR][c.a.d.a.h.j.HTTPJwtAuthenticator] [ip-172-31-57-124] Missing Signing Key. JWT authentication will not work
[2020-07-20T20:45:17,002][ERROR][c.a.d.a.h.j.HTTPJwtAuthenticator] [ip-172-31-57-124] Missing Signing Key. JWT authentication will not work
[2020-07-20T20:45:19,505][ERROR][c.a.d.a.h.j.HTTPJwtAuthenticator] [ip-172-31-57-124] Missing Signing Key. JWT authentication will not work
[2020-07-20T20:45:19,651][ERROR][c.a.d.a.h.j.HTTPJwtAuthenticator] [ip-172-31-57-124] Missing Signing Key. JWT authentication will not work
[2020-07-20T20:45:19,652][WARN ][c.a.o.s.h.HTTPBasicAuthenticator] [ip-172-31-57-124] No 'Basic Authorization' header, send 401 and 'WWW-Authenticate Basic'
[2020-07-20T20:45:22,008][ERROR][c.a.d.a.h.j.HTTPJwtAuthenticator] [ip-172-31-57-124] Missing Signing Key. JWT authentication will not work
I am using this command to update the configs
./securityadmin.sh -cd ../securityconfig/ -icl -nhnv -cacert /etc/elasticsearch/root-ca.pem -cert /etc/elasticsearch/kirk.pem -key /etc/elasticsearch/kirk-key.pem
It completed with Done with success.
I am sure that I am doing something wrong, but I’m not too sure what