Commit Graph

14235 Commits

Author SHA1 Message Date
Jean-Paul Calderone
8c56ccad72 fall back to *with* validation, not without 2023-01-06 21:00:10 -05:00
Jean-Paul Calderone
85234b07a0 load the right kind of key! 2023-01-06 21:00:04 -05:00
Jean-Paul Calderone
c9e23dea13 we should always be able to get these
and we always need overload now
2023-01-06 20:59:48 -05:00
Jean-Paul Calderone
a806b2faba Fix some more mypy errors 2023-01-06 18:11:47 -05:00
Jean-Paul Calderone
01b14fe05c Merge remote-tracking branch 'origin/master' into 3962.pre-determined-rsa-keys 2023-01-06 17:30:01 -05:00
Jean-Paul Calderone
2dc6466ef5 fix some errors reported by mypy 2023-01-06 17:12:59 -05:00
Jean-Paul Calderone
3c3697d39a
Merge pull request #1239 from tahoe-lafs/3914.faster-rsa-tests
Speed up that one RSA test

Fixes: ticket:3914
2023-01-06 16:41:30 -05:00
Jean-Paul Calderone
e829b891b3 important data file ... 2023-01-06 15:51:59 -05:00
Jean-Paul Calderone
1d125b7be8 news fragment 2023-01-06 15:51:36 -05:00
Jean-Paul Calderone
3ff9c45e95 expose the private-key feature in the tahoe put cli 2023-01-06 15:40:48 -05:00
Jean-Paul Calderone
e236cc95a5 Move get_keypair to a shared location 2023-01-06 15:36:08 -05:00
Itamar Turner-Trauring
c220d02093
Merge pull request #1238 from tahoe-lafs/3953.fewer-static-check-ci-jobs
Have fewer instances of the static check CI jobs
2023-01-06 10:56:20 -05:00
Jean-Paul Calderone
3423bfb351 Expose the pre-constructed keypair functionality to the HTTP API 2023-01-03 11:31:29 -05:00
Jean-Paul Calderone
c7bb190290 Factor some SSK "signature" key handling code into a more reusable shape
This gives the test suite access to the derivation function so it can
re-derive certain values to use as expected results to compare against actual
results.
2023-01-03 10:38:18 -05:00
Jean-Paul Calderone
5bad92cfc5 Another Python 2 remnant cleanup 2023-01-03 10:34:39 -05:00
Jean-Paul Calderone
a58d8a567a Clean up some more Python 2 remnants 2023-01-03 10:33:37 -05:00
Jean-Paul Calderone
6b58b66677 Clean up some Python 2 remnants 2023-01-03 10:32:03 -05:00
Jean-Paul Calderone
f6d9c33526 Give slightly better error messages from rsa key validation failure 2023-01-03 10:28:59 -05:00
Jean-Paul Calderone
23f2d8b019 add some type annotations to allmydata.crypto.rsa 2023-01-03 10:28:32 -05:00
Jean-Paul Calderone
15e22dcc52 Add keypair to NodeMaker.create_mutable_file
Previously `NodeMaker` always took responsibility for generating a keypair to
use.  Now the caller may supply one.
2023-01-02 19:29:13 -05:00
Jean-Paul Calderone
3f8bec0ecc Merge remote-tracking branch 'origin/master' into 3914.faster-rsa-tests 2023-01-02 11:46:10 -05:00
Jean-Paul Calderone
1c643ebbaf
Merge pull request #1237 from tahoe-lafs/3954.faster-http
Faster HTTP for immutable downloads

Fixes: ticket:3954
2023-01-02 10:09:55 -05:00
Jean-Paul Calderone
cdb20b0208
Merge pull request #1228 from tahoe-lafs/3937-integration-http-storage
Run integration tests with http storage protocol too

Fixes: ticket:3937
2023-01-02 09:22:10 -05:00
Jean-Paul Calderone
3badd42321
Merge pull request #1232 from exarkun/3942.missing-authorization-handling
3942 Handle missing Authorization in GBS server

Fixes: ticket:3942
2022-12-21 19:01:28 -05:00
Jean-Paul Calderone
1a1ca8d5ef Merge remote-tracking branch 'origin/master' into 3942.missing-authorization-handling 2022-12-21 09:44:41 -05:00
Jean-Paul Calderone
ab6b0fa971
Merge pull request #1242 from exarkun/3870.fix-cachix-for-forks
Fix cachix handling on PRs from forks
2022-12-21 09:42:23 -05:00
Jean-Paul Calderone
2da3d43b2e news fragment 2022-12-21 07:22:37 -05:00
Jean-Paul Calderone
25eb3ca262 Switch to a variable observed in practice
There is apparently no CIRCLE_PR_REPONAME set in the runtime environment,
either, despite what the docs say.
2022-12-21 06:47:21 -05:00
Jean-Paul Calderone
21af00bf83 Report the CIRCLE_PR_REPONAME too, because who knows 2022-12-21 06:27:41 -05:00
Jean-Paul Calderone
78e04cc821 Modernize cachix usage; attempt to fix CircleCI conditional
CIRCLE_PR_NUMBER documentation may just be wrong.  It seems like maybe it is
never set?

Try inspecting the source repo value instead.
2022-12-21 06:25:22 -05:00
Jean-Paul Calderone
6b57b03157 Merge remote-tracking branch 'origin/master' into 3942.missing-authorization-handling 2022-12-21 05:51:39 -05:00
Jean-Paul Calderone
80caf04966
Merge pull request #1234 from tahoe-lafs/3947.mutable-test_version-async-def
Convert some tests for mutables to use `async def`

Fixes: ticket:3947
2022-12-21 05:50:07 -05:00
Jean-Paul Calderone
c014ad55b1 remove Python 2 boilerplate 2022-12-14 08:48:02 -05:00
Jean-Paul Calderone
05c7450376 Try to use an upcoming python-cryptography feature to avoid some costs
If the key is the wrong number of bits then we don't care about any other
validation results because we're just going to reject it.  So, check that
before applying other validation, if possible.

This is untested since the version of python-cryptography that supports it is
not released yet and I don't feel like setting up a Rust build tool chain at
the moment.
2022-12-14 08:47:05 -05:00
Jean-Paul Calderone
2677f26455 news fragment 2022-12-14 08:46:39 -05:00
Jean-Paul Calderone
a1cb889308 Take typechecks and codechecks out of the GitHub Actions config
There's a dedicated job on CircleCI.
2022-12-14 08:35:10 -05:00
Jean-Paul Calderone
2057f59950 news fragment 2022-12-14 08:35:06 -05:00
Itamar Turner-Trauring
6ae40a932d A much more reasonable number of HTTP connections. 2022-12-13 15:54:19 -05:00
Itamar Turner-Trauring
be3ace7ade News file. 2022-12-13 15:39:04 -05:00
Itamar Turner-Trauring
14d65d25da Merge remote-tracking branch 'origin/master' into 3937-integration-http-storage 2022-12-13 10:57:27 -05:00
Itamar Turner-Trauring
87ff1706a9
Merge pull request #1236 from tahoe-lafs/pin-older-tox
Pin older tox
2022-12-13 10:53:29 -05:00
Jean-Paul Calderone
815c998c33 regular ci 2022-12-13 09:09:02 -05:00
Jean-Paul Calderone
8282fce4cd build the images again 2022-12-13 08:57:21 -05:00
Jean-Paul Calderone
b8680750da pin it in more places 2022-12-12 11:47:32 -05:00
Itamar Turner-Trauring
6a1f49551b No, that's not it. 2022-12-12 11:05:09 -05:00
Itamar Turner-Trauring
366cbf9001 Tox is bad? 2022-12-12 10:55:07 -05:00
Itamar Turner-Trauring
d05a1313d1 Don't change versions for now, use strings so it'll be future compatible with 3.10. 2022-12-12 10:54:23 -05:00
Itamar Turner-Trauring
742b352861 Whitespace. 2022-12-12 10:52:17 -05:00
Itamar Turner-Trauring
106df423be Another approach. 2022-12-12 10:52:01 -05:00
Itamar Turner-Trauring
c5c616afd5 Garbage. 2022-12-12 10:44:49 -05:00