Skip to content

docs: correct outdated fallback keyring path documentation#935

Merged
qcserestipy merged 1 commit into
goharbor:mainfrom
CygnusMaximillian:docs/fix-keyring-path
May 26, 2026
Merged

docs: correct outdated fallback keyring path documentation#935
qcserestipy merged 1 commit into
goharbor:mainfrom
CygnusMaximillian:docs/fix-keyring-path

Conversation

@CygnusMaximillian

Copy link
Copy Markdown

📝 Description

This PR updates the File-based Keyring (Fallback) documentation in the Harbor CLI Encryption Guide to reflect standard XDG Base Directory Specification alignment.

Previously, the documentation erroneously stated that the default fallback keyring file path defaults to a top-level home dotfile directory (~/.harbor/keyring). Local isolation testing on modern distributions verifies that the CLI binary strictly respects system-wide XDG variables (~/.config/harbor-cli/config.yaml and ~/.local/share/harbor-cli/), never generating a legacy ~/.harbor/ folder in the user's root home path.

🛠️ Changes Made

  • Modified: doc/cli-encryption/_index.md
  • Removed out-of-date documentation references targeting ~/.harbor/keyring.
  • Replaced outdated path with a generalized, clear note directing users toward the active XDG-compliant folder hierarchy (e.g., ~/.local/share/harbor-cli/keyring or ~/.config/harbor-cli/keyring).

🧪 Verification & Testing Completed

  1. Environment Stripping: Executed local configuration initializations using an isolated context wrapper to block default desktop session ring hooks (env -i HOME=$HOME PATH=$PATH ./harbor-cli login...).
  2. Footprint Check: Verified that directory generation successfully mapped variables to .config/harbor-cli/config.yaml and .local/share/harbor-cli/data.yaml without generating an extraneous ~/.harbor file path.
  3. Markdown Validation: Confirmed documentation links and styling render without any lint errors.

🔗 Related Issues

Fixes #934
Screenshot From 2026-05-16 14-44-36

Updates the file-based keyring fallback documentation to accurately
reflect the standard XDG-compliant path layout structures used by the
application instead of referencing a separate ~/.harbor/ directory.

Fixes goharbor#934

Signed-off-by: CygnusMaximillian <dprajjwal11@gmail.com>

@qcserestipy qcserestipy left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thank you for your contribution, LGTM

@codecov

codecov Bot commented May 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 8.51%. Comparing base (60ad0bd) to head (25200a5).
⚠️ Report is 163 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##             main    #935      +/-   ##
=========================================
- Coverage   10.99%   8.51%   -2.48%     
=========================================
  Files         173     288     +115     
  Lines        8671   14443    +5772     
=========================================
+ Hits          953    1230     +277     
- Misses       7612   13096    +5484     
- Partials      106     117      +11     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@qcserestipy qcserestipy merged commit 12807b5 into goharbor:main May 26, 2026
7 of 8 checks passed
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.

docs: correct outdated fallback keyring path documentation in encryption guide

2 participants