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

Lack of required scopes might prevent that PagerDutyCard loads properly #134

Open
t1agob opened this issue Aug 23, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@t1agob
Copy link
Contributor

t1agob commented Aug 23, 2024

Describe the bug
The PagerDuty plugin for Backstage, when configured with OAuth, requires the following scopes to work:

    abilities.read // used in scaffolder only
    analytics.read
    escalation_policies.read
    incidents.read
    oncalls.read
    schedules.read
    services.read
    services.write // used in scaffolder only
    standards.read
    teams.read
    users.read
    vendors.read // used in scaffolder only

If some of these scopes are missing (e.g. standards.read) the PagerDutyCard fails to load and causes to app to crash. This doesn't happen for all scopes as some will fail more gracefully.

To Reproduce
Steps to reproduce the behavior:

  1. Register an Application in PagerDuty
  2. When setting the Application Scopes select all of the ones above, except for standards.read.
  3. Run your Backstage application
  4. Open a Backstage entity that contains the PagerDutyCard

Expected behavior
When a required scope is missing I would expect the PagerDutyCard to fail gracefully and present a message saying which scopes are missing in the Application Registration so it can be fixed.

Screenshots
This is how we found out the problem was related to a missing scope 👇
image

@t1agob t1agob added the bug Something isn't working label Aug 23, 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
Projects
None yet
Development

No branches or pull requests

1 participant