mirror of
https://github.com/proxmoxer/proxmoxer.git
synced 2026-04-25 07:06:00 +03:00
[GH-ISSUE #10] Authentication against new user api token feature #6
Labels
No labels
backend:https
backend:local
backend:openssh
backend:ssh_paramiko
pull-request
status:ansible-issue
status:help-wanted
status:info-needed
status:proxmox-issue
status:review-needed
type:bug 🐞
type:dependency ⛓️
type:docs 📝
type:enhancement ⏫
type:maintenance 🛠️
type:meta
type:question ❓
type:request ✋
type:testing 🧪
version:1.x
version:latest
version:py2
version:py3
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/proxmoxer#6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rareshornet on GitHub (Mar 6, 2020).
Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/10
Originally assigned to: @jhollowe on GitHub.
Hi there!
Seems proxmox now supports user api tokens instead of using passwords starting with libpve-access-control 6.0-6. The biggest benefit to me is the fact that you can have different permissions for tokens than users but also that when I'm deving in my own environment I don't have to store my password or create different users with different permissions.
Is this something that you are looking into adding as an alternative auth feature? If not would be a lot of work to implement?
Thanks!
@jhollowe commented on GitHub (Apr 22, 2020):
Can you post a link to some information on this? I can't seem to find information on tokens, other than the tokens that are created by the API from your password.
@CompileNix commented on GitHub (Apr 22, 2020):
This is the only thing i was able to find on this topic:
https://pve.proxmox.com/wiki/User_Management#pveum_tokens
@jhollowe commented on GitHub (Apr 22, 2020):
you can view, create, and edit tokens, but using a token as authentication is not yet supported.
Create token:
proxmox.access.users('test_user@pve').token.push()(see here for more information)Considering just how different the authentication method is, we will need to at least create a new Authentication class. We might even need to create a new backend for it, I really don't know and haven't looked at it that much.
I'm going to hold this out of the current future release and work on it for the next version.
@jhollowe commented on GitHub (Apr 22, 2020):
for future reference:
so probably just a new Auth
@CompileNix commented on GitHub (May 12, 2020):
https://www.proxmox.com/en/?option=com_content&view=article&id=140&Itemid=1153
@jhollowe commented on GitHub (May 17, 2020):
Resolved by #20