MetadataSetter does not enforce restriction on setting "tahoe" subkeys #1034

Closed
opened 2010-05-11 01:06:54 +00:00 by davidsarah · 3 comments
davidsarah commented 2010-05-11 01:06:54 +00:00
Owner

When the metadata of a child in a directory is updated, the "tahoe" subkeys are not supposed to be changed. (This is not a security restriction, since someone with a writecap to the directory could bypass it; it's just desired behaviour for normal usage.)

This behaviour is enforced by Adder in source:src/allmydata/dirnode.py .

However, it is not enforced by MetadataSetter in the same file. Currently, MetadataSetter is only used by the set_metadata_for method of dirnodes, which is not accessible via the webapi. (The webapi set-children operation uses Adder.)

Either set_metadata_for should be considered for removal since it is not accessible, or MetadataSetter should have the same behaviour as Adder for "tahoe" subkeys.

When the metadata of a child in a directory is updated, the "tahoe" subkeys are not supposed to be changed. (This is not a security restriction, since someone with a writecap to the directory could bypass it; it's just desired behaviour for normal usage.) This behaviour is enforced by `Adder` in source:src/allmydata/dirnode.py . However, it is not enforced by `MetadataSetter` in the same file. Currently, `MetadataSetter` is only used by the `set_metadata_for` method of dirnodes, which is not accessible via the webapi. (The webapi `set-children` operation uses `Adder`.) Either `set_metadata_for` should be considered for removal since it is not accessible, or `MetadataSetter` should have the same behaviour as `Adder` for "tahoe" subkeys.
tahoe-lafs added the
code-dirnodes
major
defect
1.6.1
labels 2010-05-11 01:06:54 +00:00
tahoe-lafs added this to the 1.8.0 milestone 2010-05-11 01:06:54 +00:00
davidsarah commented 2010-06-01 04:44:08 +00:00
Author
Owner

The SFTP code now uses set_metadata_for; this issue will be fixed at the same time as #1063.

The SFTP code now uses `set_metadata_for`; this issue will be fixed at the same time as #1063.
tahoe-lafs modified the milestone from 1.8.0 to 1.7.0 2010-06-01 04:44:08 +00:00
davidsarah commented 2010-06-01 05:32:03 +00:00
Author
Owner
(http://allmydata.org/trac/tahoe-lafs-ticket1037/changeset/4378)
davidsarah commented 2010-06-03 04:25:28 +00:00
Author
Owner

zooko reviewed this over irc.

zooko reviewed this over irc.
tahoe-lafs added the
fixed
label 2010-06-08 04:34:53 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Reference: tahoe-lafs/trac-2024-07-25#1034
No description provided.