# receipts evidence 016 # kind: run # represents: PDM's source: the #[api(...)] block on list_remotes (/pve/remotes) has no access rule, which Proxmox's API framework treats as superuser only; list_nodes right after it declares one # name: pdm-source-superuser # at: 2026-11-12T13:18:49Z # cwd: ~/ry-ops/scratch/blog # cmd: bash -c 'curl -sfL "https://git.proxmox.com/?p=proxmox-datacenter-manager.git;a=blob_plain;f=server/src/api/pve/mod.rs;hb=HEAD" | grep -n -B11 -A22 "^/// Return the list of PVE remotes"' # exit: 0 # redacted: 1 local path(s) replaced with ~/ry-ops/scratch # --- 133-} 134- 135-#[api( 136- returns: { 137- type: Array, 138- description: "List of PVE remotes", 139- items: { 140- type: RemoteListEntry, 141- }, 142- }, 143-)] 144:/// Return the list of PVE remotes 145-fn list_remotes() -> Result, Error> { 146- Ok(RemoteIterator::new(pdm_config::remotes::instance())? 147- .remote_type(RemoteType::Pve) 148- .into_names() 149- .map(|name| RemoteListEntry { remote: name }) 150- .collect()) 151-} 152- 153-#[api( 154- input: { 155- properties: { 156- remote: { schema: REMOTE_ID_SCHEMA }, 157- }, 158- }, 159- returns: { 160- type: Array, 161- description: "List of basic PVE node information", 162- items: { type: pve_api_types::ClusterNodeIndexResponse }, 163- }, 164- access: { 165- permission: &Permission::Privilege(&["resource", "{remote}"], PRIV_RESOURCE_AUDIT, false), 166- },