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

Give instructions that help to resolve a problem with missing keychain #347

Merged
merged 4 commits into from
Jun 2, 2024

Conversation

AlexKushnir1
Copy link
Contributor

@AlexKushnir1 AlexKushnir1 commented May 27, 2024

I found out that certain headless linux systems don't implement keyring. For example on WSL we can`t use keychain because it is not seted up by default. User need to install gnome-keyring with pip3, start D-bust session and unlock keychain. Close #299

src/common.rs Outdated Show resolved Hide resolved
Co-authored-by: Serhii Volovyk <[email protected]>
volovyks
volovyks previously approved these changes May 27, 2024
src/common.rs Outdated
@@ -1267,7 +1267,7 @@ pub fn save_access_key_to_keychain(
keyring::Entry::new(&service_name, &format!("{}:{}", account_id, public_key_str))
.wrap_err("Failed to open keychain")?
.set_password(key_pair_properties_buf)
.wrap_err("Failed to save password to keychain")?;
.wrap_err("Failed to save password to keychain. You may need to install secure keychain package by following this instructions: https://github.com/jaraco/keyring#using-keyring-on-headless-linux-systems")?;
Copy link
Contributor

Choose a reason for hiding this comment

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

  • Is it okay that we have a double-space between words (following this)?
  • Last sentence isn't grammatically correct, it should be these instructions or this instruction (I guess first one is better)
  • the secure keychain looked correct in a previous version. Why an article was removed in the last commit?

Copy link
Collaborator

@frol frol left a comment

Choose a reason for hiding this comment

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

@AlexKushnir1 Thank you for taking a look there!

@frol frol enabled auto-merge (squash) June 2, 2024 18:56
@frol frol disabled auto-merge June 2, 2024 18:56
@frol frol enabled auto-merge (squash) June 2, 2024 18:58
@frol frol merged commit daaa0ba into near:main Jun 2, 2024
7 checks passed
@frol frol mentioned this pull request Jun 2, 2024
frol added a commit that referenced this pull request Jun 20, 2024
## 🤖 New release
* `near-cli-rs`: 0.10.2 -> 0.11.0

<details><summary><i><b>Changelog</b></i></summary><p>

<blockquote>

##
[0.11.0](v0.10.2...v0.11.0)
- 2024-06-19

### Added
- Added loading indicators to wait for the view-account-summary command
([#349](#349))
- Added loading indicators to wait for the create-account
(sponsor-by-faucet-service) command
([#339](#339))

### Fixed
- Do not fail view-account-summary command if we could not retrieve
access keys list ([#344](#344))

### Other
- [**breaking**] upgraded near-dependencies to the 0.23 version
([#350](#350))
- Provide instructions that help to resolve a problem with missing
keychain ([#347](#347))
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/MarcoIeni/release-plz/).
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

Successfully merging this pull request may close these issues.

Implement keychain support in WSL (Linux on Windows)
4 participants