← Back to issue list

snapcraft should check permissions before starting an upload

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1627843
Type
issue
State
closed
Author
~thomir-deactivatedaccount
Labels
Created
Updated
Closed

Current evaluation

Closed without resolution due to prolonged inactivity. The request to validate authentication permissions before uploading large snaps was abandoned, with no fix or implementation added to subsequent versions.

Suggested action:

No scores available.

Issue body

Hi, I'm running: snapcraft push <snap_file> --release <channel> and sometimes it seems my authentication session has expired. Snapcraft uploads the entire snap file and then tells me: ``` Received 401: '{"error_list": [{"message": "Authorization Required", "code": "macaroon-permission-required"}]}' ``` Running 'snapcraft login' and then re-running the above command fixes the issue. The problem is that my upload speed is limited, and the snap is rather large. Ideally snapcraft would check that it has permissions to complete the operation before uploading everything. If there's a race condition (i.e.- auth credentials expire while the upload is happening) that's regrettable, but would be far better than what it's doing now. I'm running the latest snapcraft that's available on Xenial (which is where these snaps are built): 2.17

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Closed without resolution due to prolonged inactivity. The request to validate authentication permissions before uploading large snaps was abandoned, with no fix or implementation added to subsequent versions.
qwen/qwen3.6-35b-a3b Closed without resolution, likely abandoned. The feature request to verify authentication permissions before uploading large snap files was not implemented.
qwen/qwen3.6-35b-a3b The request for pre-upload permission checks in snapcraft was closed without resolution. With zero comments and over a decade of inactivity, the feature was abandoned and never implemented.
qwen3.6-35b-a3b-mtp-q6 Requesting pre-upload permission checks to prevent wasted bandwidth on expired auth sessions was closed without resolution. No code changes or pull requests were merged.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1871109 snapcraft should check file creation permissions and warn/error out instead of generating a non-functional snap snapcraft (launchpad) closed Closed without resolution. The requested permission checks were not implemented, and the issue remains abandoned.
84%
#1600078 snapcraft upload store integration tests is failing because it needs a manual review snapcraft (launchpad) closed Closed without resolution. The integration test failed when uploaded snaps triggered a mandatory manual review. No pre-approved snap was provided to bypass the check, leaving the issue abandoned.
75%
#1990551 snapcraft 7 never drops permissions while doing builds invoked with sudo snapcraft (launchpad) closed Closed without resolution due to inactivity. The report identifies a snapcraft 7 regression where sudo builds retain root privileges instead of dropping them, unlike snapcraft 6. No fix or discussion occurred.
72%
#1634038 Snapcraft should verify namespace before uploading snapcraft (launchpad) open Feature request from 2016 asking snapcraft to verify the user's namespace before uploading, to avoid expensive post-upload failures. Open for ~10 years with zero comments, no labels, and no maintainer interaction.
72%
#1800119 snapcraft cleanbuild snapcraft (launchpad) closed Closed without resolution. The report details a PermissionError during snapcraft cleanbuild caused by restricted access to the .aptitude directory. With zero comments and no fix applied, the issue was abandoned or marked stale.
72%
#1481499 snapcraft run asks for the sudo password without explaining why snapcraft (launchpad) closed Closed without implementation due to inactivity. The request to add an explanatory message when snapcraft run prompts for sudo credentials was abandoned. No pull requests or code changes were submitted.
72%
#1530995 Snapcraft requires autogen.sh to be executable snapcraft (launchpad) closed Closed without resolution or comments. Snapcraft requires autogen.sh to have executable permissions, but no action was taken to enforce or document this requirement.
71%
#1950465 snapcraft does not seem to call `snap pack --check-skeleton` to validate that snap has correct things snapcraft (launchpad) closed Closed without implementation. The request to add snap metadata validation during build was abandoned due to inactivity and lack of proposed fixes.
71%
#1862325 snapcraft push fails for large snap snapcraft (launchpad) closed Closed without resolution. The snapcraft push command hangs indefinitely when uploading large snaps (~991MB). No comments or fixes were provided, indicating the report was abandoned.
70%
#1626625 snapcraft can't run tests as part of building a snap snapcraft (launchpad) closed Closed without implementation. The request to add test execution rules to snapcraft received no comments and was abandoned or superseded by newer snapcraft testing features.
70%