Skip to content

Commit 58d1aef

Browse files
authored
Merge pull request #1254 from muzarski/rustls-support-muzarski
Rustls support with dynamic choice of TLS provider for cloud
2 parents 370506e + bf62952 commit 58d1aef

File tree

36 files changed

+1866
-679
lines changed

36 files changed

+1866
-679
lines changed

.github/workflows/rust.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,19 @@ jobs:
4141
run: cargo clippy --verbose --all-targets --all-features
4242
- name: Cargo check with cpp_rust_unstable cfg
4343
run: RUSTFLAGS="--cfg cpp_rust_unstable" cargo clippy --verbose --all-targets --all-features
44+
45+
# Features checks.
46+
# No features.
4447
- name: Cargo check without features
4548
run: cargo check --all-targets --manifest-path "scylla/Cargo.toml" --features ""
46-
- name: Cargo check with all serialization features
47-
run: cargo check --all-targets --manifest-path "scylla/Cargo.toml" --features "full-serialization"
49+
50+
# All features.
4851
- name: Cargo check with all features
4952
run: cargo check --all-targets --manifest-path "scylla/Cargo.toml" --all-features
53+
54+
# Various (de)serialization features.
55+
- name: Cargo check with all serialization features
56+
run: cargo check --all-targets --manifest-path "scylla/Cargo.toml" --features "full-serialization"
5057
- name: Cargo check with secrecy-08 feature
5158
run: cargo check --all-targets --manifest-path "scylla/Cargo.toml" --features "secrecy-08"
5259
- name: Cargo check with chrono-04 feature
@@ -59,6 +66,14 @@ jobs:
5966
run: cargo check --all-targets --manifest-path "scylla/Cargo.toml" --features "num-bigint-04"
6067
- name: Cargo check with bigdecimal-04 feature
6168
run: cargo check --all-targets --manifest-path "scylla/Cargo.toml" --features "bigdecimal-04"
69+
70+
# TLS-related feature sets.
71+
- name: Cargo check with openssl-x feature
72+
run: cargo check --all-targets --manifest-path "scylla/Cargo.toml" --features "openssl-010"
73+
- name: Cargo check with rustls-x feature
74+
run: cargo check --all-targets --manifest-path "scylla/Cargo.toml" --features "rustls-023"
75+
# (openssl-x, rustls-x) is checked in tls.yml.
76+
6277
- name: Build scylla-cql
6378
run: cargo build --verbose --all-targets --manifest-path "scylla-cql/Cargo.toml" --features "full-serialization"
6479
- name: Build

.github/workflows/serverless.yaml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
env:
1212
CARGO_TERM_COLOR: always
1313
RUST_BACKTRACE: full
14+
RUSTFLAGS: -Dwarnings
1415

1516
jobs:
1617
build:
@@ -31,8 +32,18 @@ jobs:
3132
run: rustup update
3233
- name: Check
3334
run: cargo check --verbose
34-
- name: Run cloud example
35-
run: cargo run --example cloud -- $HOME/.ccm/serverless/config_data.yaml
35+
# Cloud-related feature sets.
36+
- name: Cargo check with unstable-cloud and openssl-x features
37+
run: cargo check --all-targets --manifest-path "scylla/Cargo.toml" --features "unstable-cloud" --features "openssl-010"
38+
- name: Cargo check with unstable-cloud and rustls-x features
39+
run: cargo check --all-targets --manifest-path "scylla/Cargo.toml" --features "unstable-cloud" --features "rustls-023"
40+
- name: Cargo check with unstable-cloud, openssl-x and rustls-x features
41+
run: cargo check --all-targets --manifest-path "scylla/Cargo.toml" --features "unstable-cloud" --features "openssl-010" --features "rustls-023"
42+
43+
- name: Run cloud-openssl example
44+
run: cargo run --example cloud-openssl -- $HOME/.ccm/serverless/config_data.yaml
45+
- name: Run cloud-rustls example
46+
run: cargo run --example cloud-rustls -- $HOME/.ccm/serverless/config_data.yaml
3647
- name: Run cloud tests
3748
run: CLOUD_CONFIG_PATH=$HOME/.ccm/serverless/config_data.yaml RUSTFLAGS="--cfg scylla_cloud_tests" RUST_LOG=trace cargo test --verbose
3849

.github/workflows/tls.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,16 @@ jobs:
2626
run: rustup update
2727

2828
- name: Check
29-
run: cargo check --verbose --features "ssl"
29+
run: cargo check --verbose --features "openssl-010" --features "rustls-023"
3030
working-directory: ${{env.working-directory}}
3131

3232
- name: Start the cluster
3333
run: docker compose -f test/tls/docker-compose-tls.yml up -d
3434

35-
- name: Run tests
36-
run: SCYLLA_URI=172.44.0.2 RUST_LOG=trace cargo run --example tls
35+
- name: Run openssl example
36+
run: SCYLLA_URI=172.44.0.2 RUST_LOG=trace cargo run --example tls-openssl
37+
- name: Run rustls example
38+
run: SCYLLA_URI=172.44.0.2 RUST_LOG=trace cargo run --example tls-rustls
3739

3840
- name: Stop the cluster
3941
if: ${{ always() }}

0 commit comments

Comments
 (0)