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

Terraform created outgoing webhook won't show in web ui #2793

Closed
agaibura-tripleten opened this issue Aug 15, 2023 · 4 comments
Closed

Terraform created outgoing webhook won't show in web ui #2793

agaibura-tripleten opened this issue Aug 15, 2023 · 4 comments
Labels
bug Something isn't working part:Terraform/Crossplane

Comments

@agaibura-tripleten
Copy link

What went wrong?

What happened:

  • I created an outgoing webhook through terraform
resource "grafana_oncall_outgoing_webhook" "jira_create_spi" {
  name = "jira_create_spi"
  url = "https://yourcompany.atlassian.net/rest/api/2/issue/"
  authorization_header = "Authorization: Basic ${data.vault_generic_secret.selected.data.grafana_oncall_jira_token}]"
  data = jsonencode({
    fields = {
        project = {
            key = "SPI"
        }
        summary = "[unknown] - {{ alert_payload.labels.alertname }}"
        description = "prom link: {{alert_payload.generatorUrl}}; link: {{ alert_payload.permalinks }}"
    }
  })
}
  • i open an outgoing webhook page in web ui (OSS)

What did you expect to happen:

  • the created webhook is shown in the web ui.

How do we reproduce it?

  1. Deploy code above
  2. Open OSS web UI
  3. The webhook is not shown on the page.

terraform version: 2.2.0

Grafana OnCall Version

1.3.23

Product Area

Terraform

Grafana OnCall Platform?

Kubernetes

User's Browser?

No response

Anything else to add?

No response

@agaibura-tripleten agaibura-tripleten added the bug Something isn't working label Aug 15, 2023
@agaibura-tripleten
Copy link
Author

I also created action_to_trigger step in an escalation chain. So i see this step as blank step in web ui.
Here is some pictures.
image
image

@agaibura-tripleten
Copy link
Author

sample code for escalations:


# jira create SPI
resource "grafana_oncall_escalation" "SRE_SPI_0" {
  provider = grafana
  escalation_chain_id = grafana_oncall_escalation_chain.SRE.id
  type = "trigger_action"
  position = 0
  action_to_trigger = grafana_oncall_outgoing_webhook.jira_create_spi.id
}

@Matvey-Kuk
Copy link
Contributor

@mderynck wdyt, will it be fixed by #2790?

@mderynck mderynck mentioned this issue Aug 18, 2023
3 tasks
mderynck added a commit that referenced this issue Aug 22, 2023
# What this PR does
- Add public API for Webhooks CRUD, and GET webhook responses
- Add insight resource logs for internal and public webhook API calls
- Change public actions API to wrap Webhooks to maintain compatibility
with existing callers
 

## Which issue(s) this PR fixes

#2792 
#2793 

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not
required)
@iskhakov
Copy link
Contributor

iskhakov commented Apr 2, 2024

fixed by #2790

@iskhakov iskhakov closed this as completed Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working part:Terraform/Crossplane
Projects
None yet
Development

No branches or pull requests

3 participants