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

Manage PAT tokens through terraform provider #1090

Open
joewragg opened this issue Jul 3, 2024 · 3 comments
Open

Manage PAT tokens through terraform provider #1090

joewragg opened this issue Jul 3, 2024 · 3 comments

Comments

@joewragg
Copy link

joewragg commented Jul 3, 2024

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

It would be very useful to my organisation if were able to manage PAT tokens in Azure DevOps through this terraform provider. Especially since they expire and a PAT token is required to run the provider in the first place.

New or Affected Resource(s)

N/A

Potential Terraform Configuration

resource "azuredevops_pat" "example" {
  name = "Example-PAT"
  scope = ["read:token,", "build:create"]       
}

References

None

@cparkins
Copy link

@joewragg I am working on adding this functionality which does not exist in the azuredevops-go-api library but I have a PR pending full end-to-end testing and review.

@cparkins
Copy link

This one might be more difficult than expected. I have successfully tested the API functionality but the method of Authentication is a bit tricky. This feature currently requires an OAuth Token running on behalf of a Service Principal/User. I will need some time to figure out how to generate those for testing.

@joewragg
Copy link
Author

joewragg commented Sep 5, 2024

@joewragg I am working on adding this functionality which does not exist in the azuredevops-go-api library but I have a PR pending full end-to-end testing and review.

Thanks good to hear it's being looked at 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants