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

Oauth credentials stop working intermittently #144

Open
martina-equinix opened this issue Oct 21, 2024 · 1 comment
Open

Oauth credentials stop working intermittently #144

martina-equinix opened this issue Oct 21, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@martina-equinix
Copy link

Describe the bug

I have one pagerduty account configured through scoped oauth credentials and I am noticing that these credentials stop working after some time until I restart the backstage backend.

Initially, it can fetch services via the pagerduty.com/service-id annotation but after a day or two, when I visit the same component I get Missing or invalid PagerDuty Token and a 401 error with the following message:

{
    "errors": [
        "Failed to get service. Caller did not supply credentials or did not provide the correct credentials."
    ]
}

When I see this, if I just restart Backstage it starts working again with no issues.

The configuration I am using is:

pagerDuty:
  oauth:
    clientId: ${PD_CLIENT_ID}
    clientSecret: ${PD_CLIENT_SECRET}
    subDomain: ${PD_ACCOUNT_SUBDOMAIN} # just the subdomain part as stated in the docs

Expected behavior
The pagerduty integration works continuously without having to restart the backend.

Screenshots

Screenshot 2024-10-21 at 11 54 31 AM

versions

@pagerduty/backstage-plugin-backend: 0.9.1
@pagerduty/backstage-plugin-common: 0.2.1
@pagerduty/backstage-plugin: 0.15.1

backstage version: "1.31.1"

Additional context

@martina-equinix martina-equinix added the bug Something isn't working label Oct 21, 2024
@tfhartmann
Copy link

I'm also having the same issue

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

2 participants