Skip to content

[BUG] Super admin API is not accessible even if you have wildcard cluster_ permissions #5950

@tkxkd0159

Description

@tkxkd0159

What is the bug?
I set all_access role to my user and set set node config like below:

plugins.security.restapi.roles_enabled: [ all_access, security_rest_api_access ]
plugins.security.restapi.admin.enabled: true
plugins.security.nodes_dn_dynamic_config_enabled: true
plugins.security.ssl_cert_reload_enabled: true

and my all_access has all permissions like below:

{
  "all_access" : {
    "reserved" : true,
    "hidden" : false,
    "description" : "Allow full access to all indices and all cluster APIs",
    "cluster_permissions" : [
      "*"
    ],
    "index_permissions" : [
      {
        "index_patterns" : [
          "*"
        ],
        "fls" : [ ],
        "masked_fields" : [ ],
        "allowed_actions" : [
          "*"
        ]
      }
    ],
...

However, I am still unable to access super admin security APIs (e.g., allowlist, ssl/certs, nodesdn) by default. Access works only if I explicitly assign granular permissions like restapi:admin/allowlist to my account. Is it intentional that the wildcard cluster_permissions does not inherit these permissions?"

How can one reproduce the bug?
Steps to reproduce the behavior:

  1. Assign all_access to my account. I used clientcert authentication.
  2. Call _plugins/_security/api/ssl/certs and See { "status" : "FORBIDDEN", "message" : "Access denied" }
  3. Assign restapi:admin/ssl/certs/info explicitly
  4. Call _plugins/_security/api/ssl/certs and See 200 response

What is the expected behavior?
Access any API with wildcard permission if it's enabled

What is your host/environment?

  • OS: OSX 15.7
  • Version: 3.4.0
  • Plugins

Do you have any screenshots?
If applicable, add screenshots to help explain your problem.

Do you have any additional context?
Add any other context about the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriagedIssues labeled as 'Triaged' have been reviewed and are deemed actionable.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions