mirror of
https://git.proxmox.com/git/pve-access-control
synced 2025-08-08 03:06:45 +00:00
api: disallow some paths for API tokens
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
e915e9e454
commit
4937239091
@ -234,6 +234,7 @@ __PACKAGE__->register_method ({
|
|||||||
user => 'world'
|
user => 'world'
|
||||||
},
|
},
|
||||||
protected => 1, # else we can't access shadow files
|
protected => 1, # else we can't access shadow files
|
||||||
|
allowtoken => 0, # we don't want tokens to create tickets
|
||||||
description => "Create or verify authentication ticket.",
|
description => "Create or verify authentication ticket.",
|
||||||
parameters => {
|
parameters => {
|
||||||
additionalProperties => 0,
|
additionalProperties => 0,
|
||||||
@ -339,6 +340,7 @@ __PACKAGE__->register_method ({
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
protected => 1, # else we can't access shadow files
|
protected => 1, # else we can't access shadow files
|
||||||
|
allowtoken => 0, # we don't want tokens to change the regular user password
|
||||||
description => "Change user password.",
|
description => "Change user password.",
|
||||||
parameters => {
|
parameters => {
|
||||||
additionalProperties => 0,
|
additionalProperties => 0,
|
||||||
@ -470,6 +472,7 @@ __PACKAGE__->register_method ({
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
protected => 1, # else we can't access shadow files
|
protected => 1, # else we can't access shadow files
|
||||||
|
allowtoken => 0, # we don't want tokens to change the regular user's TFA settings
|
||||||
description => "Change user u2f authentication.",
|
description => "Change user u2f authentication.",
|
||||||
parameters => {
|
parameters => {
|
||||||
additionalProperties => 0,
|
additionalProperties => 0,
|
||||||
@ -594,6 +597,7 @@ __PACKAGE__->register_method({
|
|||||||
method => 'POST',
|
method => 'POST',
|
||||||
permissions => { user => 'all' },
|
permissions => { user => 'all' },
|
||||||
protected => 1, # else we can't access shadow files
|
protected => 1, # else we can't access shadow files
|
||||||
|
allowtoken => 0, # we don't want tokens to access TFA information
|
||||||
description => 'Finish a u2f challenge.',
|
description => 'Finish a u2f challenge.',
|
||||||
parameters => {
|
parameters => {
|
||||||
additionalProperties => 0,
|
additionalProperties => 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user