Commit graph

9142 commits

Author SHA1 Message Date
pyca-boringbot[bot]
da73db4019
Bump BoringSSL version to b8a651439b1848fec42e2d27037de3a31d1f3e2f (#7308)
Co-authored-by: BoringSSL Bot <pyca-boringbot@users.noreply.github.com>
2022-06-03 22:17:45 -04:00
dependabot[bot]
0459bfd793
Bump syn from 1.0.95 to 1.0.96 in /src/rust (#7307)
Bumps [syn](https://github.com/dtolnay/syn) from 1.0.95 to 1.0.96.
- [Release notes](https://github.com/dtolnay/syn/releases)
- [Commits](https://github.com/dtolnay/syn/compare/1.0.95...1.0.96)

---
updated-dependencies:
- dependency-name: syn
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-03 12:25:45 +00:00
dependabot[bot]
353666110b
Bump peter-evans/create-pull-request from 4.0.3 to 4.0.4 (#7306)
Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 4.0.3 to 4.0.4.
- [Release notes](https://github.com/peter-evans/create-pull-request/releases)
- [Commits](f094b77505...923ad837f1)

---
updated-dependencies:
- dependency-name: peter-evans/create-pull-request
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-03 12:14:08 +00:00
pyca-boringbot[bot]
3e1533e92f
Bump BoringSSL version to a8b1633d1c6be133b9f684cc5cdd778bfd8d564e (#7305)
Co-authored-by: BoringSSL Bot <pyca-boringbot@users.noreply.github.com>
2022-06-02 20:33:07 -04:00
William Woodruff
0ded455a53
CHANGELOG: record past changes (#7300)
* CHANGELOG: record past changes

Signed-off-by: William Woodruff <william@trailofbits.com>

* Update CHANGELOG.rst

Co-authored-by: Paul Kehrer <paul.l.kehrer@gmail.com>

* CHANGELOG: feedback

Signed-off-by: William Woodruff <william@trailofbits.com>

* Update CHANGELOG.rst

Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>

Co-authored-by: Paul Kehrer <paul.l.kehrer@gmail.com>
Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
2022-06-01 03:04:58 +00:00
Paul Kehrer
81b2fe392b
remove unused name argument from upload-coverage action (#7299) 2022-06-01 00:52:02 +00:00
Paul Kehrer
5269f641d7
Some fixes for the boring PR action (#7298)
* syntax fix for boring action

* also link the right hash in boring PRs

* Bump BoringSSL version to 49350b22bebe0f0ec4d6279f268b19b612abba68 (#7297)

Co-authored-by: BoringSSL Bot <pyca-boringbot@users.noreply.github.com>

Co-authored-by: pyca-boringbot[bot] <106132319+pyca-boringbot[bot]@users.noreply.github.com>
Co-authored-by: BoringSSL Bot <pyca-boringbot@users.noreply.github.com>
2022-06-01 00:45:16 +00:00
William Woodruff
c1b7307a3e
X.509/Certificate: Add tbs_precertificate_bytes property (#7279)
* Add `tbs_precertificate_bytes` property

* docs/x509: document `tbs_precertificate_bytes`

Signed-off-by: William Woodruff <william@trailofbits.com>

* tests/x509: add two trivial tests

Signed-off-by: William Woodruff <william@trailofbits.com>

* x509/base: fix lint

Signed-off-by: William Woodruff <william@trailofbits.com>

* oid: add CERTIFICATE_TRANSPARENCY (1.3.6.1.4.1.11129.2.4.4)

Signed-off-by: William Woodruff <william@trailofbits.com>

* hazmat/oid: rehome CERTIFICATE_TRANSPARENCY under ExtendedKeyUsageOID

Signed-off-by: William Woodruff <william@trailofbits.com>

* docs/x509: fix link, help the spellchecker

Signed-off-by: William Woodruff <william@trailofbits.com>

* x509: Raise ValueError when we can't filter SCT list extension

* tests: Expect a `ValueError` when accessing `tbs_precertificate_bytes`
in default example

* tests, vectors: Add TBS precert vector for test comparison

* docs/x509: document the `CERTIFICATE_TRANSPARENCY` OID

Signed-off-by: William Woodruff <william@trailofbits.com>

* docs/x509: elaborate `tbs_precertificate_bytes`

Signed-off-by: William Woodruff <william@trailofbits.com>

* rust/x509: remove unused OID

Signed-off-by: William Woodruff <william@trailofbits.com>

* x509/certificate: tweak error

Signed-off-by: William Woodruff <william@trailofbits.com>

* tests/x509: reorganize

Signed-off-by: William Woodruff <william@trailofbits.com>

* Update src/rust/src/x509/certificate.rs

Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>

* tests/x509: more reorg, rename

Signed-off-by: William Woodruff <william@trailofbits.com>

* docs: document new testvector

Signed-off-by: William Woodruff <william@trailofbits.com>

* docs: coax the spellchecker

Signed-off-by: William Woodruff <william@trailofbits.com>

* tests/x509: use a cert that doesn't require SHA-1

Signed-off-by: William Woodruff <william@trailofbits.com>

* tests/x509: test for no extensions at all

Signed-off-by: William Woodruff <william@trailofbits.com>

Co-authored-by: Alex Cameron <asc@tetsuo.sh>
Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
2022-05-31 22:51:32 +00:00
Paul Kehrer
5c0f450328
lazily initialize blinding (#7292) 2022-05-31 22:33:14 +00:00
Alex Gaynor
65f0812d7f
Move the flake8 config out of tox.ini (#7296) 2022-05-31 21:22:34 +00:00
dependabot[bot]
63996376c4
Bump actions/cache from 3.0.2 to 3.0.3 (#7295)
Bumps [actions/cache](https://github.com/actions/cache) from 3.0.2 to 3.0.3.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v3.0.2...v3.0.3)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-31 12:18:39 +00:00
Paul Kehrer
1df2544a73
put some useful links in the boring bump bot PR body (#7291) 2022-05-30 20:53:57 -04:00
pyca-boringbot[bot]
c4c7b88b95
Bump BoringSSL version to 67d4f28357eb3e48fba5a4fa0ff2e9805d3bab3f (#7290)
Co-authored-by: BoringSSL Bot <pyca-boringbot@users.noreply.github.com>
2022-05-31 00:24:42 +00:00
Alex Gaynor
0077708d89
Deprecate support for MD5 and SHA1 signatures in X.509 (#7283) 2022-05-28 06:39:13 +08:00
Alex Gaynor
10596d8eb9
Remove lazy_static dependency. (#7281)
We can use once_cell which is already in our dep tree. Eventually once_cell will be in the Rust stdlib and we can drop a dep entirely.
2022-05-27 21:11:53 +00:00
Alex Gaynor
79a1fdbf45
new alpine new python (#7280)
* new alpine new python

* Update ci.yml

* Fix for fedora
2022-05-28 04:53:45 +08:00
Alex Gaynor
f70e334a52
Remove register_interface, which was basically unused (#7234)
* Remove register_interface, which was basically unused

* Remove now unused verify_interface
2022-05-27 01:11:53 +00:00
Alex Gaynor
427bd0e761
bump upload-artifact in action.yml (#7276) 2022-05-27 00:53:57 +00:00
Alex Gaynor
dee0733457
retry docker pulls in circleci (#7277) 2022-05-27 00:44:59 +00:00
pyca-boringbot[bot]
7436ffc4d1
Bump BoringSSL version to 701d8b28c8e49bdc2f90407864ba4f634cf345dd (#7275)
Co-authored-by: BoringSSL Bot <pyca-boringbot@users.noreply.github.com>
2022-05-27 00:34:36 +00:00
Alex Gaynor
92feb2a10c
Move coverage configuration into pyproject.toml (#7274) 2022-05-27 06:35:05 +08:00
Paul Kehrer
23f8fa596c
output failure messages to the step summary (#7273)
* output failure messages to the step summary

oops

* tee it
2022-05-26 08:12:39 -04:00
Alex Gaynor
e7d5a8608e
fix broken bash (#7272) 2022-05-26 11:50:10 +00:00
Paul Kehrer
ae88a7280a
always compute coverage data even if CI failed (#7269)
* always compute coverage data even if CI failed

it's useful to compute coverage data in many cases even if some jobs
failed (most notably flake).

This also adds some more visual flair for success/failure of the sum of
jobs, why not

* don't exit early on error so we can output the step summary
2022-05-26 07:11:42 -04:00
Paul Kehrer
f3f4a1781a
re-enable coverage on py 3.11 (#7270) 2022-05-26 07:03:38 -04:00
pyca-boringbot[bot]
79756a7ae0
Bump BoringSSL version to 2d4f1b85f270fe6fc15dfd39a40015f52972ea2e (#7268)
Co-authored-by: BoringSSL Bot <pyca-boringbot@users.noreply.github.com>
2022-05-26 00:25:23 +00:00
Paul Kehrer
19930a3774
LibreSSL 3.5.3 (#7266) 2022-05-25 12:37:17 +00:00
Paul Kehrer
8803ef191c
format the coverage report better in the job summary (#7265) 2022-05-25 08:30:22 -04:00
Paul Kehrer
17f57f8883
add a basic job summary (#7263) 2022-05-25 12:11:00 +00:00
Paul Kehrer
6d3cfcc763
pin commit hashes of actions-rs actions (#7264) 2022-05-25 11:35:31 +00:00
Paul Kehrer
4aeff01838
merge all coverage reports into a single artifact (#7262) 2022-05-24 21:18:04 -04:00
pyca-boringbot[bot]
cc0da3bc60
Bump BoringSSL version to 1530333b25589ee4d4d52b10e78ee55dd82f6dcd (#7261)
Co-authored-by: BoringSSL Bot <pyca-boringbot@users.noreply.github.com>
2022-05-25 00:24:25 +00:00
Alex Gaynor
be37e7cd9a
Improve version pinning for actions (#7259)
Hash pin an external action and use exact version pinning for actions/cache
2022-05-24 12:23:40 +00:00
pyca-boringbot[bot]
751bca77c7
Bump BoringSSL version to 71573dc40bea04ee918d186376be0814fe9ce384 (#7258)
Co-authored-by: BoringSSL Bot <pyca-boringbot@users.noreply.github.com>
2022-05-24 11:45:19 +00:00
Paul Kehrer
1dba4716c1
automate boringssl update PRs (#7257)
* automate boringssl update PRs

This switches to a GH app + dynamically created token from that app to
auto-submit PRs. We can avoid the app if we want to just use a PAT, but
I don't really love that solution either.

This also uses ls-remote to avoid cloning the entire boring repo, which
is much faster.

* pin directly to hash. apparently dependabot can handle this now?

* limit permissions of the workflow itself

* use refs/heads/master instead of HEAD
2022-05-24 11:19:09 +00:00
Paul Kehrer
89df25e834
update boring in ci (#7254) 2022-05-24 00:31:27 +00:00
Alex Gaynor
a328dfa163
Added more assertions to backend tests (#7251)
* Added more assertions to backend tests

* Update tests/hazmat/backends/test_openssl.py

Co-authored-by: Paul Kehrer <paul.l.kehrer@gmail.com>

Co-authored-by: Paul Kehrer <paul.l.kehrer@gmail.com>
2022-05-23 15:48:44 +00:00
dependabot[bot]
f2bbe2b329
Bump once_cell from 1.11.0 to 1.12.0 in /src/rust (#7250)
Bumps [once_cell](https://github.com/matklad/once_cell) from 1.11.0 to 1.12.0.
- [Release notes](https://github.com/matklad/once_cell/releases)
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md)
- [Commits](https://github.com/matklad/once_cell/compare/v1.11.0...v1.12.0)

---
updated-dependencies:
- dependency-name: once_cell
  dependency-type: indirect
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-23 15:24:56 +00:00
Alex Gaynor
d89cd38afa
Enforce that CRL and CSR versions must be valid. (#7249)
Fixes #7231
2022-05-22 23:31:47 +00:00
Alex Gaynor
1407dd6339
Added vectors for invalid CSR/CRL versions (#7247)
* Added vectors for invalid CSR/CRL versions

* Update docs/development/test-vectors.rst

Co-authored-by: Paul Kehrer <paul.l.kehrer@gmail.com>

Co-authored-by: Paul Kehrer <paul.l.kehrer@gmail.com>
2022-05-22 22:52:32 +00:00
Paul Kehrer
50d78891f9
Update boring in CI (#7245) 2022-05-20 21:05:51 -04:00
dependabot[bot]
facd0ae281
Bump actions/upload-artifact from 3.0.0 to 3.1.0 (#7243)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3.0.0 to 3.1.0.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v3...v3.1.0)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-20 22:30:23 +00:00
Alex Gaynor
790661f54d
update comment now that we dropped 1.0.2 (#7242)
* remove error handling for 1.0.2

* Update test_ecdsa.py
2022-05-21 06:25:35 +08:00
dependabot[bot]
10748a051a
Bump once_cell from 1.10.0 to 1.11.0 in /src/rust (#7241)
Bumps [once_cell](https://github.com/matklad/once_cell) from 1.10.0 to 1.11.0.
- [Release notes](https://github.com/matklad/once_cell/releases)
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md)
- [Commits](https://github.com/matklad/once_cell/compare/v1.10.0...v1.11.0)

---
updated-dependencies:
- dependency-name: once_cell
  dependency-type: indirect
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-20 12:20:54 +00:00
Alex Gaynor
81c261f35d
bump boringssl in ci (#7240) 2022-05-20 08:58:50 +08:00
William Woodruff
e2ef761b4e
CT: extensions -> extension_bytes (#7238)
Signed-off-by: William Woodruff <william@trailofbits.com>
2022-05-19 21:48:41 +00:00
William Woodruff
e087b3e33c
CT: add SignedCertificateTimestamp.extensions (#7237)
Signed-off-by: William Woodruff <william@trailofbits.com>
2022-05-20 04:15:16 +08:00
William Woodruff
29724b1fb6
x509: fix SignedCertificateTimestamp interface (#7235)
This didn't get renamed correctly in the last PR.

Signed-off-by: William Woodruff <william@yossarian.net>
2022-05-18 15:05:08 +00:00
Alex Gaynor
bf56c57c44
Remove vestiges of doc8 (#7233)
We don't use it since 1eccc52b63
2022-05-18 00:15:36 +00:00
Alex Gaynor
94cc3865df
Update install docs now that we test on Windows 2022 (#7230)
* Update install docs now that we test on Windows 2022

* Update installation.rst

* Update spelling_wordlist.txt

* Update docs/installation.rst

Co-authored-by: Paul Kehrer <paul.l.kehrer@gmail.com>

Co-authored-by: Paul Kehrer <paul.l.kehrer@gmail.com>
2022-05-17 19:38:31 +00:00