Repository navigation
Keep yaz-client authentication out of disk history - #249
Merged
Merged
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
The test can fail on clean builds or use a stale client executable, and early exits from command files can leave persisted credentials uncleared.
2 open issues
What changed in this PR
This PR separates yaz-client’s session history from persistent history to keep authentication commands off disk while preserving in-session recall.
Changes:
- Filter authentication commands, including abbreviations and nested
push_commandentries, and clean existing history on normal exit. - Redact passwords and OpenStyle strings in confirmations and settings.
- Add regression tests and document the behavior and its limits.
| File | Description |
|---|---|
test/test_client_history.sh |
Tests persistent-history filtering and cleanup. |
test/test_client_history.c |
Tests command classification, session recall, and redaction. |
test/Makefile.am |
Registers and links the new tests. |
test/.gitignore |
Ignores the new test executable. |
doc/yaz-client-man.xml |
Documents history filtering and credential redaction. |
client/fhistory.h |
Adds an optional history-filter predicate. |
client/fhistory.c |
Filters history entries and supports empty-file cleanup. |
client/client.c |
Classifies authentication commands and redacts displayed credentials. |
Review effort: Balanced
adamdickmeiss
force-pushed
the
keep-yaz-client-auth-out-of-disk-history
branch
2 times, most recently
from
November 7, 2026 14:20
7c189d2 to
f986eaf
Compare
There was a problem hiding this comment.
🟡 Changes recommended
Startup commands can exit before filtered history is loaded, leaving credentials on disk after a normal exit, and duplicate tests are not registered to run under make check.
1 open issue
2 resolved since last review
Review effort: Balanced
adamdickmeiss
force-pushed
the
keep-yaz-client-auth-out-of-disk-history
branch
from
November 7, 2026 14:29
f986eaf to
d742f96
Compare
Preserve authentication recall within the current session while excluding these commands from persistent history. Filter existing entries on load and remove them from disk on normal exit. Redact passwords and OpenStyle strings in confirmations and settings. Cover abbreviations, nested push_command entries, and history cleanup with regression tests. Document the behavior.
adamdickmeiss
force-pushed
the
keep-yaz-client-auth-out-of-disk-history
branch
from
November 7, 2026 14:39
d742f96 to
0c187db
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Preserve authentication recall within the current session while excluding these commands from persistent history. Filter existing entries on load and remove them from disk on normal exit.
Redact passwords and OpenStyle strings in confirmations and settings. Cover abbreviations, nested push_command entries, and history cleanup with regression tests. Document the behavior.