Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Update naming (#2159)

Leendert de Borst2500f8d7e9c2
diff --git a/apps/browser-extension/src/utils/EncryptionUtility.ts b/apps/browser-extension/src/utils/EncryptionUtility.ts
index 6f4107d47..9fcfdf6e9 100644
--- a/apps/browser-extension/src/utils/EncryptionUtility.ts
+++ b/apps/browser-extension/src/utils/EncryptionUtility.ts
@@ -189,7 +189,7 @@ export class EncryptionUtility {
/**
* Generates a random 256-bit Vault Encryption Key (VEK) as base64. The VEK encrypts the vault content and never
- * changes; it is stored server-side only in wrapped form (encrypted with a KEK derived from an unlock method).
+ * changes; it is stored server-side only in encryped form (encrypted with a KEK derived from an unlock method).
*/
public static generateVaultEncryptionKey(): string {
const vek = crypto.getRandomValues(new Uint8Array(32));
@@ -208,8 +208,8 @@ export class EncryptionUtility {
* Unwraps (decrypts) an encrypted VEK with a KEK. Returns the VEK as base64.
*/
public static async unwrapVaultEncryptionKey(encryptedVekBase64: string, kekBase64: string): Promise<string> {
- const wrappedBytes = Uint8Array.from(atob(encryptedVekBase64), c => c.charCodeAt(0));
- const vekBytes = await this.symmetricDecryptBytes(wrappedBytes, kekBase64);
+ const encryptedBytes = Uint8Array.from(atob(encryptedVekBase64), c => c.charCodeAt(0));
+ const vekBytes = await this.symmetricDecryptBytes(encryptedBytes, kekBase64);
return btoa(String.fromCharCode(...vekBytes));
}
diff --git a/apps/browser-extension/src/utils/RustCore.ts b/apps/browser-extension/src/utils/RustCore.ts
index 8a1b66ed5..df5ebd3b8 100644
--- a/apps/browser-extension/src/utils/RustCore.ts
+++ b/apps/browser-extension/src/utils/RustCore.ts
@@ -264,16 +264,16 @@ export type CodecManifest = {
userSalt: string;
canonicalizedAt: string;
manifestId: string;
- sharedFolderId?: string | null;
+ anchorFolderId?: string | null;
tables: Record<string, Array<Record<string, unknown>>>;
[key: string]: unknown;
};
-/** One shared folder to split out during canonicalize: its manifest id, folder id, and that manifest's own blob salt. */
-export type CodecSharedFolderSpec = { manifestId: string; folderId: string; userSalt: string };
+/** One shared manifest to split out during canonicalize: its manifest id, anchor folder id, and that manifest's own blob salt. */
+export type CodecSharedManifestSpec = { manifestId: string; anchorFolderId: string; userSalt: string };
-/** One shared-folder manifest produced by the canonicalize split, with its own blob map. */
-export type CodecSharedVault = { folderId: string; manifest: CodecManifest; blobs: Record<string, CodecBlobEntry> };
+/** One shared manifest produced by the canonicalize split, with its own blob map. */
+export type CodecSharedVault = { anchorFolderId: string; manifest: CodecManifest; blobs: Record<string, CodecBlobEntry> };
/**
* A manifest-v1 data bucket.
@@ -316,7 +316,7 @@ export type CodecCanonicalizeInput = {
userSalt: string;
migrationId: string;
rootManifestId: string;
- sharedFolders?: CodecSharedFolderSpec[];
+ sharedManifests?: CodecSharedManifestSpec[];
canonicalizedAt: string;
};
@@ -388,7 +388,7 @@ export async function vaultCodecBucketLayout(): Promise<CodecBucketLayoutEntry[]
*
* Logo identity is derived: two devices that fetch the same favicon independently produce
* the same row and merge by LWW. The same domain in two different manifests deliberately yields
- * two different ids, so a shared folder's logo and the user's own logo for that domain never
+ * two different ids, so a shared manifest's logo and the user's own logo for that domain never
* overwrite each other.
*/
export async function vaultCodecLogoIdForSource(manifestId: string, source: string): Promise<string> {
diff --git a/apps/browser-extension/src/utils/db/repositories/FolderRepository.ts b/apps/browser-extension/src/utils/db/repositories/FolderRepository.ts
index c80d3da3b..5bf60c6b7 100644
--- a/apps/browser-extension/src/utils/db/repositories/FolderRepository.ts
+++ b/apps/browser-extension/src/utils/db/repositories/FolderRepository.ts
@@ -19,8 +19,8 @@ export class FolderRepository extends BaseRepository {
* Create a new folder.
* @param name - The name of the folder
* @param parentFolderId - Optional parent folder ID for nested folders
- * @param id - Optional explicit folder ID (used when the id must be known before creation, e.g. a shared folder
- * whose id is embedded in its server-side manifest); a new GUID is generated when omitted.
+ * @param id - Optional explicit folder ID (used when the id must be known before creation, e.g. an anchor folder
+ * whose id is embedded in its server-side shared manifest); a new GUID is generated when omitted.
* @returns The ID of the created folder
*/
public async create(name: string, parentFolderId?: string | null, id?: string): Promise<string> {
diff --git a/apps/browser-extension/src/utils/db/repositories/ItemRepository.ts b/apps/browser-extension/src/utils/db/repositories/ItemRepository.ts
index 1b03aac29..8eca6e389 100644
--- a/apps/browser-extension/src/utils/db/repositories/ItemRepository.ts
+++ b/apps/browser-extension/src/utils/db/repositories/ItemRepository.ts
@@ -594,9 +594,9 @@ export class ItemRepository extends BaseRepository {
* 3. otherwise the favicon for the item's current domain, which is looked up rather than carried
* over: an item whose URL changed must not keep the previous site's logo.
*
- * Rule 2 also keeps the logo of an item inside a shared folder pointing at the folder's own row.
+ * Rule 2 also keeps the logo of an item inside a shared manifest pointing at the manifest's own row.
* Re-resolving would swap in the personal-scope row, which the next push would then copy over the
- * folder's logo: a write every member sees, every time anyone edits the item.
+ * shared manifest's logo: a write every member sees, every time anyone edits the item.
* @param item The item being created or updated
* @param currentDateTime The current date/time string for timestamps
* @param existingLogoId The logo the item currently has, when updating