fix: resolve Proxmox authentication response parsing error #126
No reviewers
Labels
No Label
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sarman/tftsr-devops_investigation#126
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/proxmox-auth-decoding"
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?
Automated PR Review (qwen3.5-122b-think via liteLLM):\n\n
Summary
The PR fixes a serialization mismatch between the Proxmox API response format and the
AuthResponsestruct. The changes correctly remove the incorrect#[serde(rename_all = "PascalCase")]attribute and align field names with the actual lowercase Proxmox API response format. The integration tests are properly structured to skip when credentials aren't available.Findings
[SUGGESTION] src-tauri/src/proxmox/client.rs:484 - Integration tests are hardcoded to specific Proxmox server IP
Evidence:
let mut client = ProxmoxClient::new("172.0.0.18", 8006, "root@pam");Fix: Consider using an environment variable (e.g.,
PROXMOX_HOST) for the server address to improve test portability across different environments[SUGGESTION] src-tauri/src/proxmox/client.rs:484 - Integration tests have duplicated setup code
Evidence: All 4 tests repeat the same
PROXMOX_PASSWORDenv check and client initialization patternFix: Extract common setup into a test helper function to reduce duplication and improve maintainability
Verdict: APPROVE WITH COMMENTS
Additional Notes
The core changes are well-implemented:
AuthResponsestruct now correctly uses lowercase field names matching Proxmox APICSRFPreventionTokenproperly handled with explicit#[serde(rename = "CSRFPreventionToken")]clusternamefield added with#[serde(default)]for backward compatibilityNo compilation, security, or logic errors detected. The PR successfully resolves the authentication parsing issue.