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

accept ticket&CSRFPreventionToken as credentials #294

Open
camaeel opened this issue Oct 20, 2024 · 2 comments
Open

accept ticket&CSRFPreventionToken as credentials #294

camaeel opened this issue Oct 20, 2024 · 2 comments

Comments

@camaeel
Copy link

camaeel commented Oct 20, 2024

Please search the existing issues for relevant feature requests, and use the
reaction feature
(https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/)
to add upvotes to pre-existing requests.

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 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.

Potential configuration

proxmox_ticket = string
CSRFPreventionToken = string

Potential References

https://github.com/camaeel/proxmox-oidc-credential-helper

@mpywell
Copy link
Contributor

mpywell commented Oct 24, 2024

Hi @camaeel

packer-plugin-proxmox uses an upstream SDK library proxmox-api-go to interface with Proxmox backends. proxmox-api-go doesn't support this authentication method at present. Please raise an issue with the upstream SDK and if implemented, happy to look into this further.

@camaeel
Copy link
Author

camaeel commented Oct 24, 2024

@mpywell
I created a ticket for proxmox-api-go.

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

2 participants