Repository navigation
perf(ios): prefilter Vault AutoFill with inverted domain index and clean up unused TOTP/tags paths - #252
Merged
Conversation
…ean up unused TOTP/tags paths
…host normalization, and preserve body tags
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.
Summary
VaultDomainIndextoKinicVaultCore(mirroring the inverted domain index inpackages/vault-crypto) and alignVaultCredentialCodec.normalizeDomainwith WHATWG URL host normalization (IPv6 canonicalization, shorthand/octal/hex IPv4 parsing, leading/trailing/double dot rejection, and rejecting invalid numeric final labels such asandroid://jp.1).encryptedDomainIndexBase64URL) onVaultAutoFillSnapshotderived from all logins in decrypted credential bodies duringVaultAutoFillSyncController.synchronize, keeping plaintext domains off disk.VaultAutoFillSnapshotStore.listCandidates(rootKey:matchingHosts:)to prefilter covered records viaVaultDomainIndexso unrelated credential chunks are skipped during host-scoped AutoFill lookups, while falling back to body decryption for any unindexed or stale-revision record (zero false negatives even for legacy records with partial manifests).CredentialProviderViewControllerto passserviceHostsdirectly tolistCandidates(rootKey:matchingHosts:)instead of decrypting every credential before filtering.VaultAutoFillCandidate.hasTotp,VaultAutoFillDecryptedCredential.totpCode,VaultTOTP.generateindecryptCredential, and hiddentagsmatching inVaultItemSummary.matches(query:)), and prefer decrypted credential bodytagsover summarytagswhen preserving legacy fields inVaultItemEditorView.Verification
swift test --package-path mobile/ios/Packages/KinicVaultCore(20/20 passed, includingVaultDomainIndex, WHATWGnormalizeDomain, and encrypted-index prefilter / partial-manifest tests)swift test --package-path mobile/ios/Packages/KinicVaultNative(18 passed, 1 skipped)xcodebuild build-for-testing -project mobile/ios/Kinic.xcodeproj -scheme Kinic -destination 'generic/platform=iOS Simulator' CODE_SIGNING_ALLOWED=NO(succeeded)