Don't upload if unauthorized
Metadata
Current evaluation
Charmcraft upload should fail fast on unauthorized/permission errors before pushing bytes. Original 401 case fixed by PR #1052 (whoami check before upload). 2024 comment confirms publisher/collaborator permission check is still missing; no maintainer response since.
Suggested action: needs triage
Reason: PR #1052 (commit 422b8b90) added _check_authorized() before push_file, fixing the original 401-on-expired-credentials case. However, the 2024-09-20 comment from @lengau shows the permission-check aspect (publisher/collaborator) is still unaddressed, and no maintainer has responded to that re-scoping. The issue needs a maintainer to decide whether to keep it open for the narrower permission-check scope or close it and file a new issue.
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.8-27b |
Impact:
30
Quick Win:
19.5
Staleness:
60
Complexity:
35
Confidence:
75
Support Request:
10
|
needs triage | Charmcraft upload should fail fast on unauthorized/permission errors before pushing bytes. Original 401 case fixed by PR #1052 (whoami check before upload). 2024 comment confirms publisher/collaborator permission check is still missing; no maintainer response since. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
85
Complexity:
30
Confidence:
80
Support Request:
10
|
close stale | charmcraft upload fails with 401/permission errors after transferring data instead of checking auth upfront. Last updated 11 months ago with an internal Jira ticket created. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
85
Complexity:
45
Confidence:
75
Support Request:
10
|
close stale | Feature request to add pre-upload permission checks to avoid failing after data transfer. Currently prompts for login but fails mid-upload. Inactive for 11 months with no implementation. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
85
Complexity:
30
Confidence:
75
Support Request:
10
|
close stale | Feature request to validate publisher permissions before uploading charms. Open for over four years with no maintainer response or implementation. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
75
Complexity:
20
Confidence:
75
Support Request:
10
|
keep open | charmcraft upload should validate auth and permissions before transferring files instead of failing mid-upload. Credentials now refresh, but pre-upload checks remain unimplemented. Internal ticket CRAFT-3416 created; awaiting development. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
canonical/charmcraft#1052
(confidence 85%)
PR #1052 added _check_authorized() (whoami) before push_file in _upload(), addressing the original 401-on-expired-credentials case. Does not cover the publisher/collaborator permission check noted in the 2024 comment.
Related issues
No related issues found above the similarity threshold.