ansuz
e185008846
complete uploads in child processes
...
also fix a nasty race condition for unowned file uploads
4 years ago
ansuz
1f1b40b83d
move some implictly global state to env.js
4 years ago
ansuz
5cf8ca70e6
don't pin falsey document ids
4 years ago
ansuz
034472d3dd
move some implictly global state to env.js
4 years ago
ansuz
f7bd3bdc23
don't pin falsey document ids
4 years ago
ansuz
fbc9edd795
rename latest admin commands and implement metadata getter/remover
4 years ago
ansuz
488ec93ece
allow expert admins to get and clear cached channel indices
4 years ago
ansuz
faa7ebf399
Fix some bugs with integrated eviction
...
1. implement SET_LAST_EVICTION as an admin command, not a decree
2. expect a return value from Env.evictInactive and expose it via Env.evictionReport
4 years ago
ansuz
a2c0d2165b
implement a few more admin decrees
4 years ago
ansuz
abd84665ae
lint compliance
4 years ago
ansuz
6ec5171518
add support for changing a few more Env parameters at runtime
4 years ago
ansuz
f2ec9cbe33
load premium and customLimits to avoid evicting them even if inactive
4 years ago
ansuz
854e4c06ff
report lastEviction in an admin INSTANCE_STATUS
4 years ago
ansuz
471a9a33ac
take note of a minor error with pin RPCs
4 years ago
ansuz
6d13a785c6
downgrade a non-critical XXX to a FIXME
4 years ago
ansuz
b5d3a10dc2
guard against possible typeErrors from unvalidated config input
4 years ago
ansuz
f4f803ccd9
reuse Keys.canonicalize to accept any pubkey format
4 years ago
ansuz
914139dbfa
lint compliance
4 years ago
yflory
51e1b9b043
Fix custom limit not applied when using a raw edPublic
4 years ago
ansuz
aa35e092f7
update an inaccurate comment
4 years ago
ansuz
928b7e3583
implement GET_LIMITS admin rpc
...
...and label stored usage limits according to their source
4 years ago
ansuz
b62d4387a6
drop support for SET_DEFAULT_STORAGE_LIMIT
...
it's redundant now that we support persistent admin decrees
and it was never exposed via the UI anyway
4 years ago
ansuz
0c5db31fbc
refactor quota logic for external usage
4 years ago
ansuz
bd6234c5bc
lint compliance and some notes
4 years ago
ansuz
1781ee2585
implement 'UPDATE_DEFAULT_STORAGE' as a decree
4 years ago
ansuz
7aa7d5978f
implement persistence of config changes from admin panel
4 years ago
ansuz
fcfcb3dca6
fix history trim for channels with access lists
4 years ago
ansuz
6ada5fd751
always consider premium accounts to be active
4 years ago
ansuz
d9219f4ecc
add a note for later
4 years ago
ansuz
5749b6fd7b
add an admin RPC to archive documents
4 years ago
ansuz
95778cc7c9
respond with ENOENT instead of E_NO_OWNERS when archiving a file that does not exist
4 years ago
yflory
04af753a81
lint compliance
4 years ago
ansuz
ebcc9a069b
add server-side support for the new format of public signing keys
4 years ago
ansuz
d35b015c3f
log some info on successful file uploads
5 years ago
ansuz
9ed26cfeb0
lint compliance
5 years ago
ansuz
74567e0cf4
return process memory usage in GET CACHE STATS RPC
5 years ago
ansuz
e527867e2e
queue blob and channel deletions per-user
5 years ago
ansuz
bd3e18d1a8
only cache a user's pinned channels if there are no errors when loading them
5 years ago
ansuz
bef18a9320
hotfix
5 years ago
ansuz
3d8e78a268
fix overly broad config interpretation for daily check
5 years ago
ansuz
e6ec891d9a
improve admin rpc for diagnosing memory used by the cache
5 years ago
ansuz
6d0dee979a
allow admins to inspect index/metadata caches
5 years ago
ansuz
b0179eaad9
drop XXX note
5 years ago
ansuz
9dbd32758a
improve worker logging and move blob deletion to worker processes as well
5 years ago
ansuz
cb53bd1c15
lint compliance
5 years ago
ansuz
14feef1757
calculate pin list checksums in a worker
5 years ago
ansuz
70a0d4efb4
move more database reads into the database worker
5 years ago
ansuz
4ba36a9173
load user pins in the database worker
5 years ago
ansuz
471e374533
compute metadata in the same child process that builds indexes
5 years ago
ansuz
479b76f848
lint compliance
5 years ago
ansuz
40251948d4
check authenticated rpc signatures in separate threads
5 years ago
ansuz
90899aa2f4
start reviewing and removing XXX notes
5 years ago
ansuz
631ea54b49
lint compliance
5 years ago
ansuz
67dd4a608c
Merge remote-tracking branch 'origin/scaling' into scaling2
5 years ago
ansuz
b2fcde87d8
implement an admin command to update the default storage limit without a restart
5 years ago
yflory
0d636dabc9
Check signature for history keeper in a different process
5 years ago
ansuz
2a9780abcf
lint compliance
5 years ago
ansuz
2d47e7e2cf
implement an admin rpc to fetch ulimit data
5 years ago
ansuz
81c7416095
lint compliance
5 years ago
ansuz
f644c24362
add an admin-rpc to count the number of open files
5 years ago
ansuz
1230057970
disable IS_PAD_PINNED
5 years ago
ansuz
6d8cdca7a3
add 'rejected' field to metadata when getMetadata requests are blocked
5 years ago
ansuz
9d8bb43d03
finally untangle metadata and index caches
5 years ago
ansuz
32d769447a
begin standardizing our method of streaming lines from files
5 years ago
ansuz
b126e4456b
simplify quota logic
5 years ago
ansuz
170aa6d47e
clean up a few tasks related to allow lists
5 years ago
ansuz
2f00ff3278
simplify check-in deactivation
5 years ago
ansuz
c26560e3f9
commit stashed admin-rpc refactor
5 years ago
ansuz
59ad80d7f1
support larger upload sizes for users with premium accounts
5 years ago
ansuz
f951951077
merge communities-allow-list and lint compliance
5 years ago
ansuz
021a6b361f
remove a bogus XXX note
5 years ago
ansuz
7ee8778210
kick unauthorized users from restricted channels
...
and update dependencies
5 years ago
ansuz
fe0e02a421
restrict access to metadata
5 years ago
ansuz
791aad53f2
WIP allow list changes
5 years ago
ansuz
f579c9b059
semi-functional allow-list implementation in historyKeeper
5 years ago
ansuz
0edcdcb1b8
oups! fix a missing callback that's been here for a while...
5 years ago
ansuz
27e57e7af0
oups! fix a missing callback that's been here for a while...
5 years ago
ansuz
f86196e40a
implement shared environment between historyKeeper and RPC
5 years ago
ansuz
38c1700173
Respond to pinning RPCs as soon as possible
...
(instead of waiting until you've read an unbounded number
of pin logs while queries back up in memory)
Also replace instances of 'publicKey' with 'safeKey' or 'unsafeKey'
to clearly and correctly indicate their format.
5 years ago
ansuz
3dc789cbca
replace pinned.js with low-profile streaming implementation
5 years ago
ansuz
1231cacef1
remove XXX
5 years ago
ansuz
7f22da0f57
fix use of incorrect key format in admin-rpc
5 years ago
ansuz
802034616c
centralize historykeeper-rpc interaction in rpc methods
5 years ago
ansuz
b4172676f3
lint compliance
5 years ago
ansuz
f17d14fd99
simpler limit updates
5 years ago
ansuz
bde17a62a1
continue refactoring rpc
5 years ago
ansuz
fa525817ba
fix broken removePins RPC
5 years ago
ansuz
5808c534b5
fix function signature for trimHistory RPC
5 years ago
ansuz
9c28941f6c
lint compliance
5 years ago
ansuz
46dfa026f0
fix an API change that caused a typeError
5 years ago
ansuz
88be40ede3
standardize some function signatures and factor out a lot of boilerplate
5 years ago
ansuz
65ba85d97b
clear historyKeeper cache when we trim a channel
5 years ago
ansuz
43307ffb1a
define all server intervals in a map so we can easily clear them all
5 years ago
ansuz
6523974ca2
fix a WRITE_PRIVATE_MESSAGE rpc regression
5 years ago
ansuz
779e817443
stop relying on netflux-server internals
...
* create RPC module from inside historyKeeper
* stop passing around netflux-server context
* update to use newer netflux-server's formal APIs
* manage your own cache of indexes instead of storing things in the netflux context
5 years ago
ansuz
b093d3f0d2
WIP massive rpc refactor
5 years ago
ansuz
ceb351326c
split out some more rpc functionality and fix broken module paths
5 years ago
ansuz
c1f222dd6c
move metadata commands from rpc to their own module
5 years ago
ansuz
bb7e8e4512
move login block functionality into its own rpc module
5 years ago
ansuz
c765362744
move more rpc functionality into modules
5 years ago