Skip to content

Commit b772d5a

Browse files
Added new option skip_users to client cert authenticator issue #4378 (#10860)
* Added new option skip_users to client cert authenticator (clientcert_auth_domain.http_authenticator.config.skip_users in config.yml)[#4378] Signed-off-by: Asif Bashar <[email protected]> * Added new option skip_users to client cert authenticator (clientcert_auth_domain.http_authenticator.config.skip_users in config.yml)[#4378] Signed-off-by: Asif Bashar <[email protected]> * Apply suggestions from code review Signed-off-by: Nathan Bower <[email protected]> * Update _security/authentication-backends/client-auth.md Signed-off-by: Nathan Bower <[email protected]> --------- Signed-off-by: Asif Bashar <[email protected]> Signed-off-by: Nathan Bower <[email protected]> Co-authored-by: Nathan Bower <[email protected]>
1 parent f689f1a commit b772d5a

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

_security/authentication-backends/client-auth.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ clientcert_auth_domain:
3636
type: clientcert
3737
config:
3838
username_attribute: cn #optional, if omitted DN becomes username
39+
skip_users:
40+
- "DC=de,L=test,O=users,OU=bridge,CN=dashboard"
3941
challenge: false
4042
authentication_backend:
4143
type: noop
@@ -90,6 +92,22 @@ print(response.text)
9092
```
9193

9294
{% comment %}
95+
96+
### (Advanced) Exclude certain users from client cert authentication
97+
98+
If you are using multiple authentication methods, it can make sense to exclude certain users from the client cert authentication.
99+
100+
Consider the following scenario for a typical OpenSearch Dashboards setup: OpenSearch Dashboard has basic auth setup and user login from a browser. However, you also have an OpenSearch Dashboards server user. OpenSearch Dashboards uses this user to manage stored objects and perform monitoring and maintenance tasks. You do not want to use this user certificate to log in a user who submitted basic auth logic from a browser.
101+
102+
In this case, it makes sense to exclude the OpenSearch Dashboards server user from the client cert authentication so that the user who enters login information in the browser is validated. You can use the `skip_users` configuration setting to define which users should be skipped. Wildcards and regular expressions are supported:
103+
104+
```yml
105+
106+
skip_users:
107+
- "DC=de,L=test,O=users,OU=bridge,CN=dashboard"
108+
109+
```
110+
93111
## Configuring Beats
94112

95113
You can also configure your Beats so that it uses a client certificate for authentication with OpenSearch. Afterwards, it can start sending output to OpenSearch.

0 commit comments

Comments
 (0)