@elaraai/e3-cloud-files 1.1.21 → 1.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -4
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -121,18 +121,24 @@ mapping is refused, "deliveries are written by the client into the
|
|
|
121
121
|
deployment's deliveries area, and every workspace of <repo> reads them,
|
|
122
122
|
production included; try files on a local repository".
|
|
123
123
|
|
|
124
|
-
In a deployment the area is a folder of the deployment's deliveries bucket
|
|
125
|
-
made by its configuration (the cdk README's
|
|
124
|
+
In a deployment the area is a folder of the deployment's deliveries bucket
|
|
125
|
+
(or the whole bucket, below), made by its configuration (the cdk README's
|
|
126
|
+
Files), and each file there is an
|
|
126
127
|
OpenPGP message to the repository's deliveries key: the client encrypts each
|
|
127
128
|
file it sends, for example
|
|
128
129
|
|
|
129
130
|
```bash
|
|
130
|
-
gpg --encrypt --recipient <fingerprint>
|
|
131
|
+
gpg --trust-model always --encrypt --recipient <fingerprint> \
|
|
132
|
+
--output prices.csv prices.csv.plain
|
|
131
133
|
```
|
|
132
134
|
|
|
133
135
|
with the public key the deployment's owner sends it (`--recipient` names the
|
|
134
136
|
key by its fingerprint; the file keeps its name; the client checks the
|
|
135
|
-
fingerprint its tool shows after importing the key with the owner).
|
|
137
|
+
fingerprint its tool shows after importing the key with the owner). GnuPG
|
|
138
|
+
encrypts only to a key it has been told to trust, and a key just imported is
|
|
139
|
+
not: `--trust-model always` says the fingerprint was checked. Without it a
|
|
140
|
+
script's `gpg --encrypt` fails with "There is no assurance this key belongs
|
|
141
|
+
to the named user". A sync
|
|
136
142
|
decrypts each file before any byte of it is used: a file with no integrity
|
|
137
143
|
check, in LibrePGP's OCB form, to more than 8 recipients, to a passphrase,
|
|
138
144
|
to other keys, only to a key retired before it was written, under another
|
|
@@ -157,6 +163,24 @@ take it, or why not in the sync's words, without taking it. In
|
|
|
157
163
|
through `opened` (`FilesUnsealOptions`), and `countingUnsealStore()` is an
|
|
158
164
|
unseal store that counts a plaintext and keeps none of it: the probe's.
|
|
159
165
|
|
|
166
|
+
A client's own deployment may give its deliveries the whole bucket instead:
|
|
167
|
+
`"files": { "deliveries": [ { "repo": "*" } ] }` in the deployment's
|
|
168
|
+
configuration. Every repository's `Files.deliveries()` then reads the
|
|
169
|
+
bucket's root, so a mapping's key `prices.csv` is the bucket's `prices.csv`
|
|
170
|
+
and a folder's prefix `invoices/` the bucket's `invoices/`: every repository
|
|
171
|
+
reads the same files, and each keeps its own record of what it took, its own
|
|
172
|
+
sync and ledgers. The files are sealed as a repository's area is, to one
|
|
173
|
+
deliveries key for the whole bucket, which every repository's sync opens.
|
|
174
|
+
The client makes its own folders, zero-byte keys ending with `/` (as a
|
|
175
|
+
storage console's "Create folder" makes them), and no mapping takes such a
|
|
176
|
+
key as a file: `latest`, `folder`, `listing` and a mutation's prefix skip
|
|
177
|
+
it, a `file` mapping's key may not end with `/` (refused as it is declared),
|
|
178
|
+
and neither may a probe's (its key from the bucket's root; any repository's
|
|
179
|
+
name answers for the whole bucket). The code and the manifest are the same
|
|
180
|
+
either way: `Files.deliveries()` takes no argument, and the solution never
|
|
181
|
+
knows which form the deployment chose. A deployment that gives each
|
|
182
|
+
repository its own folder works as above.
|
|
183
|
+
|
|
160
184
|
On a local repository the deliveries are the folder
|
|
161
185
|
`<repo>/.e3-cloud/files/deliveries/`, plaintext, which `files push` to a
|
|
162
186
|
deliveries mapping fills; `files bind <repo> <ws> --deliveries s3://…/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elaraai/e3-cloud-files",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.22",
|
|
4
4
|
"description": "Files for e3 cloud: a solution's inputs that come from files in a bucket, declared in its code and synced on demand, locally and in the cloud",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -57,14 +57,14 @@
|
|
|
57
57
|
"node": ">=22.0.0"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@elaraai/e3-types": "1.0.
|
|
61
|
-
"@elaraai/e3-cloud-types": "1.1.
|
|
60
|
+
"@elaraai/e3-types": "1.0.122",
|
|
61
|
+
"@elaraai/e3-cloud-types": "1.1.22"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"@aws-sdk/client-s3": "^3.966.0",
|
|
65
|
-
"@elaraai/e3": "1.0.
|
|
66
|
-
"@elaraai/e3-core": "1.0.
|
|
67
|
-
"@elaraai/east": "1.0.
|
|
65
|
+
"@elaraai/e3": "1.0.122",
|
|
66
|
+
"@elaraai/e3-core": "1.0.122",
|
|
67
|
+
"@elaraai/east": "1.0.122"
|
|
68
68
|
},
|
|
69
69
|
"peerDependenciesMeta": {
|
|
70
70
|
"@aws-sdk/client-s3": {
|