-
Couldn't load subscription status.
- Fork 337
Closed
Labels
bugSomething isn't workingSomething isn't workingtriagedIssues labeled as 'Triaged' have been reviewed and are deemed actionable.Issues labeled as 'Triaged' have been reviewed and are deemed actionable.
Description
What is the bug?
While basic+saml security configuration every user login generate a lot of WARN message in logs:
[2024-02-16T11:24:43,253][WARN ][o.o.s.h.HTTPBasicAuthenticator] [elk-h01.test.logs.infra.rbc.ru] No 'Basic Authorization' header, send 401 and 'WWW-Authenticate Basic'
[2024-02-16T11:24:43,261][WARN ][o.o.s.h.HTTPBasicAuthenticator] [elk-h01.test.logs.infra.rbc.ru] No 'Basic Authorization' header, send 401 and 'WWW-Authenticate Basic'
[2024-02-16T11:24:43,368][WARN ][o.o.s.h.HTTPBasicAuthenticator] [elk-h01.test.logs.infra.rbc.ru] No 'Basic Authorization' header, send 401 and 'WWW-Authenticate Basic'
[2024-02-16T11:24:43,374][WARN ][o.o.s.h.HTTPBasicAuthenticator] [elk-h01.test.logs.infra.rbc.ru] No 'Basic Authorization' header, send 401 and 'WWW-Authenticate Basic'
This complicates debugging, takes up extra disk space, etc.
How can one reproduce the bug?
Steps to reproduce the behavior:
- Take some adfs server
- Create security config like this:
---
_meta:
type: config
config_version: 2
config:
dynamic:
kibana:
server_username: opensearch_dashboards
index: ".kibana"
authc:
basic_internal_auth_domain:
description: Authenticate via HTTP Basic against internal users database
http_enabled: true
transport_enabled: true
order: 1
http_authenticator:
type: basic
challenge: false
authentication_backend:
type: intern
saml_auth_domain:
http_enabled: true
transport_enabled: false
order: 2
http_authenticator:
type: saml
challenge: true
config:
idp:
metadata_url: <metadata_url>
entity_id: <entity_id>
sp:
entity_id: <entity_id>
kibana_url: <kibana_url>
roles_key: roles
exchange_key: <some_key>
authentication_backend:
type: noop
- Login adfs user
- See log file in OpenSearch node
What is the expected behavior?
This log message see only on TRACE/DEBUG level.
What is your host/environment?
- OS: CentOS Linux release 7.8.2003
- Version opensearch-2.11.1-1.x86_64
- Plugins: default
Do you have any screenshots?
No
Do you have any additional context?
This problem was marked as resolved in #3273, but:
- In fix fixed message "No 'Authorization' header, send 401 and 'WWW-Authenticate Basic'", but problematic message is "No 'Basic Authorization' header, send 401 and 'WWW-Authenticate Basic'"
- It fixed in class BackendRegistry but problematic message produced by o.o.s.h.HTTPBasicAuthenticator class.
Also i found problematic message this:
| log.warn("No 'Basic Authorization' header, send 401 and 'WWW-Authenticate Basic'"); |
Jakob3xD, brmb and rudonx
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingtriagedIssues labeled as 'Triaged' have been reviewed and are deemed actionable.Issues labeled as 'Triaged' have been reviewed and are deemed actionable.