canonical / canonical/craft-application

Store the user's Launchpad credentials in a keyring when available

Open
#295 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
14
Forks
29
Avg merge
2d 3h
Merged PRs (30d)
12

Description

### What needs to get done

`craft-store` uses `keyring` as its backend and `launchpadlib` has a way to store credentials in a keyring rather than a file.

We should still have a way to fall back to a file when no keyrings are available, but we might be able to use [craft-store's FileKeyring](https://github.com/canonical/craft-store/blob/f9171f1bfedd3653cc764b91cf4a0193bc1e431a/craft_store/auth.py#L82-L143) to do that.

### Why it needs to get done

Better not to use a file if we can avoid it.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing how craft-application currently configures launchpadlib credentials and the linked craft-store FileKeyring implementation. Check launchpadlib's keyring storage path and define the fallback behavior when no keyring is available. Done means credentials use a keyring when available and a file fallback remains functional.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
authentication, security
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.