Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warg key new fails opening platform secure storage #145

Open
lann opened this issue Jun 29, 2023 · 4 comments
Open

warg key new fails opening platform secure storage #145

lann opened this issue Jun 29, 2023 · 4 comments

Comments

@lann
Copy link
Collaborator

lann commented Jun 29, 2023

@fibonacci1729

error: failed to set signing key with name `default` of registry `http://localhost:8090`: Platform secure storage failure: zbus error: org.freedesktop.Secret.Error.IsLocked: Cannot create an item in a locked collection
@lann
Copy link
Collaborator Author

lann commented Jun 29, 2023

After some investigation I believe this is related to running in a headless environment. Since that is likely to be somewhat common for this tool I think we'll need an alternative way to store keys.

@rperez95
Copy link

Hi @lann

Any updates on this end?

Today, I installed warg, and when I attempt to set the key for my local repository at 127.0.0.1:8090, I encounter the same error. Subsequently, I installed gnome-keyring using the command:

sudo apt install gnome-keyring

After installing gnome-keyring, I re-executed the warg command, and now I am encountering the following error:

warg key new 127.0.0.1:8090
error: failed to set signing key with name `default` of registry `https://127.0.0.1:8090/`: Couldn't access platform secure storage: SS error: result not returned from SS API

Btw, I'm running warg in a headless environment and I have installed warg server In-memory storage following guideline https://github.com/bytecodealliance/registry/blob/main/crates/server/README.md

@lann
Copy link
Collaborator Author

lann commented Jan 18, 2024

Take a look at #237 for some relevant discussion about warg development. We are taking another look at private key management for publishers since it still such a pain.

@rperez95
Copy link

Thx! @lann

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants