Skip to content

Conversation

@sohanmaheshwar
Copy link
Contributor

Description

When a system doesn't have a native keyring manager, this is what the current error message is:

Setting the environment variable `ZED_KEYRING_PASSWORD` to your password will skip prompts.
Keyring file does not already exist.
Enter a new non-empty passphrase for the new keyring file: 

This doesn't explain why this error is popping up, so i've added a line for more details about it. The new message will read:

If your platform doesn't have a native keychain manager (e.g. macOS, Linux+GNOME/KDE), ZED_KEYRING_PASSWORD is what's used to encrypt files on disk to store credentials. The first time you create a context, it'll prompt you to create a keyring password to encrypt that configuration.
Keyring file does not already exist.
Enter a new non-empty passphrase for the new keyring file: 

It's a bit more verbose, but provides more context.

Testing

Tried zed context on the Instruqt platform VM which didn't have a native keyring manger and saw this message.

References

@sohanmaheshwar
Copy link
Contributor Author

Feel free to edit the error message too

Copy link
Contributor

@tstirrat15 tstirrat15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like it. Thank you!

@tstirrat15 tstirrat15 merged commit 8d66f91 into authzed:main Aug 21, 2025
15 of 16 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Aug 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants