Commit Graph

13765 Commits

Author SHA1 Message Date
Itamar Turner-Trauring
61a20e2450 Add concept of upload secret to immutable uploads. 2021-10-22 10:10:53 -04:00
Jean-Paul Calderone
a8d3555ebb reference the eventually-public ticket number 2021-10-21 15:24:53 -04:00
Itamar Turner-Trauring
211640a4cd
Merge pull request #1143 from tahoe-lafs/3800-lease-istorageserver-tests
IStorageServer tests for leases

Fixes ticket:3800
2021-10-21 14:37:46 -04:00
meejah
1e53570930
Merge pull request #1145 from meejah/3735.tarballs
3735: only release .tar.gz and wheels
2021-10-21 11:18:16 -06:00
meejah
b8ff0e7fa9 news 2021-10-20 20:19:36 -06:00
meejah
027df09828 release two things: wheels, and a .tar.gz source dist 2021-10-20 16:10:23 -06:00
meejah
ffb20d3bbf
Merge pull request #1144 from tahoe-lafs/3754.release-1.16.0-rc1
release 1.16.0
2021-10-20 16:04:05 -06:00
fenn-cs
26419c40bc Merge branch 'master' of github.com:tahoe-lafs/tahoe-lafs into 3788.refactor-src.test.mutable 2021-10-20 11:17:41 +01:00
meejah
a7ce84f4d5 correct names, dates 2021-10-19 18:02:29 -06:00
meejah
4bfb9d2170 correct previous-release version 2021-10-19 17:25:34 -06:00
meejah
1e6265b87c update relnotes 2021-10-19 17:24:29 -06:00
fenn-cs
20ad6cd9e7 iterate over args directly without indexing
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2021-10-19 23:57:52 +01:00
fenn-cs
e1dfee1d7b put notes under correct categories
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2021-10-19 23:20:38 +01:00
Itamar Turner-Trauring
2a5dbcb05e Tests for mutable leases. 2021-10-19 09:30:38 -04:00
Itamar Turner-Trauring
4b8b6052f3 Finish testing leases on immutables. 2021-10-19 09:05:48 -04:00
Jean-Paul Calderone
3cd9a02c81 Reject negative lengths in MutableShareFile._read_share_data and readv 2021-10-18 20:22:52 -04:00
Jean-Paul Calderone
5e58b62979 Add a test for negative offset or length to MutableShareFile.readv 2021-10-18 20:22:52 -04:00
Jean-Paul Calderone
4a5e4be006 news fragment 2021-10-18 20:22:52 -04:00
Jean-Paul Calderone
df64bbb1e4 fail to encode the lease count *before* changing anything
This preserves the failure behavior - `struct.error` is raised - but leaves
the actual share file contents untouched if the new lease count cannot be
encoded.

There are still two separate write operations so it is conceivable that some
other problem could cause `write_lease_record` to happen but
`write_encoded_num_leases` not to happen.  As far as I can tell we have
severely limited options for addressing that problem in general as long as
share files are backed by a POSIX filesystem.

However, by removing the failure mode that depends on user input, it may be
that this is all that is needed to close the *security* hole.
2021-10-18 20:17:41 -04:00
Jean-Paul Calderone
f60bbbd3e2 make it possible to test this behavior of add_lease 2021-10-18 20:17:41 -04:00
Jean-Paul Calderone
7d04e6ab86 news fragment 2021-10-18 20:17:41 -04:00
Itamar Turner-Trauring
b7be91e3d0 First test for leases. 2021-10-18 13:17:07 -04:00
Jean-Paul Calderone
040dbf3267
Merge pull request #1142 from LeastAuthority/3815.security-towncrier-type
Add towncrier "security" type

Fixes: ticket:3815
2021-10-18 13:02:11 -04:00
Itamar Turner-Trauring
2b40610a27 "Server" is extremely ambiguous, so let's just call this a client, which it is. 2021-10-18 12:55:30 -04:00
Itamar Turner-Trauring
58112ba75b Plan of implementation for lease tests. 2021-10-18 12:50:29 -04:00
Itamar Turner-Trauring
4c7e50360c
Merge pull request #1139 from tahoe-lafs/3812-test-advise-corrupt-share
Tests for IStorageServer.advise_corrupt_share

Fixes ticket:3812
2021-10-18 12:39:41 -04:00
Jean-Paul Calderone
f2ef72e935 newsfragment in temporary location 2021-10-18 08:14:42 -04:00
Jean-Paul Calderone
30ae30e325 fix the whitespace :/ 2021-10-18 08:11:49 -04:00
Jean-Paul Calderone
a7073fe531 news fragment 2021-10-18 08:08:58 -04:00
Jean-Paul Calderone
67fb8aeb25 add the security type 2021-10-18 08:08:01 -04:00
Jean-Paul Calderone
1c347c5931 replace sensitive introducer fURL with path where it can be found 2021-10-18 08:05:40 -04:00
Jean-Paul Calderone
ad216e0f23 remove unused import 2021-10-15 13:13:37 -04:00
Jean-Paul Calderone
9e59e69223 news fragment 2021-10-15 13:13:08 -04:00
Jean-Paul Calderone
0611af6b0b Stop passing even a dummy value for control tub into Nodes 2021-10-15 13:10:18 -04:00
Jean-Paul Calderone
fe2e2cc1d6 Get rid of the control service 2021-10-15 12:12:19 -04:00
Jean-Paul Calderone
1de480dc37 Stop offering an API to create a control tub or handling the control tub 2021-10-15 12:12:03 -04:00
Jean-Paul Calderone
ddf5f461bf Stop half-pretending to have a control port 2021-10-15 12:11:53 -04:00
Jean-Paul Calderone
e0312eae57 stop creating a control tub for client nodes 2021-10-15 12:02:24 -04:00
Jean-Paul Calderone
95b765e309 stop creating a control tub for the introducer 2021-10-15 11:54:18 -04:00
Jean-Paul Calderone
1aae92b18e Get rid of getmem.py helper
Platforms provide an interface for retrieving this information.  Just use
those interfaces instead.
2021-10-15 11:47:05 -04:00
Jean-Paul Calderone
1b8e013991 Get rid of check_speed
The motivation and justification here are roughly the same as for
`check_memory`.
2021-10-15 11:46:34 -04:00
Jean-Paul Calderone
347377aaab Get rid of check_memory which depends on the control port
This was some kind of memory usage analysis tool.  It depends on the control
port so it cannot work after I delete the control port.  The code itself is
messy, undocumented, and has no automated tests.  I don't know if it works at
all anymore.  Even if it does, no one ever runs it.

Measuring Tahoe-LAFS' memory usage over the course of maintenance and
development is a lovely idea but the project has not managed to adopt (or
maintain?) that practice based on this tool.  Given sufficient interest we can
resurrect this idea using a more streamlined process and less invasive tools
in the future.
2021-10-15 11:43:34 -04:00
fenn-cs
1a12a8acdf don't throw away unserializable parameter
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2021-10-15 00:50:11 +01:00
Itamar Turner-Trauring
e099bc6736 Tests for IStorageServer.advise_corrupt_share. 2021-10-14 12:52:56 -04:00
Itamar Turner-Trauring
22aab98fcf When callRemoteOnly as removed, these probably should've been changed to return
a Deferred.
2021-10-14 12:52:40 -04:00
Jean-Paul Calderone
efc9dc831b Revert "a stab at using setup.cfg and setuptools_scm"
This reverts commit 68e8e0a7d5.
2021-10-14 11:01:37 -04:00
Jean-Paul Calderone
68e8e0a7d5 a stab at using setup.cfg and setuptools_scm 2021-10-14 10:58:41 -04:00
fenn-cs
57a0f76e1f maintain list of positional arguments as tuple
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2021-10-13 23:41:42 +01:00
Itamar Turner-Trauring
984b4ac45e News file. 2021-10-13 13:56:14 -04:00
fenn-cs
bf670c0664 Merge branch 'master' of github.com:tahoe-lafs/tahoe-lafs into 3788.refactor-src.test.mutable 2021-10-12 22:42:59 +01:00