Repository navigation
Show saved credential state and add optional password reveal - #22
Merged
Merged
Conversation
Credential fields now show a masked placeholder when a password is already saved, so a blank field no longer looks like it will erase it. Blank input still keeps the stored password. An explicit Show saved passwords action returns plaintext fallback values and decodes obfuscated ones with a reader MAC address entered by the user (Base64, then cyclic XOR with the six MAC bytes). The MAC is not stored.
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.
Change Summary
Saved Wi-Fi, OPDS and reading-sync passwords were invisible in the app, so a blank password field looked as if applying would erase the saved password. Credential fields now show a masked "saved" state, and an optional action can reveal passwords on request.
•••••••• (saved, kept unless you change it)when the card already holds a password, and "No saved password" otherwise. Blank input still keeps the stored password; only a typed value or Clear changes it.saved_passwords), never the secret.config.revealaction returns plaintext-fallback passwords as stored and decodes obfuscatedpassword_obfvalues with a reader MAC address the user types in (Base64, then cyclic XOR with the six MAC bytes, matching CrossPoint'sObfuscationUtils).Files Changed
inkkit_config.py: addssaved_passwordsto settings snapshots,parse_mac,_deobfuscateandreveal_passwords.inkkit_helper.py: allowlistsconfig.revealwith optionalstoreandmacfields.macos/InkKitApp.swift: masked placeholder in secret fields, "Show saved passwords" and Hide buttons, a MAC field and reveal state that clears on snapshot reload.tests/test_config_stores.py: covers saved-password flags, plaintext reveal, MAC decode, wrong MAC and invalid MAC input.docs/config-architecture.md: updates the credentials section to describe the explicit reveal path.Testing & Evidence
Local Verification
xcrun swiftc -swift-version 5 -parse-as-library -typecheckonmacos/InkKitApp.swift, andpython3 -m compileallon the changed Python files.XTEINK_TESTING=1 python3 -m unittest discover -s tests -v -boutside the sandbox before merging.CI Verification
unit (3.9)andunit (3.12)on one assertion in the new reveal test, which expected three credential slots instead of all eight (run). Commit c0fce5b fixes the assertion; its run has not completed yet.Independent QA / Architecture Review
Required Pre-PR Validation
python3 scripts/check_configuration_docs.pyandpython3 scripts/check_publication.pyfor worktree, staged and all-history scopes, at commit 6f24403.Behavior & Compatibility
passwordandpassword_obfvalues are preserved unless a new password or Clear is requested.saved_passwordsfield; the Swift decoder treats it as optional.Risks, Limitations & Rollback
wifi.json, so decoding is unverified on hardware.Reviewer Focus
reveal_passwordsininkkit_config.py: confirm secrets are returned only from this action and never reach routine snapshots, diffs or logs.config.revealallowlist entry ininkkit_helper.py.