-
Notifications
You must be signed in to change notification settings - Fork 195
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 RFC30/tests
- Loading branch information
Showing
1,343 changed files
with
208,245 additions
and
66,402 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,7 +1,3 @@ | ||
[build] | ||
# Share one `target` directory at the project root for all Cargo projects and workspaces in smithy-rs | ||
target-dir = "target" | ||
|
||
# TODO(https://github.com/awslabs/smithy-rs/issues/2766): The sparse registry config can be removed when upgrading to Rust 1.70 | ||
[registries.crates-io] | ||
protocol = "sparse" |
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 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,81 @@ | ||
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# This workflow tests the TLS configuration of the smithy-rs client | ||
# To run on an Ubuntu machine, run each step in this order. | ||
# Each script can be run on your Ubuntu host. | ||
# You will have to install Docker and rustc/cargo manually. | ||
|
||
env: | ||
rust_version: 1.68.2 | ||
|
||
name: Verify client TLS configuration | ||
on: | ||
pull_request: | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
verify-tls-config: | ||
name: Verify TLS configuration | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install packages | ||
shell: bash | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get -y install gcc make python3-pip nginx git ruby openjdk-17-jre pkg-config libssl-dev faketime | ||
pip3 install certbuilder crlbuilder | ||
- name: Stop nginx | ||
run: sudo systemctl stop nginx | ||
- name: Checkout smithy-rs | ||
uses: actions/checkout@v3 | ||
with: | ||
path: ./smithy-rs | ||
- name: Checkout trytls | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: ouspg/trytls | ||
path: ./trytls | ||
- name: Checkout badtls | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: wbond/badtls.io | ||
path: ./badtls.io | ||
- name: Checkout badssl | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: chromium/badssl.com | ||
path: ./badssl.com | ||
- name: Install Rust | ||
uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: ${{ env.rust_version }} | ||
- name: Build badssl.com | ||
shell: bash | ||
working-directory: badssl.com | ||
env: | ||
DOCKER_BUILDKIT: 1 | ||
run: ../smithy-rs/tools/ci-scripts/configure-tls/configure-badssl | ||
- name: Build SDK | ||
working-directory: smithy-rs | ||
run: ./gradlew :aws:sdk:assemble -Paws.services=+sts,+sso,+ssooidc | ||
- name: Build trytls | ||
shell: bash | ||
working-directory: trytls | ||
run: ../smithy-rs/tools/ci-scripts/configure-tls/configure-trytls | ||
- name: Build badtls.io | ||
working-directory: badtls.io | ||
shell: bash | ||
run: ../smithy-rs/tools/ci-scripts/configure-tls/configure-badtls | ||
- name: Update TLS configuration | ||
shell: bash | ||
run: smithy-rs/tools/ci-scripts/configure-tls/update-certs | ||
- name: Build TLS stub | ||
working-directory: smithy-rs/tools/ci-resources/tls-stub | ||
shell: bash | ||
run: cargo build | ||
- name: Test TLS configuration | ||
working-directory: smithy-rs/tools | ||
shell: bash | ||
run: trytls https target/debug/stub |
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 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
Oops, something went wrong.