Hello,
elasticsearch and kibana version: 8.7.1
readonlyrest version: 1.52
readonlyrest:
response_if_req_forbidden: Forbidden by ReadonlyREST ES plugin
prompt_for_basic_auth: false
access_control_rules:
- name: "local user: elasticsearch"
type: allow
auth_key: mydomain-elasticsearch:PASSWORD
- name: "local user: kibana"
kibana:
access: unrestricted
type: allow
auth_key: kibana_system:PASSWORD
- name: "kibana users"
kibana_access: "admin"
proxy_auth:
proxy_auth_config: "myproxy"
users: ["*"]
ldap_authorization:
name: "myldap"
groups: ["mydomain-log-users"]
proxy_auth_configs:
- name: "myproxy"
user_id_header: "X-Forwarded-User"
ldaps:
- name: myldap
host: "mydomain.local"
port: 3268
ssl_enabled: false
ssl_trust_all_certs: true
ignore_ldap_connectivity_problems: true
bind_dn: "BIND_DN"
bind_password: "PASSWORD"
search_user_base_DN: "BASE_DN"
user_id_attribute: "sAMAccountName"
search_groups_base_DN: "GROUP_BASE_DN"
unique_member_attribute: "member"
connection_pool_size: 20
connection_timeout: 1s
request_timeout: 2s
cache_ttl_in_sec: 300
group_search_filter: "(objectClass=group)(|(CN=mydomain-log-*)(CN=Domain Admins))"
nested_groups_depth: 3
group_name_attribute: "cn"
circuit_breaker:
max_retries: 2
reset_duration: 5s
I have the situation when I have the group âmydomain-log-usersâ and the group âdb-engineersâ inside âmydomain-log-usersâ. My goal - let the users in group âdb-engineersâ get the access to âkibana usersâ access rule (to avoid add all users from group âdb-engineersâ directly to the group âmydomain-log-usersâ). I add the ânested_groups_depth: 3â parameter, but the users from the âdb-engineersâ group don`t have access.
The Elasticsearch log when I cannot login:
{"@timestamp":"2023-10-25T09:26:33.543Z", "log.level": "INFO", "message":"\u001B[35mFORBIDDEN by default req={ ID:147697960-1895344749#2211785, TYP:RRUserMetadataRequest, CGR:<N/A>, USR:[no info about user], BRS:true, KDX:null, ACT:cluster:internal_ror/user_metadata/get, OA:10.244.5.152/32, XFF:null, DA:10.244.132.12/32, IDX:<N/A>, MET:GET, PTH:/_readonlyrest/metadata/current_user, CNT:<N/A>, HDR:Accept-Encoding=gzip,deflate, Accept=*/*, Connection=close, Host=mydomain-elasticsearch-elk:9200, User-Agent=node-fetch/1.0 (+https://github.com/bitinn/node-fetch), content-length=0, elastic-apm-traceparent=00-ea46aa55395e8a75ad0c-94edf2ffc2a3650e-00, traceparent=00-ea46aebea553933005ad442f0c-943650e-00, tracestate=es=s:0, x-forwarded-user=testuser, HIS:[local user: elasticsearch-> RULES:[auth_key->false]], [local user: kibana-> RULES:[auth_key->false]], [kibana users-> RULES:[proxy_auth->true, ldap_authorization->false] RESOLVED:[user=testuser]], }\u001B[0m", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"scala-execution-context-global-46","log.logger":"tech.beshu.ror.accesscontrol.logging.AccessControlLoggingDecorator","elasticsearch.cluster.uuid":"dXGIF-jaSJ64pwNFPAHA","elasticsearch.node.id":"r1ZjM-bCcrmV-RK8xdA","elasticsearch.node.name":"mydomain-elasticsearch-elk-0","elasticsearch.cluster.name":"mydomain-elasticsearch"}
Where is my wrong actions, please help to fix it.
Thanks in advance.