-
Notifications
You must be signed in to change notification settings - Fork 707
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into work-flow-overview
- Loading branch information
Showing
59 changed files
with
967 additions
and
752 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,30 @@ | ||
### Release Summary: | ||
<!-- If this is a feature or bug that impacts customers and is significant enough to include in the "Summary" section of the next version release, please include a brief (1-2 sentences) description of the change. The audience of this summary is future customers, not maintainers or reviewers. See https://github.com/aws/s2n-tls/releases/tag/v1.5.7 for an example. Otherwise, leave this section blank --> | ||
|
||
### Resolved issues: | ||
|
||
Resolves #ISSUE-NUMBER1, resolves #ISSUE-NUMBER2, etc. | ||
resolves #ISSUE-NUMBER1, resolves #ISSUE-NUMBER2, etc. | ||
|
||
### Description of changes: | ||
|
||
Describe s2n’s current behavior and how your code changes that behavior. If there are no issues this PR is resolving, explain why this change is necessary. | ||
|
||
### Call-outs: | ||
|
||
Address any potentially confusing code. Is there code added that needs to be cleaned up later? Is there code that is missing because it’s still in development? | ||
Address any potentially confusing code. Is there code added that needs to be cleaned up later? Is there code that is missing because it’s still in development? If a callout is specific to a section of code, it might make more sense to leave a comment on your own PR file diff. | ||
|
||
### Testing: | ||
|
||
How is this change tested (unit tests, fuzz tests, etc.)? Are there any testing steps to be verified by the reviewer? | ||
|
||
How is this change tested (unit tests, fuzz tests, etc.)? What manual testing was performed? Are there any testing steps to be verified by the reviewer? | ||
How can you convince your reviewers that this PR is safe and effective? | ||
Is this a refactor change? If so, how have you proved that the intended behavior hasn't changed? | ||
|
||
Remember: | ||
* Any change to the library source code should at least include unit tests. | ||
* Any change to the core stuffer or blob methods should include [CBMC proofs](https://github.com/aws/s2n-tls/tree/main/tests/cbmc). | ||
* Any change to the CI or tests should: | ||
1. prove that the test succeeds for good input | ||
2. prove that the test fails for bad input (eg, a test for memory leaks fails when a memory leak is committed) | ||
|
||
|
||
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# This configuration file tells Dependabot which | ||
# package ecosystems to update and where the package manifests are located. | ||
# https://docs.github.com/en/enterprise-cloud@latest/code-security/dependabot/dependabot-version-updates/configuring-dependabot-version-updates | ||
|
||
version: 2 | ||
updates: | ||
# Maintain dependencies for GitHub Actions | ||
# https://github.com/dependabot/dependabot-core/pull/6189 | ||
- package-ecosystem: "github-actions" | ||
directory: "/.github/workflows" | ||
schedule: | ||
interval: "daily" | ||
|
||
# Maintain dependencies for cargo | ||
- package-ecosystem: "cargo" | ||
directories: | ||
- "/bindings/rust" | ||
- "/bindings/rust-examples" | ||
- "/tests/pcap" | ||
- "/tests/regression" | ||
schedule: | ||
interval: "daily" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
name: dependencies | ||
|
||
on: | ||
# Because of permissions issues with forked PRs, | ||
# Only run on a schedule or pushes to main. | ||
push: | ||
branches: | ||
- main | ||
# Only run if these files were touched. | ||
paths: | ||
- "**/Cargo.toml" | ||
- "**/Cargo.lock" | ||
- ".github/workflows/dependencies.yml" | ||
|
||
schedule: | ||
# Run every day at 1800 UTC. | ||
- cron: "0 18 * * *" | ||
|
||
env: | ||
ROOT_PATH: bindings/rust | ||
|
||
jobs: | ||
audit: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write # Open/update issues. | ||
checks: write # Create/update a check run. | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Rust toolchain | ||
id: toolchain | ||
run: | | ||
rustup toolchain install stable | ||
rustup override set stable | ||
- uses: camshaft/rust-cache@v1 | ||
- name: Generate | ||
run: ${{env.ROOT_PATH}}/generate.sh | ||
- uses: rustsec/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
working-directory: ${{env.ROOT_PATH}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#[cfg(all(feature = "network-tests", test))] | ||
mod network; | ||
|
||
#[cfg(test)] | ||
mod tests { | ||
use s2n_tls::{ | ||
security::Policy, | ||
testing::{self, TestPair}, | ||
}; | ||
|
||
/// This test provides a helpful debug message if the PQ feature is incorrectly | ||
/// configured. | ||
#[cfg(feature = "pq")] | ||
#[test] | ||
fn pq_sanity_check() -> Result<(), Box<dyn std::error::Error>> { | ||
let config = testing::build_config(&Policy::from_version("KMS-PQ-TLS-1-0-2020-07")?)?; | ||
let mut pair = TestPair::from_config(&config); | ||
pair.handshake()?; | ||
|
||
if pair.client.kem_name().is_none() { | ||
panic!( | ||
"PQ tests are enabled, but PQ functionality is unavailable. \ | ||
Are you sure that the libcrypto supports PQ?" | ||
); | ||
} | ||
Ok(()) | ||
} | ||
} |
Oops, something went wrong.