Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support passing encryption in preload #103

Merged
merged 3 commits into from
Dec 13, 2024
Merged

Support passing encryption in preload #103

merged 3 commits into from
Dec 13, 2024

Conversation

chm-diederichs
Copy link
Contributor

No description provided.

@chm-diederichs chm-diederichs changed the base branch from main to v7 December 11, 2024 16:46
index.js Outdated
@@ -261,7 +261,7 @@ class Corestore extends ReadyResource {
async _preload (opts) {
if (opts.preload) opts = { ...opts, ...(await opts.preload) }
await this.ready()
const conf = { parent: null, sessions: null, ongc: null, core: null }
const conf = { parent: null, sessions: null, ongc: null, core: null, encryptionKey: null }
Copy link
Contributor

Choose a reason for hiding this comment

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

add isBlockKey: false also

@mafintosh mafintosh merged commit 0f3995f into v7 Dec 13, 2024
@mafintosh mafintosh deleted the preload-encryption branch December 13, 2024 11:57
mafintosh added a commit that referenced this pull request Jan 14, 2025
* v7 wip

* missing getter on CoreTracker

* forward user preload to core

* add back sessions and namespaces

* missing encryption key

* must wait for root in sessions

* or null

* decode keys

* add some compat fields

* wait should default to true

* root core store closes all cores

* switch to rocksdb branch

* update package.json

* primaryKey can be optionally passed in

* global cache

* support setNamespace for mutating the ns if you know what you are doing

* Fix namespace before ready (#98)

* add hanging namespace test

* fix deadlock

---------

Co-authored-by: Mathias Buus <[email protected]>

* add week ref test

* kill bootstrap and move to simple from key (#100)

* kill bootstrap and move to simple from key

* kill more

* serial line killer

* test for preready sessions

* missing close

* Session manager (#101)

* wip

* fix mutation during iteration

* move ready down

* limit preload usage (#102)

* Support passing encryption in preload (#103)

* support passing encryption from preload

* init isBlockKey also

* forward writable option

---------

Co-authored-by: Mathias Buus <[email protected]>

* pre tag with 7

* cores.get supports buffers

* Fix get (#104)

* we fixed the wrong typo

* add watch/unwatch for monitoring core flows

* pin to specific hash tmp

* v7 bump to hypercore 11 (#105)

* bump to hypercore 11

* updated storage api

* remove stale arg

* correctly set primary key if parallel

* condense

* this.primaryKey may be set in constructor

* tweak core setup to use alias and fix open

* test aliases

* docs

* also decode dkey since public

* basic replication test

---------

Co-authored-by: Christophe Diederichs <[email protected]>
Co-authored-by: Christophe Diederichs <[email protected]>
Co-authored-by: HDegroote <[email protected]>
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.

2 participants