Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation regarding permissions needed to use SLM wizard in Kibana #58883

Closed
joshjanoski opened this issue Feb 28, 2020 · 1 comment · Fixed by #59451
Closed

Documentation regarding permissions needed to use SLM wizard in Kibana #58883

joshjanoski opened this issue Feb 28, 2020 · 1 comment · Fixed by #59451
Labels
Feature:Snapshot and Restore Elasticsearch snapshots and repositories UI Team:Docs

Comments

@joshjanoski
Copy link

I wanted to request an update to the documentation for the Snapshot Lifecycle Management in Kibana. I was trying to create a role that would allow a user to only access the SLM wizard and view, create, and edit SLM policies. I found that there wasn't clear documentation on how to do this correctly.

The documentation here: https://www.elastic.co/guide/en/kibana/7.6/snapshot-repositories.html doesn't have any information regarding what permissions are needed, and the documentation here: https://www.elastic.co/guide/en/elasticsearch/reference/current/snapshot-lifecycle-management.html covers the permissions needed if you are just using the API, but they don't cover the permissions needed for the Kibana wizard.

I discovered through trial and error that these are the permissions needed:

Screen Shot 2020-02-27 at 10 12 37 AM

PUT _security/role/slm_admin
{
  "cluster": [
    "monitor",
    "manage_slm",
    "cluster:admin/snapshot",
    "cluster:admin/repository"
  ],
  "indices": [
    {
      "names": [
        "monitor"
      ],
      "privileges": [
        "all"
      ],
      "field_security": {
        "grant": [
          "*"
        ],
        "except": []
      },
      "allow_restricted_indices": false
    }
  ],
  "applications": [
    {
      "application": "kibana-.kibana",
      "privileges": [
        "feature_advancedSettings.read"
      ],
      "resources": [
        "space:default"
      ]
    }
  ],
  "run_as": [],
  "metadata": {},
  "transient_metadata": {
    "enabled": true
  }
}

The above permissions allowed me to log into Kibana, access the Advanced Settings section, and view, create, and edit SLM policies. I wanted to see if we could get these permissions documented so that it is clear what permissions are needed for the wizard. Thank you for considering this update!

@joshjanoski joshjanoski added Team:Docs Feature:Snapshot and Restore Elasticsearch snapshots and repositories UI labels Feb 28, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-docs (Team:Docs)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Snapshot and Restore Elasticsearch snapshots and repositories UI Team:Docs
Projects
None yet
2 participants