microsoft / terraform-provider-azuredevops

Terraform Azure DevOps provider
https://www.terraform.io/docs/providers/azuredevops/
MIT License
379 stars 271 forks source link

Possible to add secure files to the Pipeline Library? #274

Open CaptainStealthy opened 3 years ago

CaptainStealthy commented 3 years ago

Is it possible to add secure files to the Library using this provider?

Looked through the docs, but didn't find anything.

Thanks!

securefiles

xuzhang3 commented 3 years ago

Hi @CaptainStealthy Seem cannot implement this resource for ADO provider because there's no secure file APIs.

tmegow commented 3 years ago

I am terraforming Azure Devops Pipelines which use Secure Files and I also desire this feature.

CaptainStealthy commented 3 years ago

What kind of secure files are you trying to store? We were using it for certificates, but we worked around the issue by storing them in Azure Key Vault.

Even if you're not storing certs, you can base64 encode your files and store them as Key Vault Secrets, maybe?

KjeldSchmidt commented 1 year ago

We are still interested in this, for what it's worth 🙂

ianhockett commented 11 months ago

FWIW it appears there is an API for secure files, but it is absent from the documentation. Here is an open issue for the API docs.

We are able to upload secure files via REST call using this uri: ..._apis/distributedtask/securefiles?api-version=7.1-preview.1....

Phiph commented 11 months ago

I'd be interested in this

jubr commented 8 months ago

Hi @xuzhang3, did you happen to see @ianhockett's comment that the API in question exists?
I would also be very interested in having being able to manage Secure Files with the terraform Azure Devops provider!

@ others: please add a 👍 to the original post to indicate interest, thx!

xuzhang3 commented 8 months ago

@jubr azuredevops go-sdk not include all the APIs, some of the APIs are missing in the SDK. Sometimes we add APIs manually to supplement the SDK.