Skip to content

Commit

Permalink
chore: change default tls to rustls
Browse files Browse the repository at this point in the history
  • Loading branch information
HoKim98 committed Jul 30, 2024
1 parent 11a490c commit e55ee37
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 9 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ RUN \
# Disable terminal hooks
&& sed -i '/\[\[hooks\]\]/,$d' 'Trunk.toml' \
# Build
&& trunk build --dist '/out' --release --features 'full'
&& trunk build --dist '/out' --release \
--no-default-features --features 'full'

# Copy executable files
FROM server
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.server
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ CMD [ "/bin/bash" ]
# Install dependencies
RUN apt-get update && apt-get install -y \
hwloc \
libssl3 \
# Cleanup
&& apt-get clean all \
&& rm -rf /var/lib/apt/lists/*
Expand Down Expand Up @@ -56,7 +55,8 @@ RUN \
# Create an output directory
mkdir /out \
# Build
&& cargo build --release --features 'full' \
&& cargo build --release \
--no-default-features --features 'full,openark,rustls-tls' \
--package 'cassette-gateway' \
--package 'cassette-operator' \
&& find ./target/release/ -maxdepth 1 -type f -perm -a=x -print0 | xargs -0 -I {} mv {} /out
Expand Down
2 changes: 1 addition & 1 deletion crates/cassette-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ stream = ["dep:wasm-streams"]
examples = []
mock-release = []

# plugins
# Plugins

## Connected Data Lake (CDL)
cdl = []
Expand Down
4 changes: 2 additions & 2 deletions crates/cassette-gateway/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ experimental = []
openark = ["vine"]

# TLS
default-tls = ["openssl-tls"]
default-tls = ["rustls-tls"]
openssl-tls = [
"actix-web/openssl",
"cassette-plugin-cdl-api/openssl-tls",
Expand All @@ -46,7 +46,7 @@ vine = [
"cassette-plugin-kubernetes-api?/vine",
]

# plugins
# Plugins

## Connected Data Lake (CDL)
cdl = ["cassette-core/cdl", "dep:cassette-plugin-cdl-api"]
Expand Down
2 changes: 1 addition & 1 deletion crates/cassette-operator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ workspace = true
default = ["default-tls"]

# TLS
default-tls = ["openssl-tls"]
default-tls = ["rustls-tls"]
openssl-tls = ["kube/openssl-tls"]
rustls-tls = ["kube/rustls-tls"]

Expand Down
2 changes: 1 addition & 1 deletion crates/cassette-plugin-cdl-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ default = []
vine = ["cassette-plugin-kubernetes-api/vine"]

# TLS
default-tls = ["openssl-tls"]
default-tls = ["rustls-tls"]
openssl-tls = ["dash-pipe-provider/openssl-tls", "kube/openssl-tls"]
rustls-tls = ["dash-pipe-provider/rustls-tls", "kube/rustls-tls"]

Expand Down
2 changes: 1 addition & 1 deletion crates/cassette/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ experimental = []
examples = ["cassette-core/examples", "dep:cassette-loader-file"]
mock-release = ["cassette-core/mock-release"]

# plugins
# Plugins

## Connected Data Lake (CDL)
cdl = [
Expand Down

0 comments on commit e55ee37

Please # to comment.