Telmate / proxmox-api-go

Consume the proxmox API in golang
MIT License
384 stars 239 forks source link

accept ticket&CSRFPreventionToken as credentials #370

Open camaeel opened 2 weeks ago

camaeel commented 2 weeks ago

Description

It would be great if a user could provide a ticket & CSRFPreventionToken on his own. Then usage of credential helper like this one: https://github.com/camaeel/proxmox-oidc-credential-helper could be helpful for automatically exchanging oidc credentials for ticket+CSRFPreventionToken pair. Use Case(s)

I would like to stop using static long running passwords or api tokens in my setup, and use OIDC to obtain ticket+CSRFPreventionToken and use them with packer plugin.

Ticket is follow-up of a ticket from packer-plugin-proxmox https://github.com/hashicorp/packer-plugin-proxmox/issues/294

camaeel commented 3 days ago

@Tinyblargon I prepared a MR which exposes option to provide ticket + CSRF prevention token.