Skip to content

The documentation for how-to/publishing/authenticate.rst should at least specify one system keyring as an example #6049

@linghengqian

Description

@linghengqian

Check existing issues

  • I've verified that this request isn't described by any existing issues.

Request

On systems where you wish to remain logged in, run snapcraft login. Snapcraft will attempt to use the system keyring. If no keyrings are installed or initialized, Snapcraft will fall back to file-based credential storage. The file-based storage is managed by Snapcraft. If you wish to import/export credentials, refer to the previous sections.

  • I find this a bit odd for WSL users, because most WSL users new to snapcraft don't know what to install as a system keyring. There's no proper Linux desktop environment, and therefore no way to provide the necessary files for file-based storage.
sudo apt update && sudo apt upgrade --assume-yes
sudo snap install snapcraft --classic
sudo snap install multipass
sudo snap set snapcraft provider=multipass
snapcraft login
lingh@DESKTOP-58BHAE6:~$ snapcraft login
No keyring found to store or retrieve credentials from.
Recommended resolution: Ensure the keyring is working or SNAPCRAFT_STORE_CREDENTIALS is correctly exported into the environment
For more information, check out: https://documentation.ubuntu.com/snapcraft/stable/how-to/publishing/authenticate
Full execution log: '/home/lingh/.local/state/snapcraft/log/snapcraft-20260219-230047.517051.log'

Document location

https://documentation.ubuntu.com/snapcraft/latest/how-to/publishing/authenticate/#authenticate-with-a-keyring

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions