← Back to issue list

An unnecessary warning is raised when running charmcraft pack

View original Github issue

Metadata

Project
charmcraft
Number
#2234
Type
issue
State
open
Author
jdkandersson
Labels
—
Created
Updated
Closed
—

Current evaluation

charmcraft pack emits a confusing keyring warning when users aren't logged in, despite falling back to ephemeral auth. No maintainer response or labels; still reproducible in current store.py.

Suggested action: needs triage

Reason: The issue has no labels, no comments, and no assignee, so it has not been assessed by maintainers. The warning still exists in charmcraft/services/store.py setup() and is covered by a unit test, making the report credible, but the sparse environment details and lack of maintainer input limit confidence.

Evaluated by: mr-cal-bot

Impact: 35 Quick Win: 17 Complexity: 25 Confidence: 60 Actionability: 65

Issue body

### Bug Description When following the charmcraft Flask tutorial (or any of the 12-Factor tutorials) https://canonical-charmcraft.readthedocs-hosted.com/en/latest/tutorial/kubernetes-charm-flask/, during the `charmcraft pack`, Charmcraft raises: `WARNING: Cannot get a keyring. Every store interactions that requires authentication will require you to log in again.` This caused confusion with users because they hadn't logged in and weren't sure whether this was an issue they needed to be concerned about ### To Reproduce As above ### Environment As per tutorial ### charmcraft.yaml ```yaml As per tutorial ``` ### Relevant log output ```shell As above ```

Evaluation history

Date Model Scores Action Summary
~deepseek/deepseek-pro-latest
Impact: 35
Quick Win: 17
Complexity: 25
Confidence: 60
Actionability: 65
needs triage charmcraft pack emits a confusing keyring warning when users aren't logged in, despite falling back to ephemeral auth. No maintainer response or labels; still reproducible in current store.py.
qwen/qwen3.6-35b-a3b
Impact: 30
Quick Win: 13
Complexity: 30
Confidence: 70
Actionability: 60
needs triage Charmcraft shows a confusing keyring warning during pack even when no store authentication is needed; warning still emitted after #1741 fix.
qwen/qwen3.8-27b
Impact: 30
Quick Win: 20
Staleness: 62
Complexity: 35
Confidence: 60
Support Request: 15
needs triage charmcraft pack emits a confusing 'Cannot get a keyring' warning even though packing needs no store auth; warning still present in current code, no maintainer response or labels.
qwen/qwen3.6-35b-a3b
Staleness: 85
Complexity: 20
Confidence: 80
Support Request: 20
close not a bug Charmcraft pack raises a confusing keyring warning during tutorials. Unlabelled, no maintainer response, inactive for over a year.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 20
Confidence: 40
Support Request: 70
needs triage User reports a confusing warning during charmcraft pack when following tutorials. Issue lacks reproduction details, environment info, or logs. No maintainer interaction or labels present.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 10
Confidence: 70
Support Request: 50
close stale Report of an unnecessary warning during charmcraft pack. The issue contains no reproduction steps, logs, or configuration details, and has been inactive for over a year without maintainer interaction.

Update history

No update history recorded yet.

Related work

  • Caused By: charmcraft#1741 (confidence 80%)

    PR #1741 (commit 5fa2a47c) added the ephemeral keyring fallback and the warning message that this issue reports as unnecessary.

Related issues

No related issues found above the similarity threshold.