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

[Watcher] Can't edit or simulate a watch with an email action containing an authenticated reporting request #170033

Closed
jsanz opened this issue Oct 27, 2023 · 3 comments
Labels
bug Fixes for quality problems that affect the customer experience Feature:Reporting Reporting (PDF, CSV, ..) feature Feature:Watcher Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more

Comments

@jsanz
Copy link
Member

jsanz commented Oct 27, 2023

This is originated from a community discussion

Kibana version:
8.10.4

Elasticsearch version:
8.10.4

Server OS version:
Elastic Cloud

Browser version:
Firefox 118

Browser OS version:
Ubuntu 20.04 LTS

Original install method:
Elastic Cloud

Describe the bug:
After creating a watcher, I can't edit it because the authentication section of an email attachment can't be parsed.

Steps to reproduce:

  1. Create a watcher with an email that triggers a reporting with an authenticated request (example below)
  2. Check the watcher works as expected, waiting for it or using the /_execute endpoint
  3. Try to edit or simulate it in the Kibana UI
PUT _watcher/watch/test_email
{
  "trigger": {
    "schedule": {
      "interval": "1m"
    }
  },
  "input": {
    "none": {}
  },
  "condition": {
    "always": {}
  },
  "actions": {
    "email_admin": {
      "email": {
        "profile": "standard",
        "attachments": {
          "error_report.pdf": {
            "reporting": {
              "url": "URL-Generated-From-Dashrboard-Share-Pop-Up",
              "retries": 3,
              "interval": "30s",
              "auth": {
                "basic": {
                  "username": "user-here",
                  "password": "password-here"
                }
              }
            }
          }
        },
        "to": ["'My Name <my-work-email>'"],
        "subject": "Test Report"
      }
    }
  }
}

Expected behavior:
Editing and simulations work

Screenshots (if relevant):

image

image

Errors in browser console (if relevant):

I see this 400 request on a PUT to ${KIBANA_HOST}/api/watcher/watch/test_email

image

Any additional context:

Seems to be related (or a duplicate) to #21010

@jsanz jsanz added bug Fixes for quality problems that affect the customer experience Feature:Watcher Feature:Reporting Reporting (PDF, CSV, ..) feature Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more labels Oct 27, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/platform-deployment-management (Team:Deployment Management)

@nicolam1
Copy link

This can be easily fixed by replacing ::es_redacted:: value of the password in the template with the actual password and you should be able to simulate the watcher.

@jsanz
Copy link
Member Author

jsanz commented Oct 27, 2023

This can be easily fixed by replacing ::es_redacted:: value of the password in the template with the actual password and you should be able to simulate the watcher.

You are right, and since #21010 already captures the issue with redacted passwords I'm going to close this as not planned.

@jsanz jsanz closed this as not planned Won't fix, can't repro, duplicate, stale Oct 27, 2023
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 Feature:Reporting Reporting (PDF, CSV, ..) feature Feature:Watcher Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more
Projects
None yet
Development

No branches or pull requests

3 participants