-
Notifications
You must be signed in to change notification settings - Fork 259
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: sticky-sessions and fips support
This will add sticky-sessions by adding session ID Mechanism \n \n FIPS 140-2 support based on boringSSL
- Loading branch information
Sean Connole
committed
Oct 17, 2024
1 parent
dda4613
commit c814271
Showing
8 changed files
with
102 additions
and
10 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,10 +1,19 @@ | ||
FROM debian | ||
ARG GO_VER=1.22 | ||
FROM golang:${GO_VER} AS build | ||
|
||
RUN apt update && apt install -y ca-certificates curl | ||
RUN mkdir -p /go/src/github.com/contentsquare/chproxy | ||
WORKDIR /go/src/github.com/contentsquare/chproxy | ||
COPY . ./ | ||
ARG EXT_BUILD_TAG | ||
ENV EXT_BUILD_TAG=${EXT_BUILD_TAG} | ||
RUN make release-build | ||
RUN ls -al /go/src/github.com/contentsquare/chproxy | ||
|
||
COPY chproxy / | ||
FROM alpine | ||
RUN apk add --no-cache curl ca-certificates | ||
COPY --from=build /go/src/github.com/contentsquare/chproxy/chproxy* / | ||
|
||
EXPOSE 9090 | ||
|
||
ENTRYPOINT ["/chproxy"] | ||
ENTRYPOINT [ "/chproxy" ] | ||
CMD [ "--help" ] |
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,44 @@ | ||
ARG UBUNTU_IMAGE=ubuntu:20.04 | ||
FROM ${UBUNTU_IMAGE} AS build | ||
|
||
ENV GOPATH=/gocode | ||
ENV PATH=$PATH:$GOPATH/bin | ||
ENV GOVERSION=1.22 | ||
|
||
RUN mkdir /scr | ||
WORKDIR /src | ||
|
||
# golang | ||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ | ||
apt-utils \ | ||
software-properties-common \ | ||
gcc \ | ||
libc-dev \ | ||
&& add-apt-repository -y ppa:longsleep/golang-backports \ | ||
&& apt-get update \ | ||
&& apt-get install -y --no-install-recommends \ | ||
golang-$GOVERSION-go \ | ||
golang-golang-x-tools \ | ||
&& apt-get autoremove -y \ | ||
&& apt-get remove -y \ | ||
apt-utils \ | ||
software-properties-common | ||
|
||
# Create symbolic link | ||
RUN ln -s /usr/lib/go-$GOVERSION /gocode | ||
|
||
# tools | ||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ | ||
git \ | ||
make \ | ||
tzdata \ | ||
curl \ | ||
ca-certificates | ||
|
||
FROM build | ||
|
||
# Build chproxy | ||
COPY . ./ | ||
ARG EXT_BUILD_TAG | ||
ENV GOEXPERIMENT=boringcrypto | ||
RUN make release-build |
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,5 @@ | ||
//go:build fips | ||
|
||
package main | ||
|
||
import _ "crypto/tls/fipsonly" |
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