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

Permission problem "*" vs "all" - Kibana report generation #170003

Open
3kt opened this issue Oct 27, 2023 · 3 comments
Open

Permission problem "*" vs "all" - Kibana report generation #170003

3kt opened this issue Oct 27, 2023 · 3 comments
Assignees
Labels
bug Fixes for quality problems that affect the customer experience docs Feature:Reporting:Framework Reporting issues pertaining to the overall framework SharedUX/fix-it-week Bugs that have been groomed and queued up for the team's next fix it week Team:SharedUX Team label for AppEx-SharedUX (formerly Global Experience)

Comments

@3kt
Copy link

3kt commented Oct 27, 2023

Kibana version: 8.10.4

Elasticsearch version: 8.10.4

Server OS version: Ubuntu 20.04

Browser version: Brave 1.59.122

Browser OS version: MacOs Ventura 13.6

Original install method (e.g. download page, yum, from source, etc.): apt-get

Describe the bug:

The permissions listed in the documentation do not allow the generation of pdf reports with watcher. More precisely, the all permission on Kibana scope isn't enough, and * permission is required instead.

Steps to reproduce:

  1. Follow the documentation steps for reporting configuration and watcher automation configuration
  2. Manually run the watcher (POST /_watcher/watch/[watcher_id]/_execute), you will be greeted with a permission error:

image

  1. Extending the permissions to all on Kibana will not solve the issue:
  "applications": [
    {
      "application": "kibana-.kibana",
      "privileges": [
        "all"
      ],
      "resources": [
        "*"
      ]
    }
  ],
  1. However, granting * permission on Kibana will:
  "applications": [
    {
      "application": "kibana-.kibana",
      "privileges": [
        "*"
      ],
      "resources": [
        "*"
      ]
    }
  ],
image

Expected behavior: documentation should accurately list the required permissions, and all privilege should grant report generation permission.

Screenshots (if relevant): inline in steps description

Errors in browser console (if relevant):

Provide logs and/or server output (if relevant):

Any additional context:

This has multiple layers to it:

  1. Documentation seems to be wrong / out of date
  2. Why does * permission grant accesses that all doesn't?
@3kt 3kt added the bug Fixes for quality problems that affect the customer experience label Oct 27, 2023
@botelastic botelastic bot added the needs-team Issues missing a team label label Oct 27, 2023
@jsanz jsanz added (Deprecated) Feature:Reporting Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead docs Team:SharedUX Team label for AppEx-SharedUX (formerly Global Experience) labels Oct 27, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/appex-sharedux (Team:SharedUX)

@botelastic botelastic bot removed the needs-team Issues missing a team label label Oct 27, 2023
@TheRiffRafi
Copy link

Hello @3kt could you help us with some clarification on your reported config?
Did you set the following option on the kibana.yml file before trying to access reporting with "All" privilege?

xpack.reporting.roles.enabled: false

It is the first config shown on the documentation you linked. I tried to reproduce the issue and I was seeing the same issue but I realized I hadn't set that Kibana option.

@3kt
Copy link
Author

3kt commented Dec 12, 2023

@TheRiffRafi Unfortunately I don't have access to the configuration anymore, as this was deployed by a customer...

@petrklapka petrklapka added the SharedUX/fix-it-week Bugs that have been groomed and queued up for the team's next fix it week label Jul 18, 2024
@tsullivan tsullivan added Feature:Reporting:Framework Reporting issues pertaining to the overall framework and removed (Deprecated) Feature:Reporting Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead labels Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience docs Feature:Reporting:Framework Reporting issues pertaining to the overall framework SharedUX/fix-it-week Bugs that have been groomed and queued up for the team's next fix it week Team:SharedUX Team label for AppEx-SharedUX (formerly Global Experience)
Projects
None yet
Development

No branches or pull requests

7 participants