Anonymous authentication익명 인증
The Security plugin supports anonymous authentication, through which a user is able to access a cluster without providing credentials. This is useful in cases where you want lots of people to be able to access your cluster with a common set of privileges.
보안 플러그인은 사용자가 자격 증명을 제공하지 않고 클러스터에 액세스할 수 있는 익명 인증을 지원합니다. 이는 많은 사람들이 공통 권한 집합으로 클러스터에 액세스할 수 있도록 하려는 경우에 유용합니다.
Configuration구성
To enable anonymous authentication, you need to modify the config.yml file inside the opensearch-security configuration subdirectory of your cluster.
익명 인증을 활성화하려면 클러스터의 opensearch-security 구성 하위 디렉터리 내에서 config.yml 파일을 수정해야 합니다.
In the config.yml file, there is an http section, which includes the anonymous_auth_enabled setting:
config.yml 파일에는 anonymous_auth_enabled 설정이 포함된 http 섹션이 있습니다.
http:
anonymous_auth_enabled: <true|false>
...
The following table describes the anonymous_auth_enabled setting. For more information, see the configuration file overview.
다음 표에서는 anonymous_auth_enabled 설정에 대해 설명합니다. 자세한 내용은 구성 파일 개요를 참조하십시오.
Setting설정 Description묘사
anonymous_auth_enabled Either enables or disables anonymous authentication. When you enable anonymous authentication, all defined HTTP authenticators are non-challenging. See The challenge setting.
익명 인증을 사용하거나 사용하지 않도록 설정합니다. 익명 인증을 활성화하면 정의된 모든 HTTP 인증자가 문제가 되지 않습니다. 챌린지 설정을 참조하십시오.
If you disable anonymous authentication, you must provide at least one authc in order for the Security plugin to initialize successfully.
익명 인증을 비활성화하는 경우 보안 플러그인이 성공적으로 초기화되도록 하나 이상의 인증을 제공해야 합니다.
OpenSearch Dashboards configuration
OpenSearch Dashboards 구성
To enable anonymous authentication for OpenSearch Dashboards, you need to modify the opensearch_dashboards.yml file in the configuration directory of your OpenSearch Dashboards installation.
OpenSearch Dashboards에 대한 익명 인증을 활성화하려면 OpenSearch Dashboards 설치의 구성 디렉터리에서 opensearch_dashboards.yml 파일을 수정해야 합니다.
Add the following setting to opensearch_dashboards.yml:
다음 설정을 opensearch_dashboards.yml에 추가합니다.
opensearch_security.auth.anonymous_auth_enabled: true
Anonymous login for OpenSearch Dashboards requires anonymous authentication to be enabled on the OpenSearch cluster.
OpenSearch 대시보드에 대한 익명 로그인을 사용하려면 OpenSearch 클러스터에서 익명 인증을 활성화해야 합니다.
Defining anonymous authentication privileges익명 인증 권한 정의
When anonymous authentication is enabled, your defined HTTP authenticators still try to find user credentials inside your HTTP request. If credentials are found, the user is authenticated. If none are found, the user is authenticated as an anonymous user.
익명 인증이 활성화된 경우 정의된 HTTP 인증자는 여전히 HTTP 요청 내에서 사용자 자격 증명을 찾으려고 시도합니다. 자격 증명이 발견되면 사용자가 인증됩니다. 아무 것도 발견되지 않으면 사용자는 익명 사용자로 인증됩니다.
All anonymous users have the username anonymous and a single role named anonymous_backendrole.
모든 익명 사용자는 사용자 이름이 anonymous이고 anonymous_backendrole이라는 단일 역할이 있습니다.
You can configure the privileges associated with the opendistro_security_anonymous_backendrole in the roles.yml file.
roles.yml 파일에서 opendistro_security_anonymous_backendrole와 연결된 권한을 구성할 수 있습니다.
We recommend that your defined role have very limited privileges. Generally, an anonymous user should never be able to write to your cluster.
정의된 역할은 매우 제한된 권한을 갖는 것이 좋습니다. 일반적으로 익명 사용자는 클러스터에 쓸 수 없어야 합니다.
The following is an example role definition for an anonymous_users_role. You can use this example as a reference for defining your own role in the roles.yml file:
다음은 anonymous_users_role에 대한 역할 정의의 예입니다. 이 예제를 roles.yml 파일에서 고유한 역할을 정의하기 위한 참조로 사용할 수 있습니다.
anonymous_users_role:
reserved: false
hidden: false
cluster_permissions:
- "OPENDISTRO_SECURITY_CLUSTER_COMPOSITE_OPS"
index_permissions:
- index_patterns:
- "public_index_*"
allowed_actions:
- "read"
Copy
Then, in the roles_mapping.yml file, you can define the appropriate mapping for this new role:
그런 다음 roles_mapping.yml 파일에서 이 새 역할에 대한 적절한 매핑을 정의할 수 있습니다.
anonymous_users_role:
reserved: false
hidden: false
backend_roles: ["opendistro_security_anonymous_backendrole"]
hosts: []
Copy
Notice that the role is mapped to opendistro_security_anonymous_backendrole, which means that all users with the anonymous user backend role will have these privileges.
역할은 opendistro_security_anonymous_backendrole에 매핑되며, 이는 익명 사용자 백엔드 역할이 있는 모든 사용자가 이러한 권한을 갖게 됨을 의미합니다.
Alternatively, you can complete these steps using the REST API or OpenSearch Dashboards.
또는 REST API 또는 OpenSearch Dashboards를 사용하여 이러한 단계를 완료할 수 있습니다.