Skip to content

fix(devcontainer): provide reset remedy on wrong keyring password - #2390

Merged
dan-petty merged 1 commit into
mainfrom
fix/2340-devcontainer-keyring-wrong-password
Oct 27, 2026
Merged

dan-petty merged 1 commit into
mainfrom
fix/2340-devcontainer-keyring-wrong-password

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

When an existing keyring rejects the password, devops devcontainer unlock-keyring printed only that the password was wrong and the keyring remained locked. The message provided no remedy.

What changes:

  • devops devcontainer unlock-keyring now formats the error message with the path of the existing keyring file and instructions to move the file to a backup and run devops devcontainer unlock-keyring again.
  • ERRORS.devcontainer.keyring_wrong_password in src/devops_cli/lang/en/errors.py names the keyring path placeholder and the reset instructions.
  • tests/test_devcontainer.py tests that the command output holds the path and the reset instructions.

Evidence:

  • Root cause analysis and evaluation posted to fix(devcontainer): find why a rebuilt devcontainer rejects the keyring password #2340. Keyrings persist across devcontainer rebuilds through the mounted home volume. Upstream gnome-keyring binary format and encryption remain identical between versions. Password recovery without the original password is not possible because the file uses AES-128 encryption.
  • uv run devops ci fail-to-pass --base origin/main passed: 1 failed on base (tests.test_devcontainer::test_unlock_keyring_reports_a_wrong_password) and 109 passed.
  • uv run pytest tests/test_devcontainer.py passed (110 passed).
  • uv run devops openspec check passed.

Closes #2340

Change:
openspec/changes/archive/2026-10-27-2340-devcontainer-keyring-wrong-password/

When an existing keyring rejects the password, devops devcontainer unlock-keyring printed only that the password was wrong and the keyring remained locked. The message provided no remedy.

What changes:

- devops devcontainer unlock-keyring now formats the error message with the path of the existing keyring file and instructions to move the file to a backup and run devops devcontainer unlock-keyring again.
- ERRORS.devcontainer.keyring_wrong_password in src/devops_cli/lang/en/errors.py names the keyring path placeholder and the reset instructions.
- tests/test_devcontainer.py tests that the command output holds the path and the reset instructions.

Evidence:

- Root cause analysis and evaluation posted to #2340. Keyrings persist across devcontainer rebuilds through the mounted home volume. Upstream gnome-keyring binary format and encryption remain identical between versions. Password recovery without the original password is not possible because the file uses AES-128 encryption.
- uv run devops ci fail-to-pass --base origin/main passed: 1 failed on base (tests.test_devcontainer::test_unlock_keyring_reports_a_wrong_password) and 109 passed.
- uv run pytest tests/test_devcontainer.py passed (110 passed).
- uv run devops openspec check passed.

Closes #2340

Change:
openspec/changes/archive/2026-10-27-2340-devcontainer-keyring-wrong-password/
@dan-petty
dan-petty marked this pull request as ready for review October 27, 2026 22:19
@dan-petty
dan-petty merged commit 5031b1d into main Oct 27, 2026
16 checks passed
@dan-petty
dan-petty deleted the fix/2340-devcontainer-keyring-wrong-password branch October 27, 2026 22:23
dan-petty pushed a commit that referenced this pull request Oct 27, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.8.1](v0.8.0...v0.8.1)
(2026-10-27)


### Bug Fixes

* **devcontainer:** provide reset remedy on wrong keyring password
([#2390](#2390))
([5031b1d](5031b1d))
* **k8s:** the --stack help of deploy-stack names every stack that the
command accepts
([#2388](#2388))
([69fe9b3](69fe9b3))
* **monitoring:** evaluate log or metric volume disk low alert while a
pod moves ([#2387](#2387))
([7b381ea](7b381ea))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
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.

fix(devcontainer): find why a rebuilt devcontainer rejects the keyring password

1 participant