You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: TAGGING.md
+13-8
Original file line number
Diff line number
Diff line change
@@ -4,12 +4,17 @@ Tagging allows extra metadata about your files to be send to the external object
4
4
Currently, this is only implemented for the S3 file system client. [See the S3 docs for more information](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-tagging.html).
5
5
6
6
**Tagging vs metadata**
7
+
7
8
Note object tags are different from object metadata.
8
9
9
10
Object metadata is immutable, and attached to the object on upload. With metadata, if you wish to update it (for example during a migration, or the sources changed), you have to copy the object with the new metadata, and delete the old object. This is problematic, since deletion is optional in objectfs.
10
11
11
12
Object tags are more suitable, since their permissions can be managed separately (e.g. a client can be allowed to modify tags, but not delete objects).
12
13
14
+
## File system setup
15
+
### S3
16
+
You must grant `s3:GetObjectTagging` and `s3:PutObjectTagging` permission.
17
+
13
18
## Sources
14
19
The following sources are implemented currently:
15
20
### Environment
@@ -22,7 +27,7 @@ What mimetype the file is stored as under the `mdl_files` table.
22
27
It is possible you are using objectfs with multiple environments (e.g. prod, staging) that both point to the same bucket. Since files are referenced by contenthash, it generally does not matter where they come from s
23
28
If this is the case, for tagging to work as expected, you must ensure object override is turned off for every environment except production.
24
29
25
-
This means that staging is unable to overwrite objects (thus overwriting tags) for files uploaded elsewhere. However, files uploaded elsewhere can be overwitten (hence overwriting tags) by production. This allows
30
+
This means that staging is unable to overwrite objects (thus overwriting tags) for files uploaded elsewhere. However, files uploaded elsewhere can be overwitten (hence overwriting tags) by production.
0 commit comments