-
Notifications
You must be signed in to change notification settings - Fork 2
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 App Authentication Support is missing #569
Comments
Hey @xSAVIKx, thanks for reporting here and sorry you had issues with the provider. Could you please verify that your client id secret and domain parameters are working by trying the pagerduty API directly: https://developer.pagerduty.com/docs/e518101fde5f3-obtaining-an-app-o-auth-token#about-app-oauth-tokens It'd be helpful to know if this is an issue with the provider handling of the parameters or the API/ credentials. It'd also be immensely helpful if you could try the terraform provider for pagerduty, which we use for the pulumi provider - do the Oauth App credentials work there? |
Hey @VenelinMartinov. I can confirm that I can execute the following request from the API docs:
And I do get a success response:
And I also can confirm that I can use returned scoped ACCESS TOKEN to e.g. read all available services using:
Unfortunately don't have a quick way to test terraform provider at the moment. |
Thanks! Could I ask you to provider logs of the failed run? Here's instructions how to get them: https://www.pulumi.com/docs/support/troubleshooting/#verbose-logging Please, make sure to scrub any secrets from the logs. |
@VenelinMartinov I hit the same issue. My setup is a little different but trying to accomplish the same thing. Currently have the default provider for pagerduty disabled. Creating it via code (python) like so.
I was able to collect logs see attached using this command And spin up a terraform project using this very basic configuration
It ran a plan and apply with no issues. Logs from that if it helps are also attached. |
Looking at the pulumi log a little closer i do see this
but the only difference between these 2 lines is space 🤔 |
Thank you for the updates, @zender-vivodyne - we'll be taking a look as soon as we can. 🙏 |
Describe what happened
I'm trying to set up PagerDuty using the provider and trying to authenticate using oAuth app clientID + secret + subdomain. Unfortunately when I try doing so I get the following error every time:
If I switch to token-based v2 auth everything works as expected.
Sample program
Pulumi.yaml:
Pulumi.pagerduty.yaml:
Log output
Diagnostics:
pagerduty:index:User (devsUser):
error: Cannot obtain plugin client:
No valid credentials found for PagerDuty provider.
Please see https://www.terraform.io/docs/providers/pagerduty/index.html
for more information on providing credentials for this provider.
Affected Resource(s)
pagerduty:User
Output of
pulumi about
pulumi about
CLI
Version 3.122.0
Go Version go1.22.4
Go Compiler gc
Plugins
KIND NAME VERSION
language yaml unknown
Host
OS ubuntu
Version 22.04
Arch x86_64
This project is written in yaml
Current Stack: CURRENT_STACK
TYPE URN
Found no pending operations associated with STACK
Backend
Name pulumi.com
URL https://app.pulumi.com/xSAVIKx
User xSAVIKx
Organizations
Token type personal
No dependencies found
Pulumi locates its logs in /tmp by default
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: